Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Linux support #19

Open
kkremitzki opened this issue Oct 15, 2019 · 8 comments
Open

Add Linux support #19

kkremitzki opened this issue Oct 15, 2019 · 8 comments

Comments

@kkremitzki
Copy link

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.

@sharpobject
Copy link

sharpobject commented Oct 16, 2019

If you apply #16 and #17 locally I expect it will work. Let me know if there's any problem.

@kkremitzki
Copy link
Author

Thanks, I opened #21 which will get things working after #17 is merged.

@arrayofchar
Copy link

Please see #37. I just merged your code #21 to the dev/crossplatform branch plus the original changes in #17.

@Shugyousha
Copy link
Contributor

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?

@plasx
Copy link

plasx commented Nov 29, 2021

@arrayofchar does this mean Linux Support is added already and this issue is closed?

@arrayofchar
Copy link

arrayofchar commented Dec 2, 2021 via email

@Shugyousha
Copy link
Contributor

Shugyousha commented Dec 3, 2021 via email

@lolriven
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants