David Fitzgerald

Could someone help a newbie with QT?

Discussion created by David Fitzgerald on Oct 6, 2011
Latest reply on Jan 19, 2012 by Vladan Jovanovic

Hi all,

 

http://www.qtcentre.org/threads/45065-configure-embedded-QT4.7.4

 

http://stackoverflow.com/questions/7662404/installing-qt4-7-4-for-embedded-linux-multiple-errors

 

I was wondering if someone could help with my config of QT4.7.4 for iMx233?

I'm an absolute beginner with Linux and developing for embedded Linux. I'm trying to install QT for embedded Linux onto my Fedora 15 laptop to target an i.Mx233.

Firstly, within the qt-everywhere-opensource-src-4.7.4 folder, I enter the command:
Qt Code:
  1. PKG_CONFIG_PATH=/opt/freescale/pkgs ./configure --prefix=/opt/freescale/pkgs -v -embedded arm -xplatform qws/linux-arm-imx -phonon -force-pkg-config
To copy to clipboard, switch view to plain text mode
I'm not sure if this is even correct - I have no idea what the PKG_CONFIG is or where to find it.

With the linux-arm-imx qmake conf file:
Qt Code:
  1. #
  2. # qmake configuration for building with arm-none-linux-gnueabi-g++
  3. #
  4. include(../../common/g++.conf)
  5. include(../../common/linux.conf)
  6. include(../../common/qws.conf)
  7. # modifications to g++.conf
  8. QMAKE_CC = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc-4.1.2
  9. QMAKE_CXX = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++
  10. QMAKE_LINK = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++
  11. QMAKE_LINK_SHLIB = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++
  12. # modifications to linux.conf
  13. QMAKE_AR = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ar
  14. QMAKE_OBJCOPY = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-objcopy
  15. QMAKE_STRIP = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-strip
  16. load(qt_config)
To copy to clipboard, switch view to plain text mode

The config gives the following output (see attachment for full output):

Qt Code:
  1. [david@localhost qt-everywhere-opensource-src-4.7.4]$ PKG_CONFIG_PATH=/opt/freescale/pkgs ./configure --prefix=/opt/freescale/pkgs -v -embedded arm -xplatform qws/linux-arm-imx -phonon -force-pkg-config
  2. Which edition of Qt do you want to use ?
  3. Type 'c' if you want to use the Commercial Edition.
  4. Type 'o' if you want to use the Open Source Edition.
  5. o
  6. Determining system architecture... (Linux:2.6.40.4-5.fc15.i686:i686)
  7. 32-bit Intel 80x86 (i386)
  8. 'arm' is supported
  9. 'i386' is supported
  10. System architecture: 'arm'
  11. Host architecture: 'i386'
  12. You have asked to use pkg-config and are cross-compiling.
  13. Please make sure you have a correctly set-up pkg-config
  14. environment!
  15. Warning: PKG_CONFIG_SYSROOT/PKG_CONFIG_SYSROOT_DIR has not
  16. been set. This means your toolchain's .pc files must contain
  17. the paths to the toolchain's libraries & headers. If configure
  18. tests are failing, please check these files.
  19. Precompiled-headers support enabled.
  20. Symbol visibility control enabled.
  21. This is the Qt for Embedded Linux Open Source Edition.
  22. You are licensed to use this software under the terms of
  23. the Lesser GNU General Public License (LGPL) versions 2.1.
  24. You are also licensed to use this software under the terms of
  25. the GNU General Public License (GPL) versions 3.
  26. Type '3' to view the GNU General Public License version 3.
  27. Type 'L' to view the Lesser GNU General Public License version 2.1.
  28. Type 'yes' to accept this license offer.
  29. Type 'no' to decline this license offer.
  30. Do you accept the terms of either license? yes
  31. Creating qmake. Please wait...
  32. gmake: Nothing to be done for `first'.
  33. floatmath auto-detection... ()
  34. /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o floatmath.o floatmath.cpp
  35. floatmath.cpp:44: warning: unused parameter 'argc'
  36. floatmath.cpp:44: warning: unused parameter 'argv'
  37. /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -Wl,-O1 -o floatmath floatmath.o
  38. floatmath enabled.
  39. mmx auto-detection... ()
  40. /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -mmmx -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o mmx.o mmx.cpp
  41. cc1plus: error: unrecognized command line option "-mmmx"
  42. gmake: *** [mmx.o] Error 1
  43. mmx disabled.
  44. 3dnow auto-detection... ()
  45. /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -m3dnow -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o 3dnow.o 3dnow.cpp
  46. cc1plus: error: unrecognized command line option "-m3dnow"
  47. gmake: *** [3dnow.o] Error 1
  48. 3dnow disabled.
  49. sse auto-detection... ()
  50. /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -msse -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o sse.o sse.cpp
  51. cc1plus: error: unrecognized command line option "-msse"
  52. gmake: *** [sse.o] Error 1
  53. sse disabled.
  54. sse2 auto-detection... ()
  55. /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -msse2 -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o sse2.o sse2.cpp
  56. cc1plus: error: unrecognized command line option "-msse2"
  57. gmake: *** [sse2.o] Error 1
  58. sse2 disabled.
  59. sse3 auto-detection... ()
  60. /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -msse3 -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o sse3.o sse3.cpp
  61. cc1plus: error: unrecognized command line option "-msse3"
  62. gmake: *** [sse3.o] Error 1
  63. sse3 disabled.
  64. ssse3 auto-detection... ()
  65. /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -mssse3 -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o ssse3.o ssse3.cpp
  66. cc1plus: error: unrecognized command line option "-mssse3"
  67. gmake: *** [ssse3.o] Error 1
  68. ssse3 disabled.
  69. sse4_1 auto-detection... ()
  70. /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -msse4.1 -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o sse4_1.o sse4_1.cpp
  71. cc1plus: error: unrecognized command line option "-msse4.1"
  72. gmake: *** [sse4_1.o] Error 1
  73. sse4_1 disabled.
  74. sse4_2 auto-detection... ()
  75. /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -msse4.2 -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o sse4_2.o sse4_2.cpp
  76. cc1plus: error: unrecognized command line option "-msse4.2"
  77. gmake: *** [sse4_2.o] Error 1
  78. sse4_2 disabled.
  79. avx auto-detection... ()
  80. /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -mavx -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o avx.o avx.cpp
  81. cc1plus: error: unrecognized command line option "-mavx"
  82. gmake: *** [avx.o] Error 1
  83. avx disabled.
  84. neon auto-detection... ()
  85. /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -mfpu=neon -O2 -Wall -W -I../../../mkspecs/qws/linux-arm-imx -I. -o neon.o neon.cpp
  86. Assembler messages:
  87. Error: unknown floating point format `neon'
To copy to clipboard, switch view to plain text mode

The install was obviously unsuccessful but I'm not sure why the .cpp files are failing.

As I said, I'm a beginner with Linux and I realise helping a newbie can be very tedious but I'm lost with this and any help would be greatly appreciated.

Thanks.

Attachments

Outcomes