Cannot configure Qt5.2.1
-
Hi,
sudo ./configure -prefix /usr/local/Trolltech/QtEmbedded-5.2.1 -release -shared -qt-sql-sqlite -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -no-openssl -optimized-qmake -no-nis -no-opengl -no-cups -no-xcursor -no-xrandr -no-xrender -no-xkb -no-sm -no-xinerama -no-xshape -no-separate-debug-info -xplatform linux-myplatform-g++
The configuration result:
Could not determine the target architecture!
Turn on verbose messaging (-v) to see the final report.
No QPA platform plugin enabled!
If you really want to build without a QPA platform plugin you must pass
-no-qpa-platform-guard to configure. Doing this will
produce a Qt that can not run GUI applications.
The dependencies needed for xcb to build are listed in
src/plugins/platforms/xcb/README
cannot generate Makefile,and build。the linux-myplatform-g++ directory is created by me, Inside, the qmake.conf content as below:
qmake configuration for building with arm-linux-g++
MAKEFILE_GENERATOR = UNIX
CONFIG += incremental gdb_dwarf_index
QMAKE_INCREMENTAL_STYLE = sublibinclude(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)GCC_PREFIX=/opt/cross_compiler/arm-fsl-linux-gnueabi/bin/arm-linux
modifications to g++.conf
QMAKE_CC = $${GCC_PREFIX}-gcc
QMAKE_CXX = $${GCC_PREFIX}-g++
QMAKE_LINK = $${GCC_PREFIX}-g++
QMAKE_LINK_SHLIB = $${GCC_PREFIX}-g++modifications to linux.conf
QMAKE_AR = arm-linux-ar cqs
QMAKE_OBJCOPY = arm-linux-objcopy
QMAKE_NM = arm-linux-nm -P
QMAKE_STRIP = arm-linux-strip
load(qt_config)Thanks!
-
What is your question? Do you really not need any GUI stuff, or maybe you only want a different platform plugin than XCB (options are: minimal, xcb, eglfs, directfb, wayland. If I recall correctly, that is)?
-
I just want to bulid an Embedded Development enviroment, then porting to arm. Firstly, I need build Qt library(qt-everywhere-opensource-5.2.1), however, I cannot configure successfully. The operation steps, plz see above.
-
So why are you disabling all XCB functionality? No wonder it is failing.
-
I didn't have the operation to disable the xcb, then how to solve it?
-
[quote author="sungrady" date="1401259039"]I didn't have the operation to disable the xcb[/quote]
Please rephrase, I don't understand what you mean.
-
Oh sorry, now I just want to build qt5.2.1 library for embedded arm on my ubuntu PC. Do you have concrete steps or guidelines to help me build successfully?
-
See "this":http://qt-project.org/forums/viewthread/27076, "that":http://qt-project.org/wiki/RaspberryPi_Beginners_guide and "that":http://qt-project.org/doc/qt-4.8/qt-embedded-crosscompiling.html. I can see some of those instructions are quite outdated (Qt 5.3 does not need any patches to be compiled on ARM), but are at least worth a try.
-
I have built the Qt4.8.6 Libraries successfully. Nowadays, we want use Qt5. Those methods above, I have tried, unfortunately, failed. Thank you very much.