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,284 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,270 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,265 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,252 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