Yocto Application Development Using Eclipse IDE

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Yocto Application Development Using Eclipse IDE

2,335 次查看
erikraynolds
Contributor IV

I am using Eclipse IDE with ADT to develop the applications under Yocto SDK.

I have working "Hello World" project out of "Yocto Project SDK Autotools Project" templates and it runs with no problem.

But when I created "Hello World" using "Yocto Project SDK Cmake Project" templates 

eclipse.png

the project is not build

Build of project failed with the following error:
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/opt/fsl-imx-xwayland/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.5
CMake Error: Error executing cmake::LoadCache(). Aborting.

Under Yocto SDK installed in

/opt/fsl-imx-xwayland/4.9.51-mx8-beta/sysroots

there is cmake-3.6 which instead config points to cmake-3.5 ...

sdk.png

I have cmake included in my Yocto SDK build, what is the correct configuration of ADT Eclipse plugin?

0 项奖励
回复
2 回复数

1,849 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Erik,

You have to install cmake with eclipse. that error is because is not installed.

Regards

0 项奖励
回复

1,849 次查看
erikraynolds
Contributor IV

Before ./eclipse I need to source environment script of Yocto SDK.

Using the Eclipse plugin with the cmake from the sdk

This can get confusing because it may be unclear which cmake eclipse is using, if you have one in the sdk and one installed on the host. To make sure you get the cmake from the sdk, launch eclipse from a terminal that has already sourced the environment script instead of launching it by clicking on an icon (old school, I know...). For example in my case :

$ . /opt/fsl-imx-xwayland/4.9.51-mx8-beta/environment-setup-aarch64-poky-linux $ /home/ubuntu/eclipse/eclipse

That way, eclipse will find the "correct" cmake and wont complain about either CMAKE_ROOT or "cmake not installed properly"

0 项奖励
回复