Discussion:
Yocto Cmake Build (Toolchain)
(too old to reply)
Peter Balazovic
2018-12-05 23:10:41 UTC
Permalink
I am starting to use Eclipse ADT for app development using Yocto Cmake
Build (Toolchain). I am trying to create simple "hello-world" example out
of "Yocto Project SDK Cmake Project" but by building the project I am
getting this

Buildfile generation error occurred..
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/4.9.51-mx8-beta/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.5
CMake Error: Error executing cmake::LoadCache(). Aborting.
Build stopped..

Do you encounter such a problem? I have a camke part of the Yocto SDK.

BTW I am able to build, debug "hello-world" out of "Yocto Project SDK
Autotools Project".

Thank you for your advice.
Tim Orling
2018-12-06 05:54:16 UTC
Permalink
Also including eclipse-yocto mailing list.

BTW, ADT is not a thing anymore.
Post by Peter Balazovic
I am starting to use Eclipse ADT for app development using Yocto Cmake
Build (Toolchain). I am trying to create simple "hello-world" example out
of "Yocto Project SDK Cmake Project" but by building the project I am
getting this
Buildfile generation error occurred..
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/opt/fsl-imx-xwayland/4.9.51-mx8-beta/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.5
CMake Error: Error executing cmake::LoadCache(). Aborting.
Build stopped..
Do you encounter such a problem? I have a camke part of the Yocto SDK.
BTW I am able to build, debug "hello-world" out of "Yocto Project SDK
Autotools Project".
Thank you for your advice.
--
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
Peter Balazovic
2018-12-06 06:50:26 UTC
Permalink
What's the alternative?
Post by Tim Orling
Also including eclipse-yocto mailing list.
BTW, ADT is not a thing anymore.
Post by Peter Balazovic
I am starting to use Eclipse ADT for app development using Yocto Cmake
Build (Toolchain). I am trying to create simple "hello-world" example out
of "Yocto Project SDK Cmake Project" but by building the project I am
getting this
Buildfile generation error occurred..
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/opt/fsl-imx-xwayland/4.9.51-mx8-beta/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.5
CMake Error: Error executing cmake::LoadCache(). Aborting.
Build stopped..
Do you encounter such a problem? I have a camke part of the Yocto SDK.
BTW I am able to build, debug "hello-world" out of "Yocto Project SDK
Autotools Project".
Thank you for your advice.
--
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
Peter Balazovic
2018-12-06 13:43:09 UTC
Permalink
Now it's all OK. BTW is there some "prelaunch" commands possible?

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"
Post by Peter Balazovic
What's the alternative?
Post by Tim Orling
Also including eclipse-yocto mailing list.
BTW, ADT is not a thing anymore.
Post by Peter Balazovic
I am starting to use Eclipse ADT for app development using Yocto Cmake
Build (Toolchain). I am trying to create simple "hello-world" example out
of "Yocto Project SDK Cmake Project" but by building the project I am
getting this
Buildfile generation error occurred..
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/opt/fsl-imx-xwayland/4.9.51-mx8-beta/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.5
CMake Error: Error executing cmake::LoadCache(). Aborting.
Build stopped..
Do you encounter such a problem? I have a camke part of the Yocto SDK.
BTW I am able to build, debug "hello-world" out of "Yocto Project SDK
Autotools Project".
Thank you for your advice.
--
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
Loading...