[tor-bugs] #10205 [Tor bundles/installation]: crosscompile Qt for Windows

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Dec 11 21:06:03 UTC 2013


#10205: crosscompile Qt for Windows
------------------------------------------+--------------------------------
     Reporter:  erinn                     |      Owner:  erinn
         Type:  task                      |     Status:  new
     Priority:  normal                    |  Milestone:
    Component:  Tor bundles/installation  |    Version:
   Resolution:                            |   Keywords:  gitian, qt,
Actual Points:                            |  windows
       Points:                            |  Parent ID:  #10204
------------------------------------------+--------------------------------

Comment (by erinn):

 I've successfully crosscompiled Vidalia for Windows with the help of MXE.
 The changes I had to make to Vidalia are
 [https://gitweb.torproject.org/erinn/vidalia.git/shortlog/refs/heads/win-
 crosscompile here]. I also had to patch MXE: one patch ditches an automake
 version check, because I didn't have the version available in my chroot.
 The second is more substantive and builds Qt Linguist, which is needed by
 Vidalia for translations.

 With a patched MXE and patched Vidalia, I ran the following commands from
 within vidalia.git:

 {{{export MXE_PATH=/path/to/my/mxe}}}

 {{{mkdir build && cd build}}}

 {{{cmake -DQT_QMAKE_EXECUTABLE=$MXE_PATH/usr/i686-pc-mingw32/qt/bin/qmake
 -DCMAKE_TOOLCHAIN_FILE=$MXE_PATH/usr/i686-pc-mingw32/share/cmake/mxe-
 conf.cmake -DVIDALIA_LUPDATE_EXECUTABLE=$MXE_PATH/usr/i686-pc-
 mingw32/qt/bin/lupdate.exe
 -DWIN32_WINDRES_EXECUTABLE=$MXE_PATH/usr/bin/i686-pc-mingw32-windres
 -DWIN2K=1 -DCMAKE_BUILD_TYPE=minsizerel ..}}}

 {{{make}}}

 Now I'm going to try migrating everything to Gitian, which I'm sure will
 be another adventure. I'm hoping to drop MXE long-term but it should be
 helpful in figuring out the best way to crosscompile Qt and handle cmake
 for crosscompilation issues nonetheless.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10205#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list