How to compile qt for mac on linux
![how to compile qt for mac on linux how to compile qt for mac on linux](https://i.ytimg.com/vi/1d2bh7iUKNc/maxresdefault.jpg)
# Search for libraries and headers only in the target directories SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) # Search for programs only in the build host directories $/armv8-rpi4-linux-gnueabihf/sysroot/usr/lib/arm-linux-gnueabihf) In the same way change the "Prefix directory" to: Move to "Local tarballs directory" and change the value to:ĬT_TOP_DIR is a variable pointing to the staging directory, it is the directory where the config file is placed. Select "Path and misc options" and press "Enter". So, if you see this configuration, then run the following command:Īs we said, this is the configuration of the Raspberry Pi 3 so we need to make some changes to that.
![how to compile qt for mac on linux how to compile qt for mac on linux](https://i.stack.imgur.com/IO5ar.png)
This is the base configuration for the 32bit armv8 of RaspberryPi 3. You should see a sample named "armv8-rpi3-linux-gnueabihf". Run the following command to see the available crosstool-ng's configuration: Now we are ready to start the configuration of the toolchain. Scp _address:/usr/src/binutils/patches/129_multiarch_libpath.patch.
#How to compile qt for mac on linux install
In my case is: 2.31 MacOS CrossTool-NG Prerequisitesįirst of all install the required packages with brew running the following commands: Run the following command to know your GLIBC version: Run the following command to know your binutils version: Run the following command to know your kernel version:
#How to compile qt for mac on linux Patch
Run the following command to download and install the binutils sources:Ĭheck that the patch is downloaded,looking for a file named "129_multiarch_libpath.patch" after that you run this command: This patch is provided by Debian, and we can get a copy of it on the Pi by installing binutils-source.
![how to compile qt for mac on linux how to compile qt for mac on linux](http://4.bp.blogspot.com/-DpP3z9SJRtY/VkciDrquBmI/AAAAAAAAQ-I/6CMbLaooSU0/s1600/8.png)
To fix this issue, we need to provide a patch for binutils (the package that contains the linker among other things) to crosstool-NG. However, the linker from the binutils that gets downloaded by crosstool-NG will only search inside /usr/lib and /lib, which means that libraries in the arm-linux-gnueabihf subdirectories wont be found. On the Pi, there are libraries stored inside /usr/lib/arm-linux-gnueabihf/ and /lib/arm-linux-gnueabihf/. To configure our toolchain, with a vanilla toolchain created by crosstool-NG, the linker does not have the necessary library search paths. Strings /lib/arm-linux-gnueabihf/libstdc++.so.6 | grep GLIBCXXĮverything is ok if the string "GLIBCXX_3.4.29" appear in the output. Ln -s /usr/lib/libstdc++.so /lib/arm-linux-gnueabihf/libstdc++.so.6 Sudo rm /lib/arm-linux-gnueabihf/libstdc++.so.6 The following steps are needed to install the libatspi library: Sudo apt-get install flex bison libxslt-dev ruby gperf libbz2-dev libcups2-dev libatkmm-1.6-dev libxi6 libxcomposite1 libfreetype6-dev libicu-dev libsqlite3-dev libxslt1-dev libavcodec-dev libavformat-dev libswscale-dev gstreamer1.0-tools libraspberrypi-dev libx11-dev libglib2.0-dev freetds-dev libsqlite0-dev libpq-dev libiodbc2-dev firebird-dev libgst-dev libxext-dev libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync1 libxcb-sync-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-glx0-dev libxi-dev libdrm-dev libssl-dev libxcb-xinerama0 libxcb-xinerama0-dev libssl-dev libxcursor-dev libxcomposite-dev libxdamage-dev libfontconfig1-dev libxss-dev libxtst-dev libpci-dev libcap-dev libsrtp0-dev libxrandr-dev libnss3-dev libdirectfb-dev libaudio-dev libxfixes-dev libxcb-util-dev libxcb-xkb-dev libxkbcommon-x11-dev Sudo apt-get install libboost-all-dev libudev-dev libinput-dev libts-dev libmtdev-dev libjpeg-dev libfontconfig1-dev libssl-dev libdbus-1-dev libglib2.0-dev libxkbcommon-dev libegl1-mesa-dev libgbm-dev libgles2-mesa-dev mesa-common-dev libasound2-dev libpulse-dev gstreamer1.0-omx libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-alsa libvpx-dev libsrtp0-dev libsnappy-dev libnss3-dev