codenamecpp / carnage3d

Reimplementation of Grand Theft Auto 1 [GTA1]
MIT License
481 stars 38 forks source link

[Repo] Include GLFW as git submodule #24

Closed codenamecpp closed 5 years ago

codenamecpp commented 5 years ago

GLFW 3.3 is not available via apt-get on linux bionic.

codenamecpp commented 5 years ago

I have add glfw git submodule to repo but I no idea how to integrate it to premake :) So I'll be appreciated for help.

neuromancer commented 5 years ago

An example is here: https://github.com/premake/premake-core/wiki/Tutorial-Premake-example-with-GLFW-and-OpenGL

I can take a look later to this.

codenamecpp commented 5 years ago

it would be great, neuromancer!

neuromancer commented 5 years ago

After some research, my conclusion is that GLFW cannot be directly integrated using premake (Well, it is technically possible, but it will be hard to do and maintain). The options are:

So, what do you think?

codenamecpp commented 5 years ago

Thanks for research! I have noticed that box2d which compiling with project has already glfw included (as part or testbed). So I think we could just do the same thing?

neuromancer commented 5 years ago

It seems glfw 3.3 is statically linked in box2d. I'm looking how to integrate this directly into the main build right now..

codenamecpp commented 5 years ago

Done in [c5af138] GLFW 3.3 will not statically compile on LINUX