LTIB build failed QT--X11

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

LTIB build failed QT--X11

1,760 Views
Hitex
Contributor I

Qt is now configured for building. Just run 'make'.
Once everything is built, you must run 'make install'.
Qt will be installed into /home/satyam/L2.6.35_11.09.01_ER_source_bundle/L2.6.35_11.09.01_ER_source/imx53/ltib/rpm/BUILD/../../rootfs/usr/local/Trolltech

To reconfigure, run 'make confclean' and 'configure'.

+ make
cd src/tools/bootstrap/ && make -f Makefile
make[1]: Entering directory `/home/satyam/L2.6.35_11.09.01_ER_source_bundle/L2.6.35_11.09.01_ER_source/imx53/ltib/rpm/BUILD/qt-everywhere-opensource-src-4.8.1/src/tools/bootstrap'
make[1]: Nothing to be done for `first'.
make[1]: Leaving directory `/home/satyam/L2.6.35_11.09.01_ER_source_bundle/L2.6.35_11.09.01_ER_source/imx53/ltib/rpm/BUILD/qt-everywhere-opensource-src-4.8.1/src/tools/bootstrap'
cd src/tools/moc/ && make -f Makefile
make[1]: Entering directory `/home/satyam/L2.6.35_11.09.01_ER_source_bundle/L2.6.35_11.09.01_ER_source/imx53/ltib/rpm/BUILD/qt-everywhere-opensource-src-4.8.1/src/tools/moc'
/home/satyam/L2.6.35_11.09.01_ER_source_bundle/L2.6.35_11.09.01_ER_source/imx53/ltib/rpm/BUILD/qt-everywhere-opensource-src-4.8.1/bin/qmake -spec ../../../mkspecs/linux-g++ -o Makefile moc.pro
make[1]: Leaving directory `/home/satyam/L2.6.35_11.09.01_ER_source_bundle/L2.6.35_11.09.01_ER_source/imx53/ltib/rpm/BUILD/qt-everywhere-opensource-src-4.8.1/src/tools/moc'
make[1]: Entering directory `/home/satyam/L2.6.35_11.09.01_ER_source_bundle/L2.6.35_11.09.01_ER_source/imx53/ltib/rpm/BUILD/qt-everywhere-opensource-src-4.8.1/src/tools/moc'
g++ -c -pipe -O2 -Wall -W -DQT_MOC -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_TEXTCODEC -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../mkspecs/linux-g++ -I. -I. -I. -I../../../include -I../../../include/QtCore -I../../../include/QtXml -I../../xml -o release-shared/main.o main.cpp
ld -Wl,-rpath-link,/home/satyam/L2.6.35_11.09.01_ER_source_bundle/L2.6.35_11.09.01_ER_source/imx53/ltib/rpm/BUILD/qt-everywhere-opensource-src-4.8.1/lib -Wl,-O1 -Wl,-rpath,/home/satyam/L2.6.35_11.09.01_ER_source_bundle/L2.6.35_11.09.01_ER_source/imx53/ltib/rootfs/usr/local/Trolltech/lib -Wl,-rpath,/home/satyam/L2.6.35_11.09.01_ER_source_bundle/L2.6.35_11.09.01_ER_source/imx53/ltib/rootfs/usr/local/Trolltech/lib -o ../../../bin/moc release-shared/moc.o release-shared/preprocessor.o release-shared/generator.o release-shared/parser.o release-shared/token.o release-shared/main.o    -L/home/satyam/L2.6.35_11.09.01_ER_source_bundle/L2.6.35_11.09.01_ER_source/imx53/ltib/rpm/BUILD/qt-everywhere-opensource-src-4.8.1/src/tools/bootstrap -lbootstrap -lgstreamer-0.10
ld: unrecognized option '-Wl,-rpath-link,/home/satyam/L2.6.35_11.09.01_ER_source_bundle/L2.6.35_11.09.01_ER_source/imx53/ltib/rpm/BUILD/qt-everywhere-opensource-src-4.8.1/lib'
ld: use the --help option for usage information
make[1]: *** [../../../bin/moc] Error 1
make[1]: Leaving directory `/home/satyam/L2.6.35_11.09.01_ER_source_bundle/L2.6.35_11.09.01_ER_source/imx53/ltib/rpm/BUILD/qt-everywhere-opensource-src-4.8.1/src/tools/moc'
make: *** [sub-moc-make_default-ordered] Error 2
error: Bad exit status from /home/satyam/L2.6.35_11.09.01_ER_source_bundle/L2.6.35_11.09.01_ER_source/imx53/ltib/tmp/rpm-tmp.648 (%build)


RPM build errors:
    Bad exit status from /home/satyam/L2.6.35_11.09.01_ER_source_bundle/L2.6.35_11.09.01_ER_source/imx53/ltib/tmp/rpm-tmp.648 (%build)
Build time for qt-embedded: 500 seconds

Failed building qt-embedded


f_buildrpms() returned an error, exiting
traceback:
 main:560


Started: Fri Apr 20 14:45:17 2012
Ended:   Fri Apr 20 14:53:43 2012
Elapsed: 506 seconds

These packages failed to build:
qt-embedded

Build Failed

Exiting on error or interrupt

Labels (1)
0 Kudos
5 Replies

807 Views
WoutervanRooy
Contributor I

I eventually resolved it by starting over with a fresh mkspec. The following repo really helped me out: http://gitorious.org/qt-platform-mkspecs

0 Kudos

807 Views
NicolasVanImpe
Contributor I



I have the same problem... "ld: unrecognized option '-Wl,-rpath-link,/ " do you find some solution ?

thanks

0 Kudos

807 Views
enaud
Contributor III

Do you can post .spec file and where i must put it?

I need only qt library source and spec file?

thanks

0 Kudos

807 Views
WoutervanRooy
Contributor I

Hitesh, I am having the exact same issue. I've narrowed it down to the configure script which is somehow not respecting QMAKE_LINK and QMAKE_LINK_C variables in the qmake.conf. As you might know all options starting with -W should be passed to (cross-compile-)g++, which on its turn passes these parameters to the linker. For one reason or another, the generated Makefile tries to pass them directly to the linker.

Have you made any progress on this yet? Stupid thing is that I have been able to build 4.8.0 for the exact same target in the past. I just seem unable to get it working now with both 4.8.0 and 4.8.1.

0 Kudos

807 Views
Hitex
Contributor I

I am using qt-everywhere-opensource-src-4.8.1 source code

0 Kudos