Compiling PCem for Windows from Windows Subsystem for Linux with Ubuntu
Posted: Sat 27 Jul, 2019 3:24 am
In part for fun and in part because MSYS is very slow I tried to compile PCem under the WSL and it's at least 3 times faster than MSYS. Of course I got an executable for Linux.
Now I'm trying to cross compile it for Windows but I get an error about OpenAL:
I found the --host=x86_64-w64-mingw32 thing on some guides to compile bitcoin under WSL.
Before I got a similar error about missing wxWidgets and with a lot of gooling I managed to build and install wxWidgets for x86_64-w64-mingw32 but I couldn't find any hint for OpenAL.
Anyone have any ideas?
Now I'm trying to cross compile it for Windows but I get an error about OpenAL:
Code: Select all
root@cp1:~/pcem# ./configure --host=x86_64-w64-mingw32
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-w64-mingw32
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-w64-mingw32-strip... x86_64-w64-mingw32-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for x86_64-w64-mingw32-gcc... x86_64-w64-mingw32-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-w64-mingw32-gcc accepts -g... yes
checking for x86_64-w64-mingw32-gcc option to accept ISO C89... none needed
checking whether x86_64-w64-mingw32-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of x86_64-w64-mingw32-gcc... gcc3
checking for x86_64-w64-mingw32-g++... x86_64-w64-mingw32-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-w64-mingw32-g++ accepts -g... yes
checking dependency style of x86_64-w64-mingw32-g++... gcc3
checking whether to build for release... no
checking whether to enable debugging... no
checking whether to enable networking... no
checking whether to use ALSA for MIDI output... no
checking for cpu... x86_64
checking for off64_t x86_64... yes
checking for x86_64-w64-mingw32-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
configure: WARNING: using cross tools not prefixed with host triplet
checking pkg-config is at least version 0.9.0... yes
checking for sdl2 >= 2.0.1... yes
checking for wx-config... /usr/local/bin/wx-config
checking for wxWidgets version >= 3.0.0... yes (version 3.0.5)
checking for wxWidgets static library... no
checking for pthread_create in -lpthread... yes
checking for main in -lopengl32... yes
checking for alGetError in -lopenal... no
You need to install the OpenAL library.
root@cp1:~/pcem#
Before I got a similar error about missing wxWidgets and with a lot of gooling I managed to build and install wxWidgets for x86_64-w64-mingw32 but I couldn't find any hint for OpenAL.
Anyone have any ideas?