Results 1 to 2 of 2

Thread: configure embedded QT4.7.4

  1. #1
    Join Date
    Oct 2011
    Posts
    2
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default configure embedded QT4.7.4

    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.  
    5. include(../../common/g++.conf)
    6. include(../../common/linux.conf)
    7. include(../../common/qws.conf)
    8.  
    9. # modifications to g++.conf
    10. 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
    11. 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++
    12. 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++
    13. 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++
    14.  
    15. # modifications to linux.conf
    16. 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
    17. 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
    18. 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
    19.  
    20. 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.  
    4. Type 'c' if you want to use the Commercial Edition.
    5. Type 'o' if you want to use the Open Source Edition.
    6.  
    7. o
    8.  
    9. Determining system architecture... (Linux:2.6.40.4-5.fc15.i686:i686)
    10. 32-bit Intel 80x86 (i386)
    11. 'arm' is supported
    12. 'i386' is supported
    13. System architecture: 'arm'
    14. Host architecture: 'i386'
    15.  
    16. You have asked to use pkg-config and are cross-compiling.
    17. Please make sure you have a correctly set-up pkg-config
    18. environment!
    19.  
    20.  
    21. Warning: PKG_CONFIG_SYSROOT/PKG_CONFIG_SYSROOT_DIR has not
    22. been set. This means your toolchain's .pc files must contain
    23. the paths to the toolchain's libraries & headers. If configure
    24. tests are failing, please check these files.
    25.  
    26. Precompiled-headers support enabled.
    27. Symbol visibility control enabled.
    28.  
    29. This is the Qt for Embedded Linux Open Source Edition.
    30.  
    31. You are licensed to use this software under the terms of
    32. the Lesser GNU General Public License (LGPL) versions 2.1.
    33. You are also licensed to use this software under the terms of
    34. the GNU General Public License (GPL) versions 3.
    35.  
    36. Type '3' to view the GNU General Public License version 3.
    37. Type 'L' to view the Lesser GNU General Public License version 2.1.
    38. Type 'yes' to accept this license offer.
    39. Type 'no' to decline this license offer.
    40.  
    41. Do you accept the terms of either license? yes
    42.  
    43. Creating qmake. Please wait...
    44. gmake: Nothing to be done for `first'.
    45. floatmath auto-detection... ()
    46. /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
    47. floatmath.cpp:44: warning: unused parameter 'argc'
    48. floatmath.cpp:44: warning: unused parameter 'argv'
    49. /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
    50. floatmath enabled.
    51. mmx auto-detection... ()
    52. /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
    53. cc1plus: error: unrecognized command line option "-mmmx"
    54. gmake: *** [mmx.o] Error 1
    55. mmx disabled.
    56. 3dnow auto-detection... ()
    57. /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
    58. cc1plus: error: unrecognized command line option "-m3dnow"
    59. gmake: *** [3dnow.o] Error 1
    60. 3dnow disabled.
    61. sse auto-detection... ()
    62. /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
    63. cc1plus: error: unrecognized command line option "-msse"
    64. gmake: *** [sse.o] Error 1
    65. sse disabled.
    66. sse2 auto-detection... ()
    67. /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
    68. cc1plus: error: unrecognized command line option "-msse2"
    69. gmake: *** [sse2.o] Error 1
    70. sse2 disabled.
    71. sse3 auto-detection... ()
    72. /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
    73. cc1plus: error: unrecognized command line option "-msse3"
    74. gmake: *** [sse3.o] Error 1
    75. sse3 disabled.
    76. ssse3 auto-detection... ()
    77. /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
    78. cc1plus: error: unrecognized command line option "-mssse3"
    79. gmake: *** [ssse3.o] Error 1
    80. ssse3 disabled.
    81. sse4_1 auto-detection... ()
    82. /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
    83. cc1plus: error: unrecognized command line option "-msse4.1"
    84. gmake: *** [sse4_1.o] Error 1
    85. sse4_1 disabled.
    86. sse4_2 auto-detection... ()
    87. /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
    88. cc1plus: error: unrecognized command line option "-msse4.2"
    89. gmake: *** [sse4_2.o] Error 1
    90. sse4_2 disabled.
    91. avx auto-detection... ()
    92. /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
    93. cc1plus: error: unrecognized command line option "-mavx"
    94. gmake: *** [avx.o] Error 1
    95. avx disabled.
    96. neon auto-detection... ()
    97. /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
    98. Assembler messages:
    99. 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 have tried all the sources I can think of. I realise helping a newbie can be very tedious but I'm lost with this and any help would be greatly appreciated.

    Thanks.
    Attached Files Attached Files
    Last edited by DF; 6th October 2011 at 13:48.

  2. #2
    Join Date
    Oct 2011
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: configure embedded QT4.7.4

    I noticed with my compilation that if I don't put the "-platform" option , the pkg-config thing comes out.

    I am also cross compiling, putting the -platform and -xplatform together solve that pkg-config thing.

Similar Threads

  1. configure??? qt 4.6.2
    By QT-embedded in forum Newbie
    Replies: 9
    Last Post: 18th March 2010, 15:38
  2. Multiple apps using Qt/Embedded+Qtopia on Embedded Linux
    By drahardja in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 17th February 2008, 22:46
  3. Configure dev-c++ with QT
    By iGoo in forum Newbie
    Replies: 6
    Last Post: 31st May 2006, 13:09
  4. configure, then what?
    By Morea in forum Installation and Deployment
    Replies: 9
    Last Post: 5th March 2006, 20:10

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.