Ok.

Thanks for the idea.

Best regards,

 MZ


On 04/04/2018 19:18, Jeremy Thien wrote:
I think you need a cmake toolchain file. When Yocto builds a cmake project, it generates a cmake toolchain and runs cmake with the "-DCMAKE_TOOLCHAIN_FILE=path/to/toolchain.cmake" option. Maybe you can find that in your Yocto build tree and use it for your manual builds.



On Wed, Apr 4, 2018 at 11:19 AM Mauro Ziliani <[email protected] <mailto:[email protected]>> wrote:

    Hi all.

    I'm working on a project developed with cmake qtcreator and Yocto
    Jethro.

    The SDKMACHINE is a x86_64 with Debian 9.4

    Until today I developed the application directly for sdkmachine
    (that is
    I compiled the project for x86_64) and then I compile the release
    version for imx6 in a terminal.

    Now I'd like to integrate the build environment for iMX directly in
    QtCreator (the board is a imx6dlsabresd clone).


    The SDK is placed in /opt/fsl-imx-x11/4.1.15-2.0.1 and I have two
    sysroots

    /opt/fsl-imx-x11/4.1.15-2.0.1/x86_64-pokysdk-linux

    /opt/fsl-imx-x11/4.1.15-2.0.1/cortexa9hf-neon-poky-linux-gnueabi


    Compiling from the terminal I need to do

    mauro@w530:~/build$ source
    
/opt/fsl-imx-x11/4.1.15-2.0.1/environment-setup-cortexa9hf-neon-poky-linux-gnueabi

    mauro@w530:~/build$ cmake ../app -DCMAKE_BUILD_TYPE=Debug
    TARGET_BOARD=imx6dlsabresd


    to obtain the compilation environment

    Then I do

    mauro@w530:~/build$ make -j8


    to obtain the final app.


    How can I setup the QtCreator to do the same?


    I follow some post but at the end cmake tell me

    ....: /lib/ld-linux-armhf.so.3: No such file or directory.


    It is like cmake does not use the right sysroot.


    Any Idea?


    Best regards,

       MZ



    --
    _______________________________________________
    meta-freescale mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.yoctoproject.org/listinfo/meta-freescale

--
Jeremy Thien
Director of Engineering | Adtec Digital
[email protected] <mailto:[email protected]> | mobile: +1 (904) 910-1749

-- 
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to