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
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 ...
I have cmake included in my Yocto SDK build, what is the correct configuration of ADT Eclipse plugin?
Hi Erik,
You have to install cmake with eclipse. that error is because is not installed.
Regards
Before ./eclipse I need to source environment script of Yocto 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"