cross compiling to android and arm
-
Ok well , I thought I got a result with the following line , however after inspecting inside the mnt directory It didn't do anything to rasp-pi-rootfs , and it now flags the same error as I have had before.
( Maybe I had looked in the wrong terminal window after I executed the line , I did have a couple open )
sudo mount –o loop,offset=67108864,2016-02-26-raspbian-jessie.img /mnt/rasp-pi-rootfsSorry, the above won't work. I am now testing all other sorts of syntax's out while rereading the man pages on the mount command :) ... Syntax must be fairly close to what mount will accept .
-
This syntax works ,and the files in the directory show up . It came from a different example using mount.
So the finally corrected syntax seems to be:
sudo mount -v -o loop,offset=67108864 -t ext4 2016-02-26-raspbian-jessie.img /mnt/rasp-pi-rootfs
and it returns with the following
mount: /dev/loop0 mounted on /mnt/rasp-pi-rootfs. -
I made it to the compiling of QT phase , Here I couldn't get it to compile without errors. The article I read uses 5.4 ,but I only had 5.5 or 5.6 so I used 5.6.
./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=$RPI_TOOLCHAIN -sysroot $RPI_SYSROOT -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5pi -skip qtwebkitWhen I ran the command above it returned with (an error)
Attempting to skip non-existent module qtwebkit.
When I removed the -skip qtwebkit portion it started to compile like it should be doing ,but it came up with errors.
a usr/local/ folder wasn't found .. and I don't think it went through the process properly . Does it then increase the size of the .img after Qt Creator is compiled for it , I would think it does...H... E... L... P?
-
Hi, I'm useless in the technical context of this thread, but found it to be the best user story on how to get started with Qt on Pi.
I'm pretty sure you have gone through the Qt wiki page about this:
https://wiki.qt.io/Raspberrypi_beginners_guide
Would it be too much to ask if you can update that page if it has something that doesn't make sense?P.S. maybe change the thread topic now that it's not so much about Android?
-
Well, I do have some notes on the side I could add in as well I suppose. Once I make it to the end I will add in the info , Start a new thread on Cross compiling from Ubuntu 15.10 (wily) to arm 6 (Pi in this case) . I also want to update my notes on the Android and put it all into a separate thread on Creating code on Ubuntu 15 and deploying it to the Android. There were some steps on installing the latest version of Ant & other things that I had done that aren't mentioned in this thread.
-
Well , I tried a couple of things again last night to see if I could compile Qt to the .img without errors. No luck ,so far... I am installing 5.4 now as it's the one used in the article , it might get rid of any errors that might have to do with the nonexistant qtwebkit.
Time to get my broccoli,tomato,lettuce & Pepper seeds into starter soil. I want them all a few inches tall b4 I put them outside. -
Ok , I got as far as make ... the config command worked with Qt 5.4... running make started compiling until it returned the following errors, which I found out were broken links in /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/. Not sure what to do , I will try to find out how to fix the broken links . Maybe I missed something along the way. ( The Saga continues...)
/home/ubuntuUserName/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libz.so: No such file or directory
/home/ubuntuUserName/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libdl.so: No such file or directory
/home/ubuntuUserName/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/librt.so: No such file or directory
/home/ubuntuUserName/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libm.so: No such file or directory
.obj/qlibrary_unix.o:qlibrary_unix.cpp:function qdlerror(): error: undefined reference to 'dlerror'
.obj/qlibrary_unix.o:qlibrary_unix.cpp:function QLibraryPrivate::unload_sys(): error: undefined reference to 'dlclose'
.obj/qlibrary_unix.o:qlibrary_unix.cpp:function qt_linux_find_symbol_sys(char const*): error: undefined reference to 'dlsym'
.obj/qlibrary_unix.o:qlibrary_unix.cpp:function QLibraryPrivate::resolve_sys(char const*): error: undefined reference to 'dlsym'
.obj/qlibrary_unix.o:qlibrary_unix.cpp:function QLibraryPrivate::load_sys(): error: undefined reference to 'dlopen'
.obj/qbytearray.o:qbytearray.cpp:function qUncompress(unsigned char const*, int): error: undefined reference to 'uncompress'
.obj/qbytearray.o:qbytearray.cpp:function qCompress(unsigned char const*, int, int): error: undefined reference to 'compress2'
.obj/qdatetime.o:qdatetime.cpp:function fromIsoTimeString(QStringRef const&, Qt::DateFormat, bool*): error: undefined reference to 'pow'
.obj/qdatetime.o:qdatetime.cpp:function fromIsoTimeString(QStringRef const&, Qt::DateFormat, bool*): error: undefined reference to 'floorf'
.obj/qdatetime.o:qdatetime.cpp:function fromIsoTimeString(QStringRef const&, Qt::DateFormat, bool*): error: undefined reference to 'pow'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInOutCirc(double): error: undefined reference to 'sqrt'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInOutCirc(double): error: undefined reference to 'sqrt'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeOutCirc(double): error: undefined reference to 'sqrt'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInCirc(double): error: undefined reference to 'sqrt'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeSineCurve(double): error: undefined reference to 'sin'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeOutSine(double): error: undefined reference to 'sin'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeOutCurve(double): error: undefined reference to 'sin'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeCosineCurve(double): error: undefined reference to 'cos'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInOutSine(double): error: undefined reference to 'cos'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeOutInSine(double): error: undefined reference to 'cos'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeOutInSine(double): error: undefined reference to 'sin'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInOutExpo(double): error: undefined reference to 'pow'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInOutExpo(double): error: undefined reference to 'pow'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInSine(double): error: undefined reference to 'cos'
.obj/qeasingcurve.o:qeasingcurve.cpp:function ElasticEase::value(double): error: undefined reference to 'asin'
.obj/qeasingcurve.o:qeasingcurve.cpp:function ElasticEase::value(double): error: undefined reference to 'asin'
.obj/qeasingcurve.o:qeasingcurve.cpp:function ElasticEase::value(double): error: undefined reference to 'asin'
.obj/qeasingcurve.o:qeasingcurve.cpp:function ElasticEase::value(double): error: undefined reference to 'asin'
.obj/qline.o:qline.cpp:function QLineF::angle() const: error: undefined reference to 'atan2'
.obj/qline.o:qline.cpp:function QLineF::setAngle(double): error: undefined reference to 'sincos'
.obj/qline.o:qline.cpp:function QLineF::fromPolar(double, double): error: undefined reference to 'sincos'
.obj/qline.o:qline.cpp:function QLineF::angle(QLineF const&) const: error: undefined reference to 'acos'
.obj/qlocale_tools.o:qlocale_tools.cpp:function qdtoa(double, int, int, int*, int*, char**, char**): error: undefined reference to 'feholdexcept'
.obj/qlocale_tools.o:qlocale_tools.cpp:function qdtoa(double, int, int, int*, int*, char**, char**): error: undefined reference to 'fesetenv'
.obj/qrect.o:qrect.cpp:function QRectF::toAlignedRect() const: error: undefined reference to 'floor'
.obj/qrect.o:qrect.cpp:function QRectF::toAlignedRect() const: error: undefined reference to 'ceil'
.obj/qrect.o:qrect.cpp:function QRectF::toAlignedRect() const: error: undefined reference to 'floor'
.obj/qrect.o:qrect.cpp:function QRectF::toAlignedRect() const: error: undefined reference to 'ceil'
.obj/qtimeline.o:qtimeline.cpp:function QTimeLine::frameForTime(int) const: error: undefined reference to 'ceil'
collect2: error: ld returned 1 exit status
Makefile:1255: recipe for target '../../lib/libQt5Core.so.5.4.2' failed
make[3]: *** [../../lib/libQt5Core.so.5.4.2] Error 1
make[3]: Leaving directory '/home/ubuntuUserName/Qt/5.4/Src/qtbase/src/corelib'
Makefile:142: recipe for target 'sub-corelib-make_first' failed
make[2]: *** [sub-corelib-make_first] Error 2
make[2]: Leaving directory '/home/ubuntuUserName/Qt/5.4/Src/qtbase/src'
Makefile:45: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/home/ubuntuUserName/Qt/5.4/Src/qtbase'
Makefile:68: recipe for target 'module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2DId I mention error ?
-
Did you check that your mount is working correctly and that you have access to it ?
-
I have checked my mount to make sure that I have access. I just now sudo'd nautilus and set the mount permission to allow complete access to all files & folders for everyone. ran config and make again, Same errors . I am thinking My next move is to find a copy of the older O/S (7.9) that Qt 5.4 was being compiled for as described in the article. It would be nice to have the make work with O/S version 8+ at some point,I guess. Well , I still learned tons to date, so I will just have to backtrack and run through the steps again. :)
-
Well my fertilizer and compost is in, my seeds are planted and receiving their first bit of warm light. Anyhow, I tested the steps on an earlier O/S for arm6 (7.2) and it would not compile either , with same errors. So I read (somewhere in the terminal output that was generated from the make command ) about having to remove old files from previous build before reconfiguring the Qt 5.4 source files for build. The command that it seems it needed was:
make clean--from the original article the make install command came up with the same errors as well.
and I also tried
sudo make clean install
This is the last step needed in the Qt compile phase so if I get the right syntax... I did those last tests a couple of days ago, so I am now back at it for the week again.Who knows what I will discover ...
Another Continent ? -
here is the output error from running ** make install** in ubuntu's terminal. ( it seems have found the libz.so when i ran make clean first, just after ./config )
/home/ubuntuUserName/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libz.so: No such file or directory
/home/ubuntuUserName/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libdl.so: No such file or directory
/home/ubuntuUserName/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/librt.so: No such file or directory
/home/ubuntuUserName/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/libm.so: No such file or directory
.obj/qlibrary_unix.o:qlibrary_unix.cpp:function qdlerror(): error: undefined reference to 'dlerror'
.obj/qlibrary_unix.o:qlibrary_unix.cpp:function QLibraryPrivate::unload_sys(): error: undefined reference to 'dlclose'
.obj/qlibrary_unix.o:qlibrary_unix.cpp:function qt_linux_find_symbol_sys(char const*): error: undefined reference to 'dlsym'
.obj/qlibrary_unix.o:qlibrary_unix.cpp:function QLibraryPrivate::resolve_sys(char const*): error: undefined reference to 'dlsym'
.obj/qlibrary_unix.o:qlibrary_unix.cpp:function QLibraryPrivate::load_sys(): error: undefined reference to 'dlopen'
.obj/qbytearray.o:qbytearray.cpp:function qUncompress(unsigned char const*, int): error: undefined reference to 'uncompress'
.obj/qbytearray.o:qbytearray.cpp:function qCompress(unsigned char const*, int, int): error: undefined reference to 'compress2'
.obj/qdatetime.o:qdatetime.cpp:function fromIsoTimeString(QStringRef const&, Qt::DateFormat, bool*): error: undefined reference to 'pow'
.obj/qdatetime.o:qdatetime.cpp:function fromIsoTimeString(QStringRef const&, Qt::DateFormat, bool*): error: undefined reference to 'floorf'
.obj/qdatetime.o:qdatetime.cpp:function fromIsoTimeString(QStringRef const&, Qt::DateFormat, bool*): error: undefined reference to 'pow'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInOutCirc(double): error: undefined reference to 'sqrt'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInOutCirc(double): error: undefined reference to 'sqrt'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeOutCirc(double): error: undefined reference to 'sqrt'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInCirc(double): error: undefined reference to 'sqrt'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeSineCurve(double): error: undefined reference to 'sin'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeOutSine(double): error: undefined reference to 'sin'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeOutCurve(double): error: undefined reference to 'sin'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeCosineCurve(double): error: undefined reference to 'cos'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInOutSine(double): error: undefined reference to 'cos'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeOutInSine(double): error: undefined reference to 'cos'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeOutInSine(double): error: undefined reference to 'sin'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInOutExpo(double): error: undefined reference to 'pow'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInOutExpo(double): error: undefined reference to 'pow'
.obj/qeasingcurve.o:qeasingcurve.cpp:function easeInSine(double): error: undefined reference to 'cos'
.obj/qeasingcurve.o:qeasingcurve.cpp:function ElasticEase::value(double): error: undefined reference to 'asin'
.obj/qeasingcurve.o:qeasingcurve.cpp:function ElasticEase::value(double): error: undefined reference to 'asin'
.obj/qeasingcurve.o:qeasingcurve.cpp:function ElasticEase::value(double): error: undefined reference to 'asin'
.obj/qeasingcurve.o:qeasingcurve.cpp:function ElasticEase::value(double): error: undefined reference to 'asin'
.obj/qline.o:qline.cpp:function QLineF::angle() const: error: undefined reference to 'atan2'
.obj/qline.o:qline.cpp:function QLineF::setAngle(double): error: undefined reference to 'sincos'
.obj/qline.o:qline.cpp:function QLineF::fromPolar(double, double): error: undefined reference to 'sincos'
.obj/qline.o:qline.cpp:function QLineF::angle(QLineF const&) const: error: undefined reference to 'acos'
.obj/qlocale_tools.o:qlocale_tools.cpp:function qdtoa(double, int, int, int*, int*, char**, char**): error: undefined reference to 'feholdexcept'
.obj/qlocale_tools.o:qlocale_tools.cpp:function qdtoa(double, int, int, int*, int*, char**, char**): error: undefined reference to 'fesetenv'
.obj/qrect.o:qrect.cpp:function QRectF::toAlignedRect() const: error: undefined reference to 'floor'
.obj/qrect.o:qrect.cpp:function QRectF::toAlignedRect() const: error: undefined reference to 'ceil'
.obj/qrect.o:qrect.cpp:function QRectF::toAlignedRect() const: error: undefined reference to 'floor'
.obj/qrect.o:qrect.cpp:function QRectF::toAlignedRect() const: error: undefined reference to 'ceil'
.obj/qtimeline.o:qtimeline.cpp:function QTimeLine::frameForTime(int) const: error: undefined reference to 'ceil'
.obj/qelapsedtimer_unix.o:qelapsedtimer_unix.cpp:function qt_gettime(): error: undefined reference to 'clock_gettime'
.obj/qelapsedtimer_unix.o:qelapsedtimer_unix.cpp:function QElapsedTimer::start(): error: undefined reference to 'clock_gettime'
.obj/qelapsedtimer_unix.o:qelapsedtimer_unix.cpp:function QElapsedTimer::restart(): error: undefined reference to 'clock_gettime'
.obj/qelapsedtimer_unix.o:qelapsedtimer_unix.cpp:function QElapsedTimer::nsecsElapsed() const: error: undefined reference to 'clock_gettime'
collect2: error: ld returned 1 exit status
Makefile:1255: recipe for target '../../lib/libQt5Core.so.5.4.2' failed
make[3]: *** [../../lib/libQt5Core.so.5.4.2] Error 1
make[3]: Leaving directory '/home/ubuntuUserName/Qt/5.4/Src/qtbase/src/corelib'
Makefile:154: recipe for target 'sub-corelib-install_subtargets' failed
make[2]: *** [sub-corelib-install_subtargets] Error 2
make[2]: Leaving directory '/home/ubuntuUserName/Qt/5.4/Src/qtbase/src'
Makefile:57: recipe for target 'sub-src-install_subtargets' failed
make[1]: *** [sub-src-install_subtargets] Error 2
make[1]: Leaving directory '/home/ubuntuUserName/Qt/5.4/Src/qtbase'
Makefile:80: recipe for target 'module-qtbase-install_subtargets' failed
make: *** [module-qtbase-install_subtargets] Error 2 -
hi, you have to clone a cross compile repository it must be mentioned in whatever manual or steps you are following for cross compilation . From that cloned repository you have to run a script for fixing broken links and path.
please post all the errors you face in this cross-compilation battle because i myself have spent almost 10 days in this process and i just wanna know how many errors are possible in this process. -
Nice to know I am not struggling on alone here...Here is the link to the article I have been working from...
http://exploreembedded.tumblr.com/post/115333857238/guide-to-cross-compile-qt-54-for-the-raspberry-pi
I had been trying these steps out with Qt/5.4/Src and Qt/5.6/Src . I tested both Debian 8 and 7 O/S's for arm6 computer. I am using a Ubuntu 15 machine with a 64 bit O/S .
Phoenix you mentioned cloning the cross compile repository . I copy my results of trying out that step described in the online article.
cd ..
sudo git clone git://gitorious.org/cross-compile-tools/cross-compile-tools.gitThis responded with the following:
Cloning into 'cross-compile-tools'...
fatal: unable to connect to gitorious.org:
gitorious.org[0: 2a02:c0:1014::1]: errno=Connection timed out
gitorious.org[1: 64.13.172.37]: errno=Connection refusedLooking into the problem a bit further I find the following online at http://blog.gitorious.org
Gitorious.org is dead, long live gitorious.org...
As you may know, Gitorious was acquired by GitLab about a month ago, and we announced that Gitorious.org would be shutting down at the end of May, 2015.( I locate and d/l a copy of files as a zip from https://github.com/shahriman/cross-compile-tools and put the files from it into the cross-compile directory which I had previously created) but I don't know if it contains the exact files , it does contain the /home/UbuntuUser/rpi/cross-compile-tools/fixQualifiedLibraryPaths file. I later ran the command from the cross-compile-tools folder with no errors. I copy the terminal results.
./fixQualifiedLibraryPaths /mnt/rasp-pi-rootfs ~/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc
Passed valid toolchain
Adjusting the symlinks in /mnt/rasp-pi-rootfs/usr/lib to be relative
Testing for existence of potential debian multi-arch dir: /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf
Debian multiarch dir exists, adjusting
Adjusting the symlinks in /mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf to be relative -
https://github.com/shahriman/cross-compile-tools.git contains the same content,
so still the same error at /make step?????????
-
After running ./configure ... ,I get the following line found at the bottom of the results after executing it.
Prior to reconfiguration, make sure you remove any leftovers from
the previous build.What should I be cleaning up? that is why I tried make clean since I wasn't sure what it wanted me to do to remove the leftovers? remove leftover ? Maybe these leftovers are causing the problem?
-
hello @Lineaxe
let's do a slightly different approach clean everything and start fresh.
- create a directory in home folder and
:- put jessie image in it
:- download cross compilation tool chain using following command:-
[wget https://www.dropbox.com/s/sl919ly0q79m1e6/gcc-4.7-linaro-rpi-gnueabihf.tbz]
:- Extract it in directory.
:- mount image as you previously did in mnt/rasp-pi-rootfs
:- now clone cross compile tools repository using.
[git clone git://github.com/shahriman/cross-compile-tools.git]:- now in directory you created in first step you have 1) image, 2) cross-compiling toolchain 3) cross compile tools repository.
:- now if using 64 bit system run following commands :
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
sudo apt-get install lib32stdc++6-
now clone qt5 repository
git clone git://code.qt.io/qt/qt5.git -
now go to qt 5 folder [cd qt5]
run following
./init-repositoryit will take a while depending upon your Ethernet speed ,make sure that this process is successful [the size of repository will be around 3.4 GB]
- now go to the directory we created in step 1(lets say you have created pheonix named directory) there you have a cross-compile-tools folder go to it.
eg : command
cd ~/pheonix/cross-compile-tools
then run
sudo ./fixQualifiedLibraryPaths /mnt/rasp-pi-rootfs/ ~/pheonix/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-gccthen go to qt5/qtbase folder and run the configure , and make command you were running previously.
i did the following while cross compiling pi 2 with qt using my ubuntu 14.04 lts desktop system. cant point to single manual available online because what i did was a cocktail of alll :)
- create a directory in home folder and
-
Hi , I am trying out your steps Phoenix ... I while I was installing , I got the following error.
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
E: Couldn't find any package by regex 'lib32bz2-1.0'
I read up on the error and found out this information.
The package (32 bit) you are looking for is libbz2-1.0:i386, its 64 bit version is libbz2-1.0:amd64.
At first enable multi-arch support (if not done already):sudo dpkg --add-architecture i386
Now run:
sudo apt-get update
You can now install the package by:
sudo apt-get install libbz2-1.0:i386
Later as I went into the qt5/qtbase folder and ran
~/rpi2/qt5/qtbase$ ./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=$RPI_TOOLCHAIN -sysroot $RPI_SYSROOT -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5pi -skip qtwebkit -v
Which edition of Qt do you want to use ?Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.o
This is the Qt Open Source Edition.
You are licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.
You are also licensed to use this software under the terms of
the GNU Lesser General Public License (LGPL) versions 3.You have already accepted the terms of the Open Source license.
Running configuration tests (phase 1)...
Precompiled-headers support enabled.
g++ -c -fvisibility=hidden fvisibility.c
Symbol visibility control enabled.
g++ --sysroot=-opensource -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c
Symbolic function binding enabled.
DEFAULT_INCDIRS="/usr/include
/usr/local/include"
DEFAULT_LIBDIRS="/lib
/usr/lib"
Done running configuration tests.
<srcbase> = /home/ubuntuUserName/rpi2/qt5/qtbase
<outbase> = /home/ubuntuUserName/rpi2/qt5/qtbase
Creating qmake...
g++ -c -o qlibraryinfo.o -pipe -ffunction-sections -O2 -g -I/home/ubuntuUserName/rpi2/qt5/qtbase/qmake -I/home/ubuntuUserName/rpi2/qt5/qtbase/qmake/library -I/home/ubuntuUserName/rpi2/qt5/qtbase/qmake/generators -I/home/ubuntuUserName/rpi2/qt5/qtbase/qmake/generators/unix -I/home/ubuntuUserName/rpi2/qt5/qtbase/qmake/generators/win32 -I/home/ubuntuUserName/rpi2/qt5/qtbase/qmake/generators/mac -I/home/ubuntuUserName/rpi2/qt5/qtbase/qmake/generators/integrity -I../include -I../include/QtCore -I../include/QtCore/5.6.0 -I../include/QtCore/5.6.0/QtCore -I../src/corelib/global -DHAVE_QCONFIG_CPP -I/home/ubuntuUserName/rpi2/qt5/qtbase/mkspecs/linux-g++ -I/home/ubuntuUserName/rpi2/qt5/qtbase/tools/shared -DQT_VERSION_STR="5.6.0" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=6 -DQT_VERSION_PATCH=0 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_JSON_READONLY -DQT_NO_STANDARDPATHS /home/ubuntuUserName/rpi2/qt5/qtbase/src/corelib/global/qlibraryinfo.cpp
g++ -o "../bin/qmake" project.o option.o property.o main.o ioutils.o proitems.o qmakevfs.o qmakeglobals.o qmakeparser.o qmakeevaluator.o qmakebuiltins.o makefile.o unixmake2.o unixmake.o mingw_make.o winmakefile.o projectgenerator.o meta.o makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o msvc_vcproj.o msvc_vcxproj.o msvc_nmake.o msvc_objectmodel.o msbuild_objectmodel.o cesdkhandler.o qtextcodec.o qutfcodec.o qstring.o qstring_compat.o qstringbuilder.o qtextstream.o qiodevice.o qringbuffer.o qdebug.o qmalloc.o qglobal.o qarraydata.o qbytearray.o qbytearraymatcher.o qdatastream.o qbuffer.o qlist.o qfiledevice.o qfile.o qfilesystementry.o qfilesystemengine.o qfsfileengine.o qfsfileengine_iterator.o qregexp.o qvector.o qbitarray.o qdir.o qdiriterator.o quuid.o qhash.o qfileinfo.o qdatetime.o qstringlist.o qabstractfileengine.o qtemporaryfile.o qmap.o qmetatype.o qsettings.o qsystemerror.o qlibraryinfo.o qvariant.o qvsnprintf.o qlocale.o qlocale_tools.o qlinkedlist.o qnumeric.o qcryptographichash.o qxmlstream.o qxmlutils.o qlogging.o qjson.o qjsondocument.o qjsonparser.o qjsonarray.o qjsonobject.o qjsonvalue.o qfilesystemengine_unix.o qfilesystemiterator_unix.o qfsfileengine_unix.o qlocale_unix.o -Wl,--gc-sections
Running configuration tests (phase 2)...
Failed to process makespec for platform 'devices/linux-rasp-pi-g++'
Project ERROR: CROSS_COMPILE needs to be set via -device-option CROSS_COMPILE=<path>
Could not read qmake configuration file /home/ubuntuUserName/rpi2/qt5/qtbase/mkspecs/devices/linux-rasp-pi-g++/qmake.conf.
Error processing project file: /dev/null -
I changed an export variable to the new toolchain and ran config again from ~/rpi2/qt5/qtbase
export RPI_TOOLCHAIN=~/rpi2/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-~/rpi2/qt5/qtbase$ ./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=$RPI_TOOLCHAIN -sysroot $RPI_SYSROOT -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5pi -skip qtwebkit -v
Which edition of Qt do you want to use ?Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.o
This is the Qt Open Source Edition.
You are licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.
You are also licensed to use this software under the terms of
the GNU Lesser General Public License (LGPL) versions 3.You have already accepted the terms of the Open Source license.
Running configuration tests (phase 1)...
Precompiled-headers support enabled.
/home/ubuntuUserName/rpi2/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -fvisibility=hidden fvisibility.c
Symbol visibility control enabled.
arm-linux-gnueabihf-g++: error: unrecognized command line option ‘-fuse-ld=gold’
/home/ubuntuUserName/rpi2/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ --sysroot=-opensource -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c
bsymbolic_functions.c:2:2: error: #error "Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129)."
Symbolic function binding disabled.
DEFAULT_INCDIRS="/home/ubuntuUserName/rpi2/gcc-4.7-linaro-rpi-gnueabihf/arm-linux-gnueabihf/include/c++/4.7.2
/home/ubuntuUserName/rpi2/gcc-4.7-linaro-rpi-gnueabihf/arm-linux-gnueabihf/include/c++/4.7.2/arm-linux-gnueabihf
/home/ubuntuUserName/rpi2/gcc-4.7-linaro-rpi-gnueabihf/arm-linux-gnueabihf/include/c++/4.7.2/backward
/home/ubuntuUserName/rpi2/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/include
/home/ubuntuUserName/rpi2/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/include-fixed
/home/ubuntuUserName/rpi2/gcc-4.7-linaro-rpi-gnueabihf/arm-linux-gnueabihf/include
"
DEFAULT_LIBDIRS="/home/ubuntuUserName/rpi2/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2
/home/ubuntuUserName/rpi2/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc
/home/ubuntuUserName/rpi2/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf
/home/ubuntuUserName/rpi2/gcc-4.7-linaro-rpi-gnueabihf/arm-linux-gnueabihf/lib
"
Done running configuration tests.
<srcbase> = /home/ubuntuUserName/rpi2/qt5/qtbase
<outbase> = /home/ubuntuUserName/rpi2/qt5/qtbase
Creating qmake...
make: Nothing to be done for 'first'.
Running configuration tests (phase 2)...
Found pkg-config from $PATH: /usr/bin/pkg-config
Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set and
the host's .pc files would be used (even if you set PKG_CONFIG_PATH).
Set this variable to the directory that contains target .pc files
for pkg-config to function correctly when cross-compiling or
use -pkg-config to override this test.
Note: PKG_CONFIG_SYSROOT_DIR automatically set to -opensource
Determining architecture... ()
/home/ubuntuUserName/rpi2/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=-opensource -g -Wall -W -fPIC -I. -I../../mkspecs/devices/linux-rasp-pi-g++ -o arch.o arch.cpp
arch.cpp:37:19: fatal error: stdio.h: No such file or directory
compilation terminated.
Makefile:188: recipe for target 'arch.o' failed
make: *** [arch.o] Error 1
Unable to determine architecture!Could not determine the target architecture!
Turn on verbose messaging (-v) to see the final report.
Determining architecture... ()
g++ -c -pipe -g -Wall -W -fPIC -I. -I../../mkspecs/linux-g++ -o arch.o arch.cpp
g++ -o arch arch.o