<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Compiling Qt 5.3 source code for arm linux embedded]]></title><description><![CDATA[<p dir="auto">I know this has been discussed earlier and i have read most of the post on this topic. Maybe i still missed something. I'm trying to compile Qt source code for arm-linux so that i could cross compile software from my windows 7 machine for an arm-linux system. I've installed msvc 2013 on my windows 7 host and downloaded the target toolchain - CodeSourcery g++ lite. But I'm still struggling to compile the Qt source code. Maybe someone could point out my mistake?</p>
<p dir="auto">After getting the Qt source code, i'm able to run configure.exe and get the following output.<br />
@<br />
c:\Dev\qt-everywhere-opensource-src-5.3.0\qtbase&gt;configure.exe -debug -embedded<br />
-arch arm -neon -platform win32-msvc2013 -xplatform linux-arm-gnueabi-g++<br />
Which edition of Qt do you want to use ?<br />
Type 'c' if you want to use the Commercial Edition.<br />
Type 'o' if you want to use the Open Source Edition.<br />
o</p>
<p dir="auto">This is the Qt for Windows Open Source Edition.</p>
<p dir="auto">You are licensed to use this software under the terms of<br />
the GNU Lesser General Public License (LGPL) version 2.1<br />
or the GNU General Public License (GPL) version 3.</p>
<p dir="auto">Type '3' to view the GNU General Public License version 3 (GPLv3).<br />
Type 'L' to view the Lesser GNU General Public License version 2.1 (LGPLv2.1).<br />
Type 'y' to accept this license offer.<br />
Type 'n' to decline this license offer.</p>
<p dir="auto">Do you accept the terms of the license?<br />
y<br />
Creating qmake...</p>
<p dir="auto">NOTE: The -arch option is obsolete.</p>
<p dir="auto">Qt now detects the target and host architectures based on compiler<br />
output. Qt will be built using arm for the target architecture<br />
and i386 for the host architecture (note that these two<br />
will be the same unless you are cross-compiling).</p>
<p dir="auto">Generating Makefiles...</p>
<p dir="auto">Qt is now configured for building. Just run nmake.<br />
To reconfigure, run nmake confclean and configure.<br />
@<br />
Next, i edit the existing qmake.conf in the \mkspecs\linux-arm-gnueabi-g++\ folder to be the following:</p>
<p dir="auto">@</p>
<h1></h1>
<h1>qmake configuration for building with arm-none-linux-gnueabi-g++</h1>
<h1></h1>
<p dir="auto">include(../common/unix.conf)<br />
include(../common/gcc-base-unix.conf)<br />
include(../common/g++-unix.conf)</p>
<p dir="auto">MAKEFILE_GENERATOR      = MINGW<br />
CONFIG                 += no_import_libs no_generated_target_info</p>
<h1>modifications to g++.conf</h1>
<p dir="auto">QMAKE_CC                = arm-none-linux-gnueabi-gcc<br />
QMAKE_CXX               = arm-none-linux-gnueabi-g++<br />
QMAKE_LINK              = arm-none-linux-gnueabi-g++<br />
QMAKE_LINK_SHLIB        = arm-none-linux-gnueabi-g++<br />
QMAKE_LIB               = arm-none-linux-gnueabi-ar<br />
QMAKE_AR                = arm-none-linux-gnueabi-ar cqs<br />
QMAKE_OBJCOPY           = arm-none-linux-gnueabi-objcopy<br />
QMAKE_STRIP             = arm-none-linux-gnueabi-strip<br />
QMAKE_RUN_CC            = $(CC) -c $(CFLAGS) $(INCPATH) -o $obj $src<br />
QMAKE_RUN_CC_IMP        = $(CC) -c $(CFLAGS) $(INCPATH) -o $"@" $&lt;<br />
QMAKE_RUN_CXX           = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $src<br />
QMAKE_RUN_CXX_IMP       = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $"@" $&lt;<br />
QMAKE_INCDIR            =<br />
QMAKE_INCDIR_QT         = $$[QT_INSTALL_HEADERS]<br />
QMAKE_LIBDIR_QT         = $$[QT_INSTALL_LIBS]<br />
QMAKE_MOC               = $$[QT_INSTALL_BINS]\moc.exe<br />
QMAKE_UIC               = $$[QT_INSTALL_BINS]\uic.exe<br />
QMAKE_IDC               = $$[QT_INSTALL_BINS]\idc.exe<br />
QMAKE_COPY              = copy /y<br />
QMAKE_COPY_DIR          = xcopy /s /q /y /i<br />
QMAKE_MOVE              = move<br />
QMAKE_DEL_FILE          = del<br />
QMAKE_MKDIR             = mkdir<br />
QMAKE_DEL_DIR           = rmdir<br />
QMAKE_CHK_DIR_EXISTS    = if not exist<br />
QMAKE_IDL               = midl<br />
QMAKE_ZIP               = zip -r -9<br />
CODESOURCERY_ARM_CFLAGS = -march=armv7-a -mtune=cortex-a8 -mthumb -mfpu=neon -mfloat-abi=softfp -Wa,-mimplicit-it=thumb<br />
TARGET_SYSROOT          = /CodeSourcery-sysroot<br />
TARGET_QTDIR            = /QtEmbedded-5.3.1-arm<br />
#modifications to gcc-base.conf<br />
QMAKE_CFLAGS           += $$CODESOURCERY_ARM_CFLAGS<br />
QMAKE_CXXFLAGS         += $$CODESOURCERY_ARM_CFLAGS<br />
QMAKE_LIBS             += -lrt -lpthread -ldl<br />
QMAKE_LFLAGS           += $${QMAKE_LFLAGS_RPATH}$$[QT_INSTALL_LIBS]<br />
!isEmpty(TARGET_QTDIR) {<br />
QMAKE_LFLAGS       += $${QMAKE_LFLAGS_RPATH}$${TARGET_QTDIR}/lib<br />
}<br />
!isEmpty(TARGET_SYSROOT) {<br />
QMAKE_LFLAGS       += $${QMAKE_LFLAGS_RPATH}$${TARGET_SYSROOT}/lib:$${TARGET_SYSROOT}/usr/lib<br />
QMAKE_LFLAGS       += -Wl,--dynamic-linker=$${TARGET_SYSROOT}/lib/ld-linux.so.3<br />
}<br />
load(qt_config)<br />
@</p>
<p dir="auto">However, when i run either nmake or jom (yes, i did set the PATH to include jom.exe), i get an error - "test" is not recognized as an internal or external command....<br />
@<br />
c:\Dev\qt-everywhere-opensource-src-5.3.0\qtbase&gt;jom</p>
<p dir="auto">jom 1.0.14 - empower your cores</p>
<p dir="auto">'test' is not recognized as an internal or external command,<br />
operable program or batch file.<br />
A subdirectory or file -p already exists.<br />
Error occurred while processing: -p.<br />
A subdirectory or file src already exists.<br />
Error occurred while processing: src.<br />
A subdirectory or file cd already exists.<br />
Error occurred while processing: cd.<br />
A subdirectory or file src\ already exists.<br />
Error occurred while processing: src.<br />
jom: C:\Dev\qt-everywhere-opensource-src-5.3.0\qtbase\Makefile [sub-src-make_fir<br />
st] Error 1<br />
@</p>
<p dir="auto">Any thoughts or suggestions?</p>
]]></description><link>https://forum.qt.io/topic/42880/compiling-qt-5-3-source-code-for-arm-linux-embedded</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 10:42:01 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/42880.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Jun 2014 22:28:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Compiling Qt 5.3 source code for arm linux embedded on Tue, 02 Sep 2014 20:37:51 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">qt_for_embedded, or anyone that knows ...</p>
<p dir="auto">did you manage to solve the problem when trying to compile qt for arm in windows? I am having the same problem and not sure how to proceed at this moment. What is this "test" command?</p>
<p dir="auto">This is what I get:<br />
@PS C:\Qt\qt-everywhere-opensource-src-5.3.1&gt; jom</p>
<p dir="auto">jom 1.0.14 - empower your cores</p>
<p dir="auto">'test' is not recognized as an internal or external command,<br />
operable program or batch file.<br />
A subdirectory or file qtbase already exists.<br />
Error occurred while processing: qtbase.<br />
A subdirectory or file qtbase\ already exists.<br />
Error occurred while processing: qtbase.<br />
jom: C:\Qt\qt-everywhere-opensource-src-5.3.1\Makefile [module-qtbase-make_first] Error 1@</p>
<p dir="auto">I am using the "linaro toolchain for windows":<a href="http://releases.linaro.org/13.06/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.8-2013.06-20130620_win32.exe" target="_blank" rel="noopener noreferrer nofollow ugc">http://releases.linaro.org/13.06/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.8-2013.06-20130620_win32.exe</a> (I'm using Win7) and I've configured Qt to compile with the following options.</p>
<p dir="auto">@.\configure -prefix C:\Qt\qt-everywhere-opensource-src-5.3.1\qtbase -release -opensource -confirm-license -embedded -neon -platform win32-g++ -xplatform linux-arm-gnueabihf-g++ -skip qtwebkit -skip qtwebkit-examples -skip qtserialport -skip qttools -skip qtx11extras -skip qtandroidextras -nomake tools -nomake examples -nomake tests -no-opengl -no-compile-examples -no-widgets -no-gui -no-opengl -no-angle@</p>
<p dir="auto">The configuration step works well. Any help is appreciated. Thanks!</p>
]]></description><link>https://forum.qt.io/post/242222</link><guid isPermaLink="true">https://forum.qt.io/post/242222</guid><dc:creator><![CDATA[spacemig]]></dc:creator><pubDate>Tue, 02 Sep 2014 20:37:51 GMT</pubDate></item><item><title><![CDATA[Reply to Compiling Qt 5.3 source code for arm linux embedded on Fri, 27 Jun 2014 22:11:36 GMT]]></title><description><![CDATA[<p dir="auto">Yes, I'm using linaro gcc on Linux, although for my embedded boards, codesourcery was also recommended - but I ended up reverting to linaro as codesourcery somehow was giving me issues - but nothing specific like you are having on your Windows environment...</p>
]]></description><link>https://forum.qt.io/post/233770</link><guid isPermaLink="true">https://forum.qt.io/post/233770</guid><dc:creator><![CDATA[wickwire]]></dc:creator><pubDate>Fri, 27 Jun 2014 22:11:36 GMT</pubDate></item><item><title><![CDATA[Reply to Compiling Qt 5.3 source code for arm linux embedded on Fri, 27 Jun 2014 22:02:06 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Im trying to get this to work on the Nvidia Jetson TK1, which has an ARM Cortex A15 (<a href="http://en.wikipedia.org/wiki/Tegra" target="_blank" rel="noopener noreferrer nofollow ugc">http://en.wikipedia.org/wiki/Tegra</a>).</p>
<p dir="auto">Also, you are on a linux host and compiling with linaro cross-compiler, right?<br />
I'm on win 7, trying to get this to work with codesourcery.</p>
]]></description><link>https://forum.qt.io/post/233767</link><guid isPermaLink="true">https://forum.qt.io/post/233767</guid><dc:creator><![CDATA[qt_for_embedded]]></dc:creator><pubDate>Fri, 27 Jun 2014 22:02:06 GMT</pubDate></item><item><title><![CDATA[Reply to Compiling Qt 5.3 source code for arm linux embedded on Fri, 27 Jun 2014 21:53:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Are you working with a specific ARM device, or trying to build Qt in a generic fashion?</p>
<p dir="auto">I've been working with embedded community boards for a while now and each board, each SoC has some kind of singularity, which usually results at least in specific mkspecs files for that device.</p>
<p dir="auto">Some examples include:</p>
<ul>
<li>Raspberry Pi</li>
<li>Cubieboard</li>
<li>Beagleboard</li>
</ul>
<p dir="auto">For example, for Cubieboard (A20 SoC), which is an ARM Cortex A8 dual core with a Mali 400MP2 GPU, I've successfully cross-compiled Qt5 using specific cubieboard mkspec files and the following configure line (generating cross-compiled QT5 libraries to work on framebuffer):</p>
<p dir="auto">@<br />
./configure <br />
-opengl es2 <br />
-device linux-cubieboard2-g++ <br />
-device-option CROSS_COMPILE=/opt/sdcard.cubieboard.workbench/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/arm-linux-gnueabihf- <br />
-sysroot /opt/qt5.cubieboard2A20.workbench/cubie2-rootfs <br />
-opensource <br />
-confirm-license <br />
-optimized-qmake <br />
-release <br />
-make libs <br />
-prefix /usr/local/qt5cb2 <br />
-no-pch <br />
-nomake examples <br />
-nomake tests <br />
-no-xcb <br />
-eglfs <br />
-v<br />
@</p>
]]></description><link>https://forum.qt.io/post/233763</link><guid isPermaLink="true">https://forum.qt.io/post/233763</guid><dc:creator><![CDATA[wickwire]]></dc:creator><pubDate>Fri, 27 Jun 2014 21:53:40 GMT</pubDate></item></channel></rss>