Yocto Application Development Using Eclipse IDE

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Yocto Application Development Using Eclipse IDE

1,615件の閲覧回数
erikraynolds
Contributor III

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,129件の閲覧回数
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,129件の閲覧回数
erikraynolds
Contributor III

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 件の賞賛