Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. cross compiling to android and arm
Forum Updated to NodeBB v4.3 + New Features

cross compiling to android and arm

Scheduled Pinned Locked Moved Unsolved General and Desktop
50 Posts 7 Posters 19.5k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lineaxe
    wrote on last edited by
    #20

    Hmm , this article won't do it either since it only talks about cross compiling from windows...

    "Cross-compiling Qt Embedded 5.5 for Raspberry Pi 2"

    This one has useful information that I bet is used somewhere in the process, but has no examples and leaves me with more questions than answers.
    "
    Qt for Embedded Linux

    With the release of Qt 5.0, Qt no longer contains its own window system implementation: QWS is no longer a supported platform. For single-process use cases, the Qt Platform Abstraction is a superior solution. Multiple graphical processes will be supported through Wayland. "

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Lineaxe
      wrote on last edited by
      #21

      Heh, No wonder I get confused... here is some excerpts from
      "Guide To Cross Compile Qt 5.4 for the Raspberry Pi" and what I am finding out...

      The “arm-bcm2708” folder contains the cross-compiler. More on this in a bit. We will now get some tools that will make our jobs easier when building Qt for the Pi.

      1. cd ..
      2. sudo git clone git://gitorious.org/cross-compile-tools/cross-compile-tools.git

      This 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 refused

      Looking 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.

      Ok, so I am trying to get 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 dir that I created. so that I can now go on to setting up a root filepath on Ubuntu for mounting the arm image onto . Somehow , I am wondering if it's all going to compile across to the arm , but hopefully I am on the right track with this article now.
      I

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Lineaxe
        wrote on last edited by
        #22

        Well , I got an error message on this step , I cd'd to the directory of the image and reduced the command down to . This calculation of size 67108864 was checked . It** should** set the filepath to img.
        ** sudo mount –o loop, offset=67108864 2016-02-26-raspbian-jessie.img /mnt/rasp-pi-rootfs **
        Returns with error:
        Usage:
        mount [-lhV]
        mount -a [options]
        mount [options] [--source] <source> | [--target] <directory>
        mount [options] <source> <directory>
        mount <operation> <mountpoint> [<target>]
        Mount a filesystem.

        So, I don't know what it wants from me now . I have given it everything !!!
        My blood, my sweat , my tears !!!! My HAIR !!!! .....

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #23

          Might be wrong but IIRC there should be no space between the comma an offset

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • L Offline
            L Offline
            Lineaxe
            wrote on last edited by
            #24

            For the record (and for anyone else who may be working wth cross compiling to Jessie ) the syntax to make the command execute in terminal is below.
            ( I did try quite a few ways of changing the syntax from the article's example ) . Just before I crashed out last night I was thinking it needed another comma as well, placed just before the path to the image.
            So I removed the space after the first comma , and added a second and now this syntax will work.
            sudo mount –o loop,offset=67108864,2016-02-26-raspbian-jessie.img /mnt/rasp-pi-rootfs

            Thanks again, I am getting soooo close now :) One day I might be even able to answer some of the simpler questions in this forum ( no guaranteeing the answers I post :)

            1 Reply Last reply
            1
            • L Offline
              L Offline
              Lineaxe
              wrote on last edited by
              #25

              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-rootfs

              Sorry, 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 .

              1 Reply Last reply
              0
              • L Offline
                L Offline
                Lineaxe
                wrote on last edited by
                #26

                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.

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  Lineaxe
                  wrote on last edited by
                  #27

                  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 qtwebkit

                  When 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?
                  
                  1 Reply Last reply
                  0
                  • tekojoT Offline
                    tekojoT Offline
                    tekojo
                    wrote on last edited by
                    #28

                    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?

                    1 Reply Last reply
                    1
                    • L Offline
                      L Offline
                      Lineaxe
                      wrote on last edited by Lineaxe
                      #29

                      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.

                      1 Reply Last reply
                      1
                      • L Offline
                        L Offline
                        Lineaxe
                        wrote on last edited by
                        #30

                        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.

                        1 Reply Last reply
                        0
                        • L Offline
                          L Offline
                          Lineaxe
                          wrote on last edited by Lineaxe
                          #31

                          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 2

                          DId I mention error ?

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #32

                            Did you check that your mount is working correctly and that you have access to it ?

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0
                            • L Offline
                              L Offline
                              Lineaxe
                              wrote on last edited by
                              #33

                              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. :)

                              1 Reply Last reply
                              0
                              • L Offline
                                L Offline
                                Lineaxe
                                wrote on last edited by Lineaxe
                                #34

                                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 ?

                                1 Reply Last reply
                                0
                                • L Offline
                                  L Offline
                                  Lineaxe
                                  wrote on last edited by Lineaxe
                                  #35

                                  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

                                  1 Reply Last reply
                                  0
                                  • PheonixP Offline
                                    PheonixP Offline
                                    Pheonix
                                    wrote on last edited by
                                    #36

                                    i think before executing /configure & make command you should fix symbolic link and broken library path. i too faced similar problem 2 days ago not exactly the same but similar.

                                    1 Reply Last reply
                                    0
                                    • L Offline
                                      L Offline
                                      Lineaxe
                                      wrote on last edited by
                                      #37

                                      Hi , thanks for your reply, How do I go about fixing the symbolic link & library path. I don't know enough about compiling the source for Qt to fix these problems.

                                      1 Reply Last reply
                                      0
                                      • PheonixP Offline
                                        PheonixP Offline
                                        Pheonix
                                        wrote on last edited by Pheonix
                                        #38

                                        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.

                                        1 Reply Last reply
                                        0
                                        • L Offline
                                          L Offline
                                          Lineaxe
                                          wrote on last edited by Lineaxe
                                          #39

                                          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.git

                                          This 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 refused

                                          Looking 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

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved