<?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>topic Re: Cross Compiling for iMX6 using arm-linux-gnueabi-g++ in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Cross-Compiling-for-iMX6-using-arm-linux-gnueabi-g/m-p/2082222#M236427</link>
    <description>set(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc)&lt;BR /&gt;set(CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabihf-g++)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;set(CMAKE_CXX_STANDARD 17)&lt;BR /&gt;set(CMAKE_CXX_STANDARD_REQUIRED ON)&lt;BR /&gt;&lt;BR /&gt;set(CMAKE_PREFIX_PATH "/home//tool/qt-everywhere-src-5.12.9/armqt-5.12.9" CACHE PATH "Path to Qt")&lt;BR /&gt;find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)&lt;BR /&gt;It is noted that both the QT library and other dependent libraries use toolchains with the arm-linux-gnueabihf, depending on whether your device supports it&lt;BR /&gt;</description>
    <pubDate>Thu, 17 Apr 2025 05:36:26 GMT</pubDate>
    <dc:creator>linksrain</dc:creator>
    <dc:date>2025-04-17T05:36:26Z</dc:date>
    <item>
      <title>Cross Compiling for iMX6 using arm-linux-gnueabi-g++</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cross-Compiling-for-iMX6-using-arm-linux-gnueabi-g/m-p/656707#M100676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I compiled a C++ program on my Ubuntu computer using arm-linux-gnueabi-g++ and copied it over to my device that has an iMX6 (a Gateworks GW5100 board with a yocto build). Unfortunately, I'm getting a "no such file or directory" error when I try to execute the program. I've verified the permissions on the file are correct and that the file copied successfully. I just can't execute it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any reason arm-linux-gnueabi-g++ is the wrong cross compiler to use for the iMX6? Is there another one I should use instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the output of running "file" on the executable:&lt;/P&gt;&lt;P&gt;sw: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=34622f94d6f088b50e31bcd08ecd14f57947fee5, not stripped&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 06:05:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cross-Compiling-for-iMX6-using-arm-linux-gnueabi-g/m-p/656707#M100676</guid>
      <dc:creator>danlaks</dc:creator>
      <dc:date>2016-12-08T06:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Compiling for iMX6 using arm-linux-gnueabi-g++</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cross-Compiling-for-iMX6-using-arm-linux-gnueabi-g/m-p/656708#M100677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to figure this out and get it to work. It was one of two things, but I'm not sure which one it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program required libusb, which I had previously cross-compiled using arm-linux-gnueabi&lt;STRONG&gt;hf&lt;/STRONG&gt;-gcc (note the hard float suffix). But I compiled my code using arm-linux-gnueabi-g++ (not hard float). After that, I had the problem I described above. When I went back and recompiled everything with the hf compilers, it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So either 1) both libusb and my code needed to be compiled with the same float-type or 2) the iMX6 requires hard float regardless of anything else. Either way my program works on the iMX6 board now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 17:57:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cross-Compiling-for-iMX6-using-arm-linux-gnueabi-g/m-p/656708#M100677</guid>
      <dc:creator>danlaks</dc:creator>
      <dc:date>2016-12-08T17:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Compiling for iMX6 using arm-linux-gnueabi-g++</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cross-Compiling-for-iMX6-using-arm-linux-gnueabi-g/m-p/656709#M100678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As libusb required by your code requires hardware floating point library you need to have this library on the filesystem even if your code itself uses software floating point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Victor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 07:52:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cross-Compiling-for-iMX6-using-arm-linux-gnueabi-g/m-p/656709#M100678</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2016-12-09T07:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Compiling for iMX6 using arm-linux-gnueabi-g++</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cross-Compiling-for-iMX6-using-arm-linux-gnueabi-g/m-p/2082197#M236425</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I specifically registered an account to reply to you, and your solution works&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 04:32:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cross-Compiling-for-iMX6-using-arm-linux-gnueabi-g/m-p/2082197#M236425</guid>
      <dc:creator>linksrain</dc:creator>
      <dc:date>2025-04-17T04:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Compiling for iMX6 using arm-linux-gnueabi-g++</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cross-Compiling-for-iMX6-using-arm-linux-gnueabi-g/m-p/2082222#M236427</link>
      <description>set(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc)&lt;BR /&gt;set(CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabihf-g++)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;set(CMAKE_CXX_STANDARD 17)&lt;BR /&gt;set(CMAKE_CXX_STANDARD_REQUIRED ON)&lt;BR /&gt;&lt;BR /&gt;set(CMAKE_PREFIX_PATH "/home//tool/qt-everywhere-src-5.12.9/armqt-5.12.9" CACHE PATH "Path to Qt")&lt;BR /&gt;find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)&lt;BR /&gt;It is noted that both the QT library and other dependent libraries use toolchains with the arm-linux-gnueabihf, depending on whether your device supports it&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Apr 2025 05:36:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cross-Compiling-for-iMX6-using-arm-linux-gnueabi-g/m-p/2082222#M236427</guid>
      <dc:creator>linksrain</dc:creator>
      <dc:date>2025-04-17T05:36:26Z</dc:date>
    </item>
  </channel>
</rss>

