Help getting a idTech2 based game compile under Linux

Help getting a idTech2 based game compile under Linux

Postby Julius » 19 Aug 2013, 10:11

I need to look into getting this:
http://www.moddb.com/mods/r-reinhard/do ... ource-code
to compile under Linux.

It is quake2 based and according to the author none of the multi-platform specific code has been touched, thus it should be in theory Linux compatible.

I am however a total n00b when it comes to this, so any pointers are appreciated.

Given my limited understanding I assume I need to convert this to compile with gcc and set up an easy compile system like cmake? Or what would be your suggestion?

I guess one could look at how qfusion (a similar quake2 based engine) is compiled under linux: https://github.com/viciious/qfusion
User avatar
Julius
Community Moderator
 
Posts: 3297
Joined: 06 Dec 2009, 14:02

Re: Help getting a idTech2 based game compile under Linux

Postby Julius » 19 Aug 2013, 20:51

*hüst* Well that turned out worse than expected :(

I found this: http://sourceforge.net/projects/vcproj2cmake/
which seemed to be a good solution given the present Visual C++ .vcproj files in the source.

Thus I got the latest git version (the latest release is more than 2 years old), and installed all the necessary additional tools (mainly cmake itself).

When running with the example it does a lot of fancy stuff, but ultimately the output files don't seem to compile with cmake (not sure why, but honestly I am really over my head here). And besides that... there seems to be no option to actually use your own .vcproj???

Ahh well, I can't be the first who tries to dump VC++ in favor of a gcc/cmake combination, right? Google btw is remarkably unhelpful on the issue.
User avatar
Julius
Community Moderator
 
Posts: 3297
Joined: 06 Dec 2009, 14:02

Re: Help getting a idTech2 based game compile under Linux

Postby Julius » 19 Aug 2013, 21:05

Ok the older (2011 release) version of it at least dumps a CMakeLists.txt (attached), but when trying to configure it with that file it totally fails (with so many errors and so little configured that I assume it must be something pretty major).

Edit: looking at the qfusion source, it seems they are not using cmake but also vc++ and a "simple" unix makefile. Maybe that is the simpler solution? How would one go about creating such a file the easiest? I assume if one would take an existing one for a quake2 based engine only minor editing would be necessary?
Attachments
CMakeLists.txt
(11.45 KiB) Downloaded 394 times
User avatar
Julius
Community Moderator
 
Posts: 3297
Joined: 06 Dec 2009, 14:02

Who is online

Users browsing this forum: No registered users and 1 guest