<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 imx6ulevk - error building ADT CMake project</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6ulevk-error-building-ADT-CMake-project/m-p/645817#M98571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have built an &lt;STRONG&gt;fsl-image-qt5&lt;/STRONG&gt; image for &lt;STRONG&gt;MACHINE=imx6ulevk&lt;/STRONG&gt; (the evaluation kit board). Then, I used '&lt;STRONG style=": ; color: #000000; font-family: Calibri;"&gt;&lt;EM&gt;bitbake –c populate_sdk fsl-image-qt5&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;SPAN lang="es"&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN lang="es"&gt;&amp;nbsp; &lt;/SPAN&gt;' option to create the '.sh' file to deply&amp;nbsp;the toolchain for the system, installed under '/opt/fsl-imx-x11/4.1.15-1.2.0/'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Afterwards, in Eclipse Luna I installed the Yocto ADT plugin and built a Hello World application with Autotools without problem. However, when creating a new Hello World C++ application with 'Yocto Project ADT CMake' I have not been able to build the component, obtaining the following output in CMakeError.log (among other messages):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Determining if the C compiler works failed with the following output:&lt;BR /&gt;Change Dir: /home/user/wstest/HelloCmake/Debug/CMakeFiles/CMakeTmp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run Build Command:/usr/bin/make "cmTryCompileExec1629254916/fast"&lt;BR /&gt;/usr/bin/make -f CMakeFiles/cmTryCompileExec1629254916.dir/build.make CMakeFiles/cmTryCompileExec1629254916.dir/build&lt;BR /&gt;make[1]: se ingresa al directorio «/home/user/wstest/HelloCmake/Debug/CMakeFiles/CMakeTmp»&lt;BR /&gt;/usr/bin/cmake -E cmake_progress_report /home/user/wstest/HelloCmake/Debug/CMakeFiles/CMakeTmp/CMakeFiles 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building C object CMakeFiles/cmTryCompileExec1629254916.dir/testCCompiler.c.o&lt;BR /&gt;/opt/fsl-imx-x11/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc&amp;nbsp;&amp;nbsp; --sysroot=/home/user/fsl-release-bsp/build_qt5/tmp/sysroots/imx6ulevk&amp;nbsp;&amp;nbsp;&amp;nbsp; -o CMakeFiles/cmTryCompileExec1629254916.dir/testCCompiler.c.o&amp;nbsp;&amp;nbsp; -c /home/user/wstest/HelloCmake/Debug/CMakeFiles/CMakeTmp/testCCompiler.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linking C executable cmTryCompileExec1629254916&lt;BR /&gt;/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1629254916.dir/link.txt --verbose=1&lt;BR /&gt;/opt/fsl-imx-x11/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --sysroot=/home/user/fsl-release-bsp/build_qt5/tmp/sysroots/imx6ulevk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --sysroot=/home/user/fsl-release-bsp/build_qt5/tmp/sysroots/imx6ulevk CMakeFiles/cmTryCompileExec1629254916.dir/testCCompiler.c.o&amp;nbsp; -o cmTryCompileExec1629254916 -rdynamic &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/opt/fsl-imx-x11/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: error: cmTryCompileExec1629254916 uses VFP register arguments, CMakeFiles/cmTryCompileExec1629254916.dir/testCCompiler.c.o does not&lt;BR /&gt;/opt/fsl-imx-x11/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: failed to merge target specific data of file CMakeFiles/cmTryCompileExec1629254916.dir/testCCompiler.c.o&lt;BR /&gt;collect2: error: ld returned 1 exit status&lt;BR /&gt;make[1]: se sale del directorio «/home/user/wstest/HelloCmake/Debug/CMakeFiles/CMakeTmp»&lt;BR /&gt;make[1]: *** [cmTryCompileExec1629254916] Error 1&lt;BR /&gt;make: *** [cmTryCompileExec1629254916/fast] Error 2&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems an internal CMake test is failing...but I do not know why :S&lt;/P&gt;&lt;P&gt;I ran:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;source /opt/fsl-imx-x11/4.1.15-1.2.0/environment-setup-cortexa7hf-vfp-neon-poky-linux-gnueabi&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;before starting Eclipse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is going on? Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 13:58:07 GMT</pubDate>
    <dc:creator>aloplop85</dc:creator>
    <dc:date>2016-10-18T13:58:07Z</dc:date>
    <item>
      <title>imx6ulevk - error building ADT CMake project</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ulevk-error-building-ADT-CMake-project/m-p/645817#M98571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have built an &lt;STRONG&gt;fsl-image-qt5&lt;/STRONG&gt; image for &lt;STRONG&gt;MACHINE=imx6ulevk&lt;/STRONG&gt; (the evaluation kit board). Then, I used '&lt;STRONG style=": ; color: #000000; font-family: Calibri;"&gt;&lt;EM&gt;bitbake –c populate_sdk fsl-image-qt5&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;SPAN lang="es"&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN lang="es"&gt;&amp;nbsp; &lt;/SPAN&gt;' option to create the '.sh' file to deply&amp;nbsp;the toolchain for the system, installed under '/opt/fsl-imx-x11/4.1.15-1.2.0/'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Afterwards, in Eclipse Luna I installed the Yocto ADT plugin and built a Hello World application with Autotools without problem. However, when creating a new Hello World C++ application with 'Yocto Project ADT CMake' I have not been able to build the component, obtaining the following output in CMakeError.log (among other messages):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Determining if the C compiler works failed with the following output:&lt;BR /&gt;Change Dir: /home/user/wstest/HelloCmake/Debug/CMakeFiles/CMakeTmp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run Build Command:/usr/bin/make "cmTryCompileExec1629254916/fast"&lt;BR /&gt;/usr/bin/make -f CMakeFiles/cmTryCompileExec1629254916.dir/build.make CMakeFiles/cmTryCompileExec1629254916.dir/build&lt;BR /&gt;make[1]: se ingresa al directorio «/home/user/wstest/HelloCmake/Debug/CMakeFiles/CMakeTmp»&lt;BR /&gt;/usr/bin/cmake -E cmake_progress_report /home/user/wstest/HelloCmake/Debug/CMakeFiles/CMakeTmp/CMakeFiles 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building C object CMakeFiles/cmTryCompileExec1629254916.dir/testCCompiler.c.o&lt;BR /&gt;/opt/fsl-imx-x11/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc&amp;nbsp;&amp;nbsp; --sysroot=/home/user/fsl-release-bsp/build_qt5/tmp/sysroots/imx6ulevk&amp;nbsp;&amp;nbsp;&amp;nbsp; -o CMakeFiles/cmTryCompileExec1629254916.dir/testCCompiler.c.o&amp;nbsp;&amp;nbsp; -c /home/user/wstest/HelloCmake/Debug/CMakeFiles/CMakeTmp/testCCompiler.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linking C executable cmTryCompileExec1629254916&lt;BR /&gt;/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1629254916.dir/link.txt --verbose=1&lt;BR /&gt;/opt/fsl-imx-x11/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --sysroot=/home/user/fsl-release-bsp/build_qt5/tmp/sysroots/imx6ulevk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --sysroot=/home/user/fsl-release-bsp/build_qt5/tmp/sysroots/imx6ulevk CMakeFiles/cmTryCompileExec1629254916.dir/testCCompiler.c.o&amp;nbsp; -o cmTryCompileExec1629254916 -rdynamic &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/opt/fsl-imx-x11/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: error: cmTryCompileExec1629254916 uses VFP register arguments, CMakeFiles/cmTryCompileExec1629254916.dir/testCCompiler.c.o does not&lt;BR /&gt;/opt/fsl-imx-x11/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: failed to merge target specific data of file CMakeFiles/cmTryCompileExec1629254916.dir/testCCompiler.c.o&lt;BR /&gt;collect2: error: ld returned 1 exit status&lt;BR /&gt;make[1]: se sale del directorio «/home/user/wstest/HelloCmake/Debug/CMakeFiles/CMakeTmp»&lt;BR /&gt;make[1]: *** [cmTryCompileExec1629254916] Error 1&lt;BR /&gt;make: *** [cmTryCompileExec1629254916/fast] Error 2&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems an internal CMake test is failing...but I do not know why :S&lt;/P&gt;&lt;P&gt;I ran:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;source /opt/fsl-imx-x11/4.1.15-1.2.0/environment-setup-cortexa7hf-vfp-neon-poky-linux-gnueabi&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;before starting Eclipse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is going on? Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 13:58:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ulevk-error-building-ADT-CMake-project/m-p/645817#M98571</guid>
      <dc:creator>aloplop85</dc:creator>
      <dc:date>2016-10-18T13:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ulevk - error building ADT CMake project</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ulevk-error-building-ADT-CMake-project/m-p/645818#M98572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The solution is to set correctly the flags for the compiler in the toolchain.cmake file (note the -march, -mfpu, -mtune in the following lines):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;# CMake system name must be something like "Linux".&lt;BR /&gt;# This is important for cross-compiling.&lt;BR /&gt;set(CMAKE_SYSTEM_PROCESSOR )&lt;BR /&gt;set(CMAKE_C_COMPILER arm-poky-linux-gnueabi-gcc)&lt;BR /&gt;set(CMAKE_CXX_COMPILER arm-poky-linux-gnueabi-g++)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set(CMAKE_C_FLAGS "-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a7&amp;nbsp; --sysroot=/home/moviloc/fsl-release-bsp/build_qt5/tmp/sysroots/imx6ulevk" CACHE STRING "CFLAGS")&lt;BR /&gt;set(CMAKE_CXX_FLAGS "-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a7 --sysroot=/home/moviloc/fsl-release-bsp/build_qt5/tmp/sysroots/imx6ulevk -fpermissive" CACHE STRING "CXXFLAGS")&lt;BR /&gt;set(CMAKE_C_FLAGS_RELEASE "-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a7&amp;nbsp; --sysroot=/home/moviloc/fsl-release-bsp/build_qt5/tmp/sysroots/imx6ulevk -DNDEBUG" CACHE STRING "CFLAGS for release")&lt;BR /&gt;set(CMAKE_CXX_FLAGS_RELEASE "-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a7&amp;nbsp; --sysroot=/home/moviloc/fsl-release-bsp/build_qt5/tmp/sysroots/imx6ulevk -DNDEBUG" CACHE STRING "CXXFLAGS for release")&lt;BR /&gt;set(CMAKE_C_LINK_FLAGS "" CACHE STRING "LDFLAGS")&lt;BR /&gt;set(CMAKE_CXX_LINK_FLAGS "" CACHE STRING "LDFLAGS")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 10:46:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ulevk-error-building-ADT-CMake-project/m-p/645818#M98572</guid>
      <dc:creator>aloplop85</dc:creator>
      <dc:date>2016-10-21T10:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ulevk - error building ADT CMake project</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ulevk-error-building-ADT-CMake-project/m-p/645819#M98573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alvaro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for sharing your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 22:21:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ulevk-error-building-ADT-CMake-project/m-p/645819#M98573</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2016-10-25T22:21:57Z</dc:date>
    </item>
  </channel>
</rss>

