Cross Compile Qt5 from linux for windows

  1. clone mxe
    git clone https://github.com/mxe/mxe.git
  2. install dependensi mxe
    apt-get install  autoconf automake autopoint bash bison bzip2 flex g++ g++-multilib gettext git gperf intltool libc6-dev-i386 libgdk-pixbuf2.0-dev libltdl-dev libssl-dev libtool-bin libxml-parser-perl make openssl p7zip-full patch perl pkg-config python ruby scons sed unzip wget xz-utils

    Untuk sistem debian 32 atau linux lainnya, bisa dicek di sini: http://mxe.cc/#requirements

  3. make qt5
    (ini membutuhkan waktu yang sangat lama tergantung kecepatan leptop anda)

    cd mxe & make qt5
  4. set path
    Tambahkan direktori berikut ke path

    [directory mxe]/usr/bin/
  5. Done!
    selesai.

how to use:

  1. go to your project directory
  2. generate makefile
    i686-w64-mingw32.static-qmake-qt5
  3. build
    make
  4. Done!

    Akan file .exe pada  subfolder release di project anda. Selamat, proses cross compiling selesai!. 🙂

 

Catatan ini diambil dari https://askubuntu.com/questions/656219/building-a-windows-executable-in-qt-on-a-linux-system

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.