Could someone help a newbie with QT?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Could someone help a newbie with QT?

2,884 Views
Ameeca
Contributor II

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.
Labels (1)
0 Kudos
4 Replies

1,030 Views
VladanJovanovic
NXP Employee
NXP Employee

That's a very unusual message, and I haven't tried this on 64-bit host.

When doing some work on 64-bit host, I had to install following 32-bit support packages. Might be needed for this case as well:

ia32-libs libc6-dev-i386 libc6-i386 lib32gcc1 lib32stdc++6 g++-multilib lib32z1-dev lib32ncurses5-dev

0 Kudos

1,030 Views
JamesRobinson
Contributor II

I am also trying to build Qt-Embedded inside ltib. I have applied Vladan's patches for QT4.7.4 (Thank you) but I get the following error.

error: failed dependencies:
libc.so.6()(64bit) is needed by qt-everywhere-opensource-src-4.7.4-0
libgcc_s.so.1()(64bit) is needed by qt-everywhere-opensource-src-4.7.4-0
libm.so.6()(64bit) is needed by qt-everywhere-opensource-src-4.7.4-0
libstdc++.so.6()(64bit) is needed by qt-everywhere-opensource-src-4.7.4-0
linux-vdso.so.1()(64bit) is needed by qt-everywhere-opensource-src-4.7.4-0

any pointers? I think the build set is picking up my host libraries...

I am running 10.4.03-LTS 64 bit. I have run the Linux host script. and have the mk_mx_sd_mmc tool for the sdcard also.

I can only get the ltib to compile the (min) configuration under selectype. Can any one verify that the ltib builds any of the other configs (gnome,develop tools....)

Thanks.

0 Kudos

1,030 Views
Ameeca
Contributor II

Thank you very much Vladan. You are the only person to reply to my issue across 5 different forums, unfortunately I've read through the links and it didnt help my problem.

 

Thank you again though.

Vladan Jovanovic said:

Check following two links:

http://imxcommunity.org/group/imxqt

http://www.imxdev.org/wiki/index.php?title=All_Boards_Qt

 

Lot's of info on how to build Qt and some common issues encountered along the way...

0 Kudos

1,030 Views
VladanJovanovic
NXP Employee
NXP Employee

Check following two links:

http://imxcommunity.org/group/imxqt

http://www.imxdev.org/wiki/index.php?title=All_Boards_Qt

 

Lot's of info on how to build Qt and some common issues encountered along the way...

0 Kudos