This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
user:draugthewhopper:windowsbuild [2020/08/22 14:04] draugthewhopper |
user:draugthewhopper:windowsbuild [2021/01/02 18:30] draugthewhopper |
||
---|---|---|---|
Line 39: | Line 39: | ||
Alternatively, do a oneliner: | Alternatively, do a oneliner: | ||
- | 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 | + | pacman -S mingw-w64-i686-gcc mingw-w64-i686-make mingw-w64-i686-pkg-config mingw-w64-i686-vala mingw-w64-i686-SDL_image mingw-w64-i686-SDL_mixer |
Add c:\msys32\mingw32\bin to path | Add c:\msys32\mingw32\bin to path | ||
Line 53: | Line 53: | ||
Add C:\perl\perl\bin to path. | Add C:\perl\perl\bin to path. | ||
- | Note that this can cause some issues, especially if CMake tries to use perl-supplied components instead of those from MSYS/MinGW | + | 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" |
Download and extract CrossFire source to e.g. c:\cfsource.rxxxxx. | Download and extract CrossFire source to e.g. c:\cfsource.rxxxxx. | ||
Line 138: | Line 138: | ||
libgdk_pixbuf-2.0-0.dll Adding this causes a deluge of warnings about XPM not being supported. To fix, in release, create a folder called “lib”, and copy “gdk-pixbuf-2.0” and “gtk-2.0” from “C:\msys32\mingw32\lib”. <del>This fixes some xpm warnings, and makes a few GUI icons render correctly, apparently a very few gui elements are xpm?</del> | libgdk_pixbuf-2.0-0.dll Adding this causes a deluge of warnings about XPM not being supported. To fix, in release, create a folder called “lib”, and copy “gdk-pixbuf-2.0” and “gtk-2.0” from “C:\msys32\mingw32\lib”. <del>This fixes some xpm warnings, and makes a few GUI icons render correctly, apparently a very few gui elements are xpm?</del> | ||
libgio-2.0-0.dll | libgio-2.0-0.dll | ||
- | libglib-2.0-0.dll Adding this causes the sound server to fail to spawn, message "Could not spawn sound server: Failed to execute helper program (Invalid argument)" Skip for now, and it will work in the dev enrions. | + | libglib-2.0-0.dll <del>Adding this causes the sound server to fail to spawn, message "Could not spawn sound server: Failed to execute helper program (Invalid argument)" Skip for now, and it will work in the dev enrions.</del> The sound server will fail to spawn if you do not get the glib helper program. This is a Windows-specific thing. |
libgmodule-2.0-0.dll | libgmodule-2.0-0.dll | ||
libgobject-2.0-0.dll | libgobject-2.0-0.dll | ||
Line 164: | Line 164: | ||
zlib1.dll | zlib1.dll | ||
- | At this point, the client runs in your dev environs, no warnings, sound works, etc, as long as you did not copy libglib. | + | These DLLs go in release\bin\, since they are used by the sound server: |
+ | |||
+ | libmad-0.dll | ||
+ | libSDL_mixer-1-2-0.dll | ||
+ | libogg-0.dll | ||
+ | libvorbis-0.dll | ||
+ | libvorbisfile-3.dll | ||
+ | |||
+ | It works to put them in release\, but the sound server checks for them in .\, so it helps if they're in the same folder as cfsndserv.exe | ||
+ | |||
+ | At this point, the client runs in your dev environs, no warnings, sound works, etc<del>, as long as you did not copy libglib.</del> | ||
+ | |||
+ | Get the glib helper program from C:\msys32\mingw32\bin\gspawn-win32-helper-console.exe, and copy it to release\ | ||
Pull the release\ folder to another machine, and run. | Pull the release\ folder to another machine, and run. | ||
- | It now complains that libglib is missing. Copy it as well. Sound is now broken. when you launch, there's now warnings and the themes are broken again. | + | <del>It now complains that libglib is missing. Copy it as well. Sound is now broken. when you launch, there's now warnings and the themes are broken again.</del> |
Weep because everything's on fire. | Weep because everything's on fire. |