Results 1 to 3 of 3

Thread: Trouble configuring Qt

  1. #1
    Join Date
    Feb 2013
    Posts
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Trouble configuring Qt

    Hi,

    I am trying to write a program to put on my beaglebone and I have been trying research how to properly do the process for a few months now and I just can not get it. The problem comes when I am trying to do ./configure and make. Even if I do ./configure with no options and then run make, it will fail. Below is my current setup that I am trying.

    Hardware/Software
    Host- Ubuntu 12.10 64bit
    Target- beaglebone
    Qt- 4.8.3 opensource
    Angstrom toolchain- angstrom-2011.03-x86_64-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.3


    I have been finding some guides online and trying to follow them but I always get errors at some step that I can't fix. Here are some of what I looked are below.

    http://treyweaver.blogspot.com.es/20...vironment.html
    http://qt-project.org/forums/viewthread/21082/
    https://groups.google.com/forum/?fro...rd/IR6nsCzgJ7I

    Here is my qmake.conf for the target (/mkspecs/qws/linux-arm-gnueabi-g++). I have tried many different variations.

    Qt Code:
    1. #
    2. # qmake configuration for building with arm-none-linux-gnueabi-g++
    3. #
    4.  
    5. include(../../common/linux.conf)
    6. include(../../common/gcc-base-unix.conf)
    7. include(../../common/g++-unix.conf)
    8. include(../../common/qws.conf)
    9.  
    10. QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
    11. QMAKE_CXXFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
    12.  
    13. # modifications to g++.conf
    14. QMAKE_CC = /home/scott/angstrom/toolchain/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gcc
    15. QMAKE_CXX = /home/scott/angstrom/toolchain/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-g++
    16. QMAKE_LINK = /home/scott/angstrom/toolchain/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-g++
    17. QMAKE_LINK_SHLIB = /home/scott/angstrom/toolchain/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-g++
    18.  
    19. # modifications to linux.conf
    20. QMAKE_AR = /home/scott/angstrom/toolchain/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-ar cqs
    21. QMAKE_OBJCOPY = /home/scott/angstrom/toolchain/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-objcopy
    22. QMAKE_STRIP = /home/scott/angstrom/toolchain/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-strip
    23.  
    24. load(qt_config)
    To copy to clipboard, switch view to plain text mode 

    For my configure options
    Qt Code:
    1. ./configure -opensource -confirm-license -no-qt3support -nomake examples -embedded arm -little-endian -xplatform qws/linux-arm-gnueabi-g++ -prefix /opt/qt4-beagle -release -platform /qws/linux-x86_64-g++ -host-big-endian
    To copy to clipboard, switch view to plain text mode 
    I'll get a bunch of text and then I will get lines and lines of these

    Qt Code:
    1. /home/scott/qt-everywhere-opensource-src-4.8.3/mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf:1: Parse Error ('')
    2. Failure to read QMAKESPEC conf file /home/scott/qt-everywhere-opensource-src-4.8.3/mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf.
    3. Error processing project file: /home/scott/qt-everywhere-opensource-src-4.8.3/config.tests/unix/floatmath/floatmath.pro
    4. /home/scott/qt-everywhere-opensource-src-4.8.3/mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf:1: Parse Error ('')
    5. Failure to read QMAKESPEC conf file /home/scott/qt-everywhere-opensource-src-4.8.3/mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf.
    6. Error processing project file: /home/scott/qt-everywhere-opensource-src-4.8.3/config.tests/unix/mmx/mmx.pro
    7.  
    8. ….
    9. …
    10.  
    11. ln: failed to create symbolic link `/home/scott/qt-everywhere-opensource-src-4.8.3/include/QtCore/qconfig.h': File exists
    12. ln: failed to create symbolic link `/home/scott/qt-everywhere-opensource-src-4.8.3/include/Qt/qconfig.h': File exists
    13.  
    14. Building on: /qws/linux-x86_64-g++
    15. Building for: qws/linux-arm-gnueabi-g++
    16. Architecture: arm
    17. Host architecture: x86_64
    18.  
    19.  
    20. Build .................. libs demos docs translations
    21. Configuration .......... cross_compile release shared dll embedded largefile precompile_header exceptions_off minimal-config small-config medium-config large-config full-config no-pkg-config accessibility embedded reduce_exports png freetype zlib concurrent multimedia audio-backend svg release
    22. Debug .................. no
    23. Qt 3 compatibility ..... no
    24. QtDBus module .......... no
    25. QtConcurrent code ...... yes
    26. QtGui module ........... yes
    27. QtScript module ........ no
    28. QtScriptTools module ... no
    29. QtXmlPatterns module ... no
    30. Phonon module .......... no
    31. Multimedia module ...... auto
    32. SVG module ............. yes
    33. WebKit module .......... no
    34. Declarative module ..... no
    35. Support for S60 ........ no
    36. Symbian DEF files ...... no
    37. STL support ............ no
    38. PCH support ............ yes
    39. MMX/3DNOW/SSE/SSE2/SSE3. no/no/no/no/no
    40. SSSE3/SSE4.1/SSE4.2..... no/no/no
    41. AVX..................... no
    42. iWMMXt support ......... no
    43. NEON support ........... no
    44. IPv6 support ........... no
    45. IPv6 ifname support .... no
    46. getaddrinfo support .... no
    47. getifaddrs support ..... no
    48. Accessibility .......... yes
    49. NIS support ............ no
    50. CUPS support ........... no
    51. Iconv support .......... no
    52. Glib support ........... no
    53. GStreamer support ...... no
    54. PulseAudio support ..... no
    55. Large File support ..... yes
    56. GIF support ............ plugin
    57. TIFF support ........... plugin (qt)
    58. JPEG support ........... plugin (qt)
    59. PNG support ............ yes (qt)
    60. MNG support ............ plugin (qt)
    61. zlib support ........... yes
    62. Session management ..... no
    63. Embedded support ....... arm
    64. Freetype2 support ...... auto (yes)
    65. Graphics (qt) .......... linuxfb multiscreen
    66. Graphics (plugin) ......
    67. Decorations (qt) ....... styled windows default
    68. Decorations (plugin) ...
    69. Keyboard driver (qt) ... tty
    70. Keyboard driver (plugin) ..
    71. Mouse driver (qt) ...... pc linuxtp
    72. Mouse driver (plugin) ..
    73. OpenGL support ......... no
    74. OpenVG support ......... no
    75. SQLite support ......... plugin (qt)
    76. OpenSSL support ........ no
    77. Alsa support ........... no
    78. ICD support ............ no
    79. libICU support ......... no
    80.  
    81. Finding project files. Please wait...
    82. /home/scott/qt-everywhere-opensource-src-4.8.3/mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf:1: Parse Error ('')
    83. Failure to read QMAKESPEC conf file /home/scott/qt-everywhere-opensource-src-4.8.3/mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf.
    84. Error processing project file: /home/scott/qt-everywhere-opensource-src-4.8.3/projects.pro
    85. /home/scott/qt-everywhere-opensource-src-4.8.3/mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf:1: Parse Error ('')
    86. Failure to read QMAKESPEC conf file /home/scott/qt-everywhere-opensource-src-4.8.3/mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf.
    87. Error processing project file: /home/scott/qt-everywhere-opensource-src-4.8.3/projects.pro
    88. 1088 projects found.
    89.  
    90. Creating makefiles. Please wait...
    91. for /home/scott/qt-everywhere-opensource-src-4.8.3/src/dbus/dbus.pro
    92. /home/scott/qt-everywhere-opensource-src-4.8.3/mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf:1: Parse Error ('')
    93. Failure to read QMAKESPEC conf file /home/scott/qt-everywhere-opensource-src-4.8.3/mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf.
    94. Error processing project file: /home/scott/qt-everywhere-opensource-src-4.8.3/src/dbus/dbus.pro
    95. for /home/scott/qt-everywhere-opensource-src-4.8.3/src/corelib/corelib.pro
    96. /home/scott/qt-everywhere-opensource-src-4.8.3/mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf:1: Parse Error ('')
    97. Failure to read QMAKESPEC conf file /home/scott/qt-everywhere-opensource-src-4.8.3/mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf.
    98. Error processing project file: /home/scott/qt-everywhere-opensource-src-4.8.3/src/corelib/corelib.pro
    99. for /home/scott/qt-everywhere-opensource-src-4.8.3/src/declarative/declarative.pro
    To copy to clipboard, switch view to plain text mode 

    Then I will get more lines and lines of the Parse errors and at the very end I get

    Once everything is built, you must run 'make install'.
    Qt will be installed into /opt/qt4-beagle

    To reconfigure, run 'make confclean' and 'configure'.


    And if I do a make just for kicks and giggles, I will get a bunch of assembler instruction errors

    Qt Code:
    1. ../../include/QtCore/../../src/corelib/arch/qatomic_armv5.h:131: Error: no such instruction: `swpb %dl,%r12b,[%rbx]'
    2. ../../include/QtCore/../../src/corelib/arch/qatomic_armv5.h:131: Error: no such instruction: `swpb %cl,%dl,[%rbx]'
    3. make[1]: *** [.obj/release-shared-emb-arm/qabstractanimation.o] Error 1
    4. make[1]: Leaving directory `/home/scott/qt-everywhere-opensource-src-4.8.3/src/corelib'
    5. make: *** [sub-corelib-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    My path and qmakespec is below

    PATH="/home/scott/qt-everywhere-opensource-src-4.8.3/bin/:/usr/arm-linux-gnueabi/bin/:/home/scott/CodeSourcery/SCB_Lite_ARM/bin:/home/scott/CodeSourcery/SCB_Lite_ARM/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
    QMAKESPEC="/home/scott/qt-everywhere-opensource-src-4.8.3/mkspecs/qws/linux-x86_64-g++"

    Any suggestions?

    Thanks

  2. #2
    Join Date
    Feb 2013
    Location
    Prague
    Posts
    7
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Trouble configuring Qt

    Hello,

    I successfully managed to cross-compile Qt and run my Qt apps on Beaglebone.
    Here is my configure:
    ./configure -prefix ~/armhf-build -opensource -confirm-license -embedded arm -platform qws/linux-x86-g++ -xplatform qws/linux-omap3-g++ -little-endian -host-little-endian -no-webkit

    Here is mkspec:
    Qt Code:
    1. #
    2. # qmake configuration for linux-g++
    3. #
    4.  
    5. #Pretty good source of SGX information although it is about the pandaboard
    6. #[url]http://tigraphics.blogspot.com/2011/07/running-qtgles-on-omap4.html[/url]
    7.  
    8. MAKEFILE_GENERATOR = UNIX
    9. TARGET_PLATFORM = unix
    10. TEMPLATE = app
    11. CONFIG += qt warn_on release incremental link_prl gdb_dwarf_index
    12. QT += core gui
    13. QMAKE_INCREMENTAL_STYLE = sublib
    14.  
    15. include(../common/linux.conf)
    16. include(../common/gcc-base-unix.conf)
    17. include(../common/g++-unix.conf)
    18.  
    19. SYSROOT=/media/rootfs
    20. GCC_PREFIX=/usr/bin/arm-linux-gnueabihf
    21.  
    22. # modifications to g++.conf
    23. QMAKE_CC = $${GCC_PREFIX}-gcc --sysroot=$${SYSROOT}
    24. QMAKE_CXX = $${GCC_PREFIX}-g++ --sysroot=$${SYSROOT}
    25. QMAKE_LINK = $${QMAKE_CXX}
    26. QMAKE_LINK_SHLIB = $${QMAKE_CXX}
    27.  
    28. # modifications to linux.conf
    29. QMAKE_AR = $${GCC_PREFIX}-ar cqs
    30. QMAKE_OBJCOPY = $${GCC_PREFIX}-objcopy
    31. QMAKE_STRIP = $${GCC_PREFIX}-strip
    32.  
    33. QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard
    34. QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE
    35.  
    36. #QMAKE_LIBDIR_X11 = /usr/lib/arm-linux-gnueabihf
    37. #QMAKE_INCDIR_X11 = /usr/include
    38.  
    39. QMAKE_LIBDIR = $${SYSROOT}/usr/lib/arm-linux-gnueabihf $${SYSROOT}/lib/arm-linux-gnueabihf
    40.  
    41. # Work round PowerVR SGX 1.3 driver bug with glScissor & FBOs:
    42. #DEFINES += QT_GL_NO_SCISSOR_TEST
    43.  
    44. # Work round SGX 1.4 driver bug (text corrupted), modify glyph cache width:
    45. #DEFINES += QT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024
    46.  
    47. #QMAKE_LIBS_OPENGL_ES2 = -lEGL -lGLESv2 -lGLES_CM -lIMGegl -lsrv_um
    48.  
    49. load(qt_config)
    To copy to clipboard, switch view to plain text mode 

    Hope this helps.

    Cheers.
    Michal

  3. #3
    Join Date
    Apr 2013
    Posts
    3
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: Trouble configuring Qt

    Hi

    I have the same setup and have been trying for ages to set it up correctly.

    Did the suggested solution work for you? Have you managed to get it working?

    James

Similar Threads

  1. Trouble configuring Qt 4.7.2 Windows Binary
    By jshafferman in forum Installation and Deployment
    Replies: 3
    Last Post: 3rd May 2011, 18:26
  2. Replies: 3
    Last Post: 12th December 2010, 11:46
  3. Error while configuring Qt for WinCE6.0
    By Anu in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 19th November 2009, 10:28
  4. Need help installing / configuring
    By TheSaw in forum Installation and Deployment
    Replies: 4
    Last Post: 6th April 2009, 04:05
  5. Qt/Mac Configuring with libTiff ?
    By nareshqt in forum Installation and Deployment
    Replies: 0
    Last Post: 11th June 2008, 12:19

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.