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