Add Linux support
kkremitzki opened this issue · 8 comments
This is something I'm interested in working on but I figured I'd create an issue to track the work in case anyone else wants to jump in.
Currently building fails on Linux with this totally unsurprising error about a missing winsock2.h
:
[ 7%] Building CXX object CMakeFiles/ggpo.dir/src/lib/ggpo/main.cpp.o
In file included from /home/kkremitzki/Desktop/Source/ggpo/git/src/lib/ggpo/main.cpp:8:0:
/home/kkremitzki/Desktop/Source/ggpo/git/src/lib/ggpo/types.h:12:10: fatal error: winsock2.h: No such file or directory
#include <winsock2.h>
^~~~~~~~~~~~
compilation terminated.
CMakeFiles/ggpo.dir/build.make:62: recipe for target 'CMakeFiles/ggpo.dir/src/lib/ggpo/main.cpp.o' failed
Once the build works on Linux I can proceed to getting it packaged for Debian/Ubuntu.
To port the vectorwar example application I thought we could replace the gdi_renderer and all the Window specific code with a simple libsdl implementation (using sdl_ttf for text rendering). The simple 2D rendering primitives available in libsdl should work on Windows, Linux and MacOSX.
Does that sound reasonable?
@arrayofchar does this mean Linux Support is added already and this issue is closed?
Has any progress been made on the linux/unix support? I'm looking through the development/crossplatform branch and it seems to still heavily utilize Win32 API and types. Unless there were some macros I missed.