Anyone have luck building Qt5 under LTIB? I've been trying and am not
having success.
Using the release
http://download.qt-project.org/official_releases/qt/5.1/5.1.1/single/qt-everywhere-opensource-src-5.1.1.tar.gz
I tried to target a beagleboard (as a step to getting it to run on my
OMAP dm37x board) using the following %Build stanza in a new
qtopia-5.1.1.spec file:
%Build
export PATH="/usr/bin/:$PATH"
export AR=''
export CC=''
export CXX=''
export LD=''
export QMAKESPEC=""
export PKG_CONFIG="pkg-config --define-variable=prefix=$TOP/rootfs/usr/ "
export PKG_CONFIG_PATH=$TOP/rootfs/usr/lib/pkgconfig
export PKG_CONFIG_SYSROOT=$TOP/rootfs/
./configure -opensource -confirm-license -device linux-beagleboard-g++
-device-option CROSS_COMPILE=$TOOLCHAIN_PATH/bin/arm-none-linux-gnueabi-
-no-eglfs -no-kms -no-icu -no-xcb -no-c++11
make -j1
I modified the source via the attached patch (to fix
https://bugreports.qt-project.org/browse/QTBUG-33300), and now it fails
with:
Project ERROR: Unknown module(s) in QT: quick
make[3]: *** [sub-declarative-radio-make_first] Error 3
make[3]: Leaving directory
`/home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0-qt5/rpm/BUILD/qt-everywhere-opensource-src-5.1.1/qtmultimedia/examples/multimedia'
make[2]: *** [sub-multimedia-make_first] Error 2
make[2]: Leaving directory
`/home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0-qt5/rpm/BUILD/qt-everywhere-opensource-src-5.1.1/qtmultimedia/examples'
make[1]: *** [sub-examples-make_first] Error 2
make[1]: Leaving directory
`/home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0-qt5/rpm/BUILD/qt-everywhere-opensource-src-5.1.1/qtmultimedia'
make: *** [module-qtmultimedia-make_first] Error 2
error: Bad exit status from
/home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0-qt5/tmp/rpm-tmp.17783
(%build)
I can't build with the "quick" module since I don't have OpenGL in my
world (wonder why Qt5 didn't figure this out from the "-no-opengl"
confugure option) but trying to add "-skip quick" causes Qt5 configure
to fail with "no such module qtquick".
Any help on getting Qt5 to build under LTIB is appreciated. Thanks in
advance!
--
Peter Barada
[email protected]
--- qt-everywhere-opensource-src-5.1.1/qtbase/examples/widgets/widgets.pro 2013-08-25 14:04:10.000000000 -0400
+++ qt-everywhere-opensource-src-5.1.1.modified/qtbase/examples/widgets/widgets.pro 2013-09-26 16:52:24.368074280 -0400
@@ -19,8 +19,11 @@
statemachine \
tools \
tutorials \
- widgets \
- windowcontainer
+ widgets
+
+CONTAINS(QT_CONFIG, opengl(es1|es2)?) {
+ SUBDIRS += windowcontainer
+}
contains(DEFINES, QT_NO_CURSOR): SUBDIRS -= mainwindows
contains(DEFINES, QT_NO_DRAGANDDROP): SUBDIRS -= draganddrop
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib