-
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cross-compilation with mingw-w64
- Loading branch information
Showing
10 changed files
with
106 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SET(CMAKE_SYSTEM_NAME Windows) | ||
SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc) | ||
SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++) | ||
SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SET(CMAKE_SYSTEM_NAME Windows) | ||
SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc) | ||
SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++) | ||
SET(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
To cross-compile for Windows on Ubuntu: | ||
|
||
sudo apt-get install nsis mingw-w64-i686-dev mingw-w64-x86-64-dev | ||
|
||
To build manually without the tracker: | ||
|
||
mkdir build-win32 | ||
cd build-win32 | ||
cmake \ | ||
-DCMAKE_TOOLCHAIN_FILE=../cmake/i686-w64-mingw32.toolchain \ | ||
-DPSMOVE_BUILD_TRACKER=OFF \ | ||
.. | ||
|
||
mkdir build-win64 | ||
cd build-win64 | ||
cmake \ | ||
-DCMAKE_TOOLCHAIN_FILE=../cmake/x86_64-w64-mingw32.toolchain \ | ||
-DPSMOVE_BUILD_TRACKER=OFF \ | ||
.. | ||
|
||
Or use: | ||
|
||
sh -x contrib/cross-compile-mingw64 |
Oops, something went wrong.