[webkit-qt] QtWebKit (Qt5) Cross-Compiling for Raspberry Pi (ARM)
Marco Rocco
mr85mr at gmail.com
Sun Feb 10 06:14:16 PST 2013
The problem is that cross-compiling qtwebkit i get
/usr/bin/ld: cannot find -lQt5Core
It seems that stay compiling for host machine and not cross-compiling for Raspberry...Why ?
Below are the steps i followed:
1) I have configured a cross-compiler for ARM and i have installed it into /opt/arm-toolchain
2) I have installed a sysroot of Raspberry into /opt/raspbian-chroot
3) I have downloaded Qt5 sources and extracted into: ~/qt-everywhere-opensource-src-5.0.1
Then:
$cd ~/qt-everywhere-opensource-src-5.0.1
$./configure -opensource -confirm-license -no-pch -prefix /opt/qt5-raspi -release -force-debug-info -device linux-rasp-pi-g++ -make libs -nomake tests -nomake examples -opengl es2 -device-option CROSS_COMPILE=/opt/arm-toolchain/bin/arm-linux-gnueabihf- -sysroot /opt/raspbian-chroot
(Compile QTBASE)
$cd qtbase && make && sudo make install
$cd ..
(Compile QTDECLARATIVE)
$cd qtdeclarative && make && sudo make install
$cd ..
(Compile QTJSBACKEND)
$cd qtjsbackend && make && sudo make install
$cd ..
(Compile QTQUICK1)
$cd qtquick1 && make && sudo make install
$cd ..
All builds described above were completed Well without problem! In fact i can cross-compile Qt5 HelloWorld for raspberry and run on it without problem.
**************************************
Now we come to the problem:
**************************************
$cd ~/qt-everywhere-opensource-src-5.0.1/qtwebkit
$/opt/qt5-raspi/bin/qmake (is the same path used in configure --prefix)
$make
.......
i get this output:
cd Source/WTF/ && ( test -f Makefile.WTF || /opt/qt5-raspi/bin/qmake /home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/WTF/WTF.pro -o Makefile.WTF ) && make -f Makefile.WTF
make[1]: ingresso nella directory "/home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/WTF"
make[1]: Nessuna operazione da eseguire per "first".
make[1]: uscita dalla directory "/home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/WTF"
cd Source/JavaScriptCore/ && ( test -f Makefile.JavaScriptCore || /opt/qt5-raspi/bin/qmake /home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/JavaScriptCore/JavaScriptCore.pro -o Makefile.JavaScriptCore ) && make -f Makefile.JavaScriptCore
make[1]: ingresso nella directory "/home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/JavaScriptCore"
( test -f Makefile.LLIntOffsetsExtractor || /home/macbookpro/Qt5.0.1/5.0.1/gcc/bin/qmake /home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/JavaScriptCore/LLIntOffsetsExtractor.pro -o Makefile.LLIntOffsetsExtractor ) && make -f Makefile.LLIntOffsetsExtractor
make[2]: ingresso nella directory "/home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/JavaScriptCore"
make[2]: Nessuna operazione da eseguire per "first".
make[2]: uscita dalla directory "/home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/JavaScriptCore"
( test -f Makefile.JavaScriptCore.DerivedSources || /home/macbookpro/Qt5.0.1/5.0.1/gcc/bin/qmake /home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/JavaScriptCore/DerivedSources.pri -o Makefile.JavaScriptCore.DerivedSources ) && make -f Makefile.JavaScriptCore.DerivedSources
make[2]: ingresso nella directory "/home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/JavaScriptCore"
make[2]: Nessuna operazione da eseguire per "first".
make[2]: uscita dalla directory "/home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/JavaScriptCore"
( test -f Makefile.JavaScriptCore.Target || /home/macbookpro/Qt5.0.1/5.0.1/gcc/bin/qmake /home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/JavaScriptCore/Target.pri -o Makefile.JavaScriptCore.Target ) && make -f Makefile.JavaScriptCore.Target
make[2]: ingresso nella directory "/home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/JavaScriptCore"
make[2]: Nessuna operazione da eseguire per "first".
make[2]: uscita dalla directory "/home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/JavaScriptCore"
( test -f Makefile.jsc || /home/macbookpro/Qt5.0.1/5.0.1/gcc/bin/qmake /home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/JavaScriptCore/jsc.pro -o Makefile.jsc ) && make -f Makefile.jsc
make[2]: ingresso nella directory "/home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/JavaScriptCore"
g++ -Wl,-O1 -Wl,-rpath,/home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/lib -Wl,-rpath,/home/macbookpro/Qt5.0.1/5.0.1/gcc -Wl,-rpath,/home/macbookpro/Qt5.0.1/5.0.1/gcc -Wl,-rpath,/opt/qt5-raspi/lib -o ../../bin/jsc .obj/release-shared/jsc.o -Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive -L/home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/JavaScriptCore/release -Wl,-whole-archive -lWTF -Wl,-no-whole-archive -L/home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/WTF/release -licui18n -licuuc -licudata -L/home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtbase/lib -lQt5Core -lpthread -lpthread
/usr/bin/ld: skipping incompatible /home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtbase/lib/libQt5Core.so when searching for -lQt5Core
/usr/bin/ld: cannot find -lQt5Core
collect2: ld returned 1 exit status
make[2]: *** [../../bin/jsc] Errore 1
make[2]: uscita dalla directory "/home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/JavaScriptCore"
make[1]: *** [sub-jsc-pro-make_first-ordered] Errore 2
make[1]: uscita dalla directory "/home/macbookpro/Scaricati/qt-everywhere-opensource-src-5.0.1/qtwebkit/Source/JavaScriptCore"
make: *** [sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Errore 2
Thank you so much for your attenction!
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20130210/580a1efe/attachment.html>
More information about the webkit-qt
mailing list