Results 1 to 1 of 1

Thread: Problems compiling Qt 4.8.6 for ARM926EJ-S

  1. #1
    Join Date
    Jul 2011
    Location
    Madrid, Spain
    Posts
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Problems compiling Qt 4.8.6 for ARM926EJ-S

    Hi all,

    Last two days I've tried to compile qt-everywhere-opensource-src-4.8.6 for ARM architecture following the next steps ( based on this post ):

    1. tar -xzf qt-everywhere-opensource-src-4.8.6.tar.gz
    2. mv qt-everywhere-opensource-src-4.8.6 qt-4.8.5-embedded
    3. cd qt-4.8.6-embedded
    4. mkdir ./mkspecs/qws/linux-farebox-armv5-g++
    5. cp ./mkspecs/qws/linux-arm-g++/qplatformdefs.h ./mkspecs/qws/linux-farebox-armv5-g++
    6. touch ./mkspecs/qws/linux-farebox-armv5-g++/qmake.conf
    7. gedit ./mkspecs/qws/linux-farebox-armv5-g++/qmake.conf


    /qt-4.8.6-embedded/mkspecs/qws/linux-farebox-armv5-g++/qmake.conf has the following content:

    Qt Code:
    1. #
    2. # qmake configuration for building with arm-unknown-linux-gnueabi-g++
    3. #
    4.  
    5. MAKEFILE_GENERATOR = UNIX
    6. TEMPLATE = app
    7. CONFIG += qt warn_on release incremental link_prl
    8. QT += core gui network
    9. QMAKE_INCREMENTAL_STYLE = sublib
    10.  
    11. include(../../common/linux.conf)
    12. include(../../common/gcc-base-unix.conf)
    13. include(../../common/g++.conf)
    14. include(../../common/qws.conf)
    15.  
    16. # Compiler Flags to take advantage of the ARM architecture
    17. QMAKE_CFLAGS_RELEASE += -O3 -mcpu=arm926ej-s -march=armv5tej -mfpu=neon -mfloat-abi=softfp
    18. QMAKE_CXXFLAGS_RELEASE += -O3 -mcpu=arm926ej-s -march=armv5tej -mfpu=neon -mfloat-abi=softfp
    19.  
    20. # modifications to g++.conf
    21. QMAKE_CC = /cross-tools/arm-unknown-linux-gnueabi/bin/gcc
    22. QMAKE_CXX = /cross-tools/arm-unknown-linux-gnueabi/bin/g++
    23. QMAKE_LINK = /cross-tools/arm-unknown-linux-gnueabi/bin/g++
    24. QMAKE_LINK_SHLIB = /cross-tools/arm-unknown-linux-gnueabi/bin/g++
    25.  
    26. # modifications to linux.conf
    27. QMAKE_AR = /cross-tools/arm-unknown-linux-gnueabi/bin/ar cqs
    28. QMAKE_OBJCOPY = /cross-tools/arm-unknown-linux-gnueabi/bin/objcopy
    29. QMAKE_STRIP = /cross-tools/arm-unknown-linux-gnueabi/bin/strip
    30.  
    31. load(qt_config)
    To copy to clipboard, switch view to plain text mode 

    After that, I run this command:

    Qt Code:
    1. ./configure -v -debug -opensource -confirm-license -prefix /opt/qt-embedded -embedded arm -platform qws/linux-x86-g++ -xplatform qws/linux-farebox-armv5-g++ -depths 16,24,32 -no-mmx -no-3dnow -no-sse -no-sse2 -no-glib -no-cups -no-largefile -no-accessibility -no-openssl -no-gtkstyle -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast -little-endian -host-big-endian -no-pch -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-webkit -no-qt3support -nomake examples -nomake demos -nomake docs -nomake translations
    To copy to clipboard, switch view to plain text mode 

    After a few seconds, console shows the next:

    Qt Code:
    1. ...(code snippet)
    2.  
    3. arm-unknown-linux-gnueabi-g++ -o "/home/user/Desktop/qt-4.8.6-farebox/bin/qmake" project.o property.o main.o makefile.o unixmake2.o unixmake.o mingw_make.o option.o winmakefile.o projectgenerator.o meta.o makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o borland_bmake.o msvc_vcproj.o msvc_vcxproj.o msvc_nmake.o msvc_objectmodel.o msbuild_objectmodel.o symmake.o initprojectdeploy_symbian.o symmake_abld.o symmake_sbsv2.o symbiancommon.o registry.o epocroot.o gbuild.o qtextcodec.o qutfcodec.o qstring.o qtextstream.o qiodevice.o qmalloc.o qglobal.o qbytearray.o qbytearraymatcher.o qdatastream.o qbuffer.o qlist.o qfile.o qfilesystementry.o qfilesystemengine_unix.o qfilesystemengine.o qfilesystemiterator_unix.o qfsfileengine_unix.o qfsfileengine.o qfsfileengine_iterator.o qregexp.o qvector.o qbitarray.o qdir.o qdiriterator.o quuid.o qhash.o qfileinfo.o qdatetime.o qstringlist.o qabstractfileengine.o qtemporaryfile.o qmap.o qmetatype.o qsettings.o qsystemerror.o qlibraryinfo.o qvariant.o qvsnprintf.o qlocale.o qlocale_tools.o qlocale_unix.o qlinkedlist.o qnumeric.o qcryptographichash.o qxmlstream.o qxmlutils.o
    4.  
    5. You have not explicitly asked to use pkg-config and are cross-compiling.
    6. pkg-config will not be used to automatically query cflag/lib parameters for
    7. dependencies
    8.  
    9. floatmath auto-detection... ()
    10. /home/user/Desktop/qt-4.8.6-farebox/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    11. make: *** No targets specified and no makefile found. Stop.
    12. floatmath disabled.
    13. neon auto-detection... ()
    14. /home/user/Desktop/qt-4.8.6-farebox/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    15. make: *** No targets specified and no makefile found. Stop.
    16. neon disabled.
    17.  
    18. ...(code snippet)
    19.  
    20. Testing size of pointers ... (/home/user/Desktop/qt-4.8.6-farebox/mkspecs/qws/linux-farebox-armv5-g++ yes /home/user/Desktop/qt-4.8.6-farebox /home/user/Desktop/qt-4.8.6-farebox)
    21. make: *** No rule to make target `clean'. Stop.
    22. Pointer size: 4
    23. ln: creating symbolic link `/home/user/Desktop/qt-4.8.6-farebox/include/QtCore/qconfig.h': File exists
    24. ln: creating symbolic link `/home/user/Desktop/qt-4.8.6-farebox/include/Qt/qconfig.h': File exists
    25.  
    26. Building on: qws/linux-x86-g++
    27. Building for: qws/linux-farebox-armv5-g++
    28. Architecture: arm
    29. Host architecture: i386
    30.  
    31. qmake vars .......... cat: .qmake.vars: No such file or directory
    32. qmake switches .........
    33. Build .................. libs
    34. Configuration .......... cross_compile debug embedded exceptions_off minimal-config small-config medium-config large-config full-config no-pkg-config shared embedded reduce_exports png freetype zlib concurrent multimedia audio-backend svg debug
    35. Debug .................. yes
    36. Qt 3 compatibility ..... no
    37. QtDBus module .......... no
    38. QtConcurrent code ...... yes
    39. QtGui module ........... yes
    40. QtScript module ........ no
    41. QtScriptTools module ... no
    42. QtXmlPatterns module ... no
    43. Phonon module .......... no
    44. Multimedia module ...... auto
    45. SVG module ............. yes
    46. WebKit module .......... no
    47. Declarative module ..... no
    48. Support for S60 ........ no
    49. Symbian DEF files ...... no
    50. STL support ............ no
    51. PCH support ............ no
    52. MMX/3DNOW/SSE/SSE2/SSE3. no/no/no/no/no
    53. SSSE3/SSE4.1/SSE4.2..... no/no/no
    54. AVX..................... no
    55. iWMMXt support ......... no
    56. NEON support ........... no
    57. IPv6 support ........... no
    58. IPv6 ifname support .... no
    59. getaddrinfo support .... no
    60. getifaddrs support ..... no
    61. Accessibility .......... no
    62. NIS support ............ no
    63. CUPS support ........... no
    64. Iconv support .......... no
    65. Glib support ........... no
    66. GStreamer support ...... no
    67. PulseAudio support ..... no
    68. Large File support ..... no
    69. GIF support ............ plugin
    70. TIFF support ........... plugin (qt)
    71. JPEG support ........... plugin (qt)
    72. PNG support ............ yes (qt)
    73. MNG support ............ plugin (qt)
    74. zlib support ........... yes
    75. Session management ..... no
    76. Embedded support ....... arm
    77. Freetype2 support ...... auto (yes)
    78. Graphics (qt) .......... linuxfb multiscreen
    79. Graphics (plugin) ......
    80. Decorations (qt) ....... styled windows default
    81. Decorations (plugin) ...
    82. Keyboard driver (qt) ... tty
    83. Keyboard driver (plugin) ..
    84. Mouse driver (qt) ...... linuxinput
    85. Mouse driver (plugin) .. linuxtp pc
    86. OpenGL support ......... no
    87. OpenVG support ......... no
    88. OpenSSL support ........ no
    89. Alsa support ........... no
    90. ICD support ............ no
    91. libICU support ......... no
    92. Use system proxies ..... no
    93.  
    94. Finding project files. Please wait...
    95. /home/user/Desktop/qt-4.8.6-farebox/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    96. /home/user/Desktop/qt-4.8.6-farebox/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    97. 1088 projects found.
    98.  
    99. ... (code snippet)
    100.  
    101. Creating makefiles. Please wait...
    102. for /home/user/Desktop/qt-4.8.6-farebox/src/qt3support/qt3support.pro (linux-farebox-armv5-g++)
    103. /home/user/Desktop/qt-4.8.6-farebox/bin/qmake -spec /home/user/Desktop/qt-4.8.6-farebox/mkspecs/qws/linux-farebox-armv5-g++ -o /home/user/Desktop/qt-4.8.6-farebox/./src/qt3support /home/user/Desktop/qt-4.8.6-farebox/src/qt3support/qt3support.pro
    104. /home/user/Desktop/qt-4.8.6-farebox/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    105. for /home/user/Desktop/qt-4.8.6-farebox/src/corelib/corelib.pro (linux-farebox-armv5-g++)
    106. /home/user/Desktop/qt-4.8.6-farebox/bin/qmake -spec /home/user/Desktop/qt-4.8.6-farebox/mkspecs/qws/linux-farebox-armv5-g++ -o /home/user/Desktop/qt-4.8.6-farebox/./src/corelib /home/user/Desktop/qt-4.8.6-farebox/src/corelib/corelib.pro
    107. /home/user/Desktop/qt-4.8.6-farebox/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    108. for /home/user/Desktop/qt-4.8.6-farebox/src/script/script.pro (linux-farebox-armv5-g++)
    109. /home/user/Desktop/qt-4.8.6-farebox/bin/qmake -spec /home/user/Desktop/qt-4.8.6-farebox/mkspecs/qws/linux-farebox-armv5-g++ -o /home/user/Desktop/qt-4.8.6-farebox/./src/script /home/user/Desktop/qt-4.8.6-farebox/src/script/script.pro
    110. /home/user/Desktop/qt-4.8.6-farebox/bin/qmake: 1: Syntax error: word unexpected (expecting ")")
    111. for /home/user/Desktop/qt-4.8.6-farebox/src/tools/moc/moc.pro (linux-x86-g++)
    112. /home/user/Desktop/qt-4.8.6-farebox/bin/qmake -spec /home/user/Desktop/qt-4.8.6-farebox/mkspecs/qws/linux-x86-g++ -o /home/user/Desktop/qt-4.8.6-farebox/./src/tools/moc /home/user/Desktop/qt-4.8.6-farebox/src/tools/moc/moc.pro
    To copy to clipboard, switch view to plain text mode 

    And finally, the process finishes with this message.

    Qt Code:
    1. ... (code snippet)
    2.  
    3. for /home/user/Desktop/qt-4.8.6-farebox/src/plugins/sqldrivers/symsql/symsql.pro (fast)
    4. for /home/user/Desktop/qt-4.8.6-farebox/src/plugins/qmltooling/qmldbg_inspector/qmldbg_inspector.pro (fast)
    5. for /home/user/Desktop/qt-4.8.6-farebox/src/plugins/qmltooling/qmldbg_tcp/qmldbg_tcp.pro (fast)
    6. for /home/user/Desktop/qt-4.8.6-farebox/src/plugins/qmltooling/qmldbg_ost/qmldbg_ost.pro (fast)
    7.  
    8. Qt is now configured for building. Just run 'make'.
    9. Once everything is built, you must run 'make install'.
    10. Qt will be installed into /opt/qt-embedded
    11.  
    12. To reconfigure, run 'make confclean' and 'configure'.
    To copy to clipboard, switch view to plain text mode 

    I try to run "make" but it does not work. Makefile does not exist.

    Hope you can help me with it!

    Thanks!!
    Last edited by Jafuentes; 28th July 2015 at 10:31.

Similar Threads

  1. Compiling Problems
    By Seryoga in forum Newbie
    Replies: 2
    Last Post: 26th March 2014, 21:39
  2. Problems compiling Qwt 6.1
    By prophetofreason in forum Qwt
    Replies: 6
    Last Post: 17th January 2013, 15:49
  3. Replies: 1
    Last Post: 9th November 2011, 10:24
  4. problems with compiling in qt4.6
    By nataly in forum Qt Programming
    Replies: 0
    Last Post: 14th December 2009, 13:09
  5. Problems compiling QMAKE
    By JNT in forum Installation and Deployment
    Replies: 4
    Last Post: 9th January 2007, 18:23

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.