Skip to content

QtWS: Super Early Bird Tickets Available!

  • 0 Votes
    8 Posts
    4k Views
    shavS

    Hi everyone!

    I'm found the solution of my problem with cross compilation on OS X. The solution is MXE.

    Here is script to install:

    #install all need tools using home brew. brew install autoconf automake coreutils gdk-pixbuf gettext gnu-sed gnu-tar intltool libtool p7zip wget xz #install scons tool ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null brew install scons mkdir mxe && cd mxe #install mxe git clone https://github.com/mxe/mxe.git . export PATH=$PATH:/usr/local/opt/gettext/bin #install qt 5 for windows 32 bit by default. make EXCLUDE_PKGS='gsoap' qt5

    After install you will need to add compiler to QtCreator. Also add path to MXE bin folder:

    <path_to_mxe_foler>/usr/x86_64-apple-darwin16.1.0/bin <path_to_mxe_foler>/usr/bin

    Thats it!

    Now I test it on my project and let you now about results.