User Tools

Site Tools


user:draugthewhopper:windowsbuild

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
user:draugthewhopper:windowsbuild [2020/08/18 17:09]
draugthewhopper
user:draugthewhopper:windowsbuild [2021/08/31 14:14] (current)
draugthewhopper
Line 1: Line 1:
-Links to various Windows build instructions:​+====== Windows client builds ====== 
 + 
 +As of Aug 2021, I finally got a stable Windows GTK client build method. I submitted a Powershell script which is reasonably well documented in crossfire-client/​gtk-v2/​win32/​autobuild.ps1 
 + 
 +The script and instructions are specifically for x86_64 builds. Suites like MSYS2 and MinGW are deprecating support for pure 32-bit x86, so producing 32-bit binaries maybe not be feasible moving forward. Regardless, if you can get the MinGW/MSYS2 toolchain working, the powershell script can probably be adapted to work. 
 + 
 +====== ​Links ====== 
 + 
 +to various Windows build instructions:​
  
 [[wiki:​data:​pages:​crossfire_release_guide?​s[]=windows&​s[]=build|Release Guide -> Windows]] (2014 or older) [[wiki:​data:​pages:​crossfire_release_guide?​s[]=windows&​s[]=build|Release Guide -> Windows]] (2014 or older)
Line 5: Line 13:
 [[user:​cavesomething:​crosscompiling_for_windows?​s[]=windows&​s[]=build|CaveSomething'​s CMake instructions]] (2010 or older) [[user:​cavesomething:​crosscompiling_for_windows?​s[]=windows&​s[]=build|CaveSomething'​s CMake instructions]] (2010 or older)
  
 +[[server:​server_compiling?​s[]=visual&​s[]=studio#​requirements1|Server compiling with Visual Studio 6]] (contains passing references to gtk client builds)
 +
 +[[http://​xob.kapsi.fi/​~makegho/​trash/​crossfire-win32.txt|MinGW and CMake instructions from ~2018]] (External on xob.kapsi.fi/​~makegho)
 +
 +====== My Notes ======
 +
 +If trying to adapt between 32-bit and 64-bit, the package names may change. A few examples that may help or hurt:
 +
 + pacman -S mingw-w64-i686-gcc ​
 + pacman -S mingw-w64-i686-make
 + pacman -S mingw-w64-i686-pkg-config
 + pacman -S mingw-w64-i686-vala
 + pacman -S mingw-w64-i686-SDL_image
 + pacman -S mingw-w64-i686-SDL_mixer
 +
 +
 +I recommend using perl from MSYS2, rather than a third party Perl. If you want to anyway, a few tips:
 +
 +<​del>​Install PERL:</​del>​
 +
 +<​del>​http://​strawberryperl.com/​releases.html</​del>​
 +
 +<​del>​Download portable 32 bit edition</​del>​
 +
 +<​del>​Extract to C:​\perl</​del>​
 +
 +<​del>​Add C:​\perl\perl\bin to path.</​del>​
 +
 +<​del>​Note that this can cause some issues, especially if CMake tries to use perl-supplied components instead of those from MSYS/MinGW. But, perl is still needed "for def-keys and msgtypes generation"</​del>​
 +
 +<​del>​If CMake fails near a pkgconfig or gtk/gio item, check to make sure that it hasn’t defaulted the PKG_CONFIG_EXECUTABLE to a perl directory. If so, revert it to the msys32 one, probably C:​\msys32\mingw32\bin\pkg-config.exe</​del>​
 +
 +Other misc bits:
  
 +<​del>​Get the glib helper program from C:​\msys32\mingw32\bin\gspawn-win32-helper-console.exe,​ and copy it to release\</​del>​ Not needed since r21700
user/draugthewhopper/windowsbuild.1597788589.txt.gz · Last modified: 2020/08/18 17:09 by draugthewhopper