use colcon to build our meta-layer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

use colcon to build our meta-layer

1,214 Views
zk-panfei
Contributor I

Hello

we use colcon to build our middleware code,now we create a new layer for our code ,and want to build it by colcon in yocto 

I add 

do_compile () {

export colcon = "usr/local/bin/colcon"

${colcon} build

}  

in bb file,but build failed ,"could not find camke executable"

when I add  inherit cmake,will show does not appear to contain CMakeList.txt

Can anyone give some hints,thanks

 

0 Kudos
Reply
3 Replies

1,200 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello zk-panfei,

Are you sure that this package is building and compiling with ARM? since there is no cmakelist.

 

Regards

 

0 Kudos
Reply

1,195 Views
zk-panfei
Contributor I

Hi Bio

Yes ,but our source code tree is like this :cmakelist in next level dir ,not root dir

├── tsync
│   ├── CMakeLists.txt
│   ├── example

└── zklog
     ├── CMakeLists.txt
     ├── doc

0 Kudos
Reply

1,182 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

You have to fix it, since colcon is not part of the BSP and you are using it on your own meta-layer we are on hand tie.

 

Regards

0 Kudos
Reply