Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cross Compile Qt for RPI on OSX
Forum Updated to NodeBB v4.3 + New Features

Cross Compile Qt for RPI on OSX

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 2.1k Views 1 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.
  • M Offline
    M Offline
    metRo_
    wrote on 10 Dec 2015, 23:39 last edited by
    #1

    Hello,
    I was trying to cross compile qt to use with RPI on OSX but I can't do ./configure as said on the tutorial: http://wiki.qt.io/RaspberryPi2EGLFS

    Joses-MacBook-Pro:qtbase ze$ ./configure -release -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v
    
    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.
    
    ./configure: line 3416: /Users/ze/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++: cannot execute binary file
    Precompiled-headers support disabled.
    /Users/ze/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -c -fvisibility=hidden fvisibility.c
    /Users/ze/raspi/qtbase/config.tests/unix/fvisibility.test: line 29: /Users/ze/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++: cannot execute binary file
    Symbol visibility control disabled.
    ./configure: line 360: /Users/ze/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++: cannot execute binary file
    ./configure: line 360: /Users/ze/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++: cannot execute binary file
    /Users/ze/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ --sysroot=/Users/ze/raspi/sysroot -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c
    /Users/ze/raspi/qtbase/config.tests/unix/bsymbolic_functions.test: line 18: /Users/ze/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++: cannot execute binary file
    Symbolic function binding disabled.
    DEFAULT_INCDIRS="/usr/include
    /usr/local/include"
    DEFAULT_LIBDIRS="/lib
    /usr/lib"
    <srcbase> = /Users/ze/raspi/qtbase 
    <outbase> = /Users/ze/raspi/qtbase 
    Creating qmake...
    make: Nothing to be done for `first'.
    Running configuration tests...
    Determining architecture... ()
    /Users/ze/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/
    
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 12 Dec 2015, 00:15 last edited by
      #2

      Hi,

      Your cross-compiler is not built for OS X but for Linux. You have two options:

      1. Use a Linux Virtual machine using e.g. Virtual Box
      2. Find a cross-compiler for OS X. You can try this one

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

      M 1 Reply Last reply 17 Dec 2015, 18:41
      1
      • S SGaist
        12 Dec 2015, 00:15

        Hi,

        Your cross-compiler is not built for OS X but for Linux. You have two options:

        1. Use a Linux Virtual machine using e.g. Virtual Box
        2. Find a cross-compiler for OS X. You can try this one
        M Offline
        M Offline
        metRo_
        wrote on 17 Dec 2015, 18:41 last edited by
        #3

        @SGaist said:

        this one

        Thank you,
        I'll try!

        1 Reply Last reply
        0
        • R Offline
          R Offline
          raulicomr
          wrote on 17 Apr 2019, 12:35 last edited by
          #4

          Hi, please take a look to this how-to: https://github.com/raulicomr/qt-rpi-macos

          It could be helpful for you.

          1 Reply Last reply
          1

          • Login

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