Code Monkey home page Code Monkey logo

Comments (11)

PythonicChemist avatar PythonicChemist commented on July 28, 2024

what kind of contribution?

from openjk.

astillich avatar astillich commented on July 28, 2024

Fixed code, in the sense that it compiles with GCC and probably at least an initial linux port. I just read the other ticket and am moving my changes to the codebase in the jedi outcast archive. I also started a cmake based build system.

from openjk.

PythonicChemist avatar PythonicChemist commented on July 28, 2024

I'm sadly no cpp or c guy, but a linux one. I would help out testing once it compiles.

from openjk.

astillich avatar astillich commented on July 28, 2024

Great, but we're not there yet. ;)

from openjk.

astillich avatar astillich commented on July 28, 2024

Got a lot of the code to compile (50% of the files included in the project file, which is about 80% of the code). Issues were: function pointer default args, "or" as identifier, MSVC specific (string) functions, include path issues (case, slashes), alignment specifications, inline assembler, c/c++ mixups and some others. Remaining issue is mostly c code including c++ headers which I'll probably fix on the weekend. This may require a rework of the GL stuff. I haven't had a close look at it, and don't know the state of the GLX support, but I'd move context creation to SDL and use glew to handle OpenGL extensions if it's not workable. There currently custom code for that, maybe a solution from another quake based project could be integrated.

from openjk.

eezstreet avatar eezstreet commented on July 28, 2024

Fixed, see my fork. (The function pointer default args are fixed, that is)

from openjk.

flibitijibibo avatar flibitijibibo commented on July 28, 2024

I assume it's still loading OpenGL dynamically, but if you need something to handle extensions like GLEW, just use this instead:

https://gist.github.com/flibitijibibo/5270425

For platform-specific GL, you'll probably get more mileage out of SDL2. SDL2 adds a few GL context management functions that would otherwise require some #ifdef hell to get working on all desktop platforms.

On a similar topic, you might also make maintenance/portability easier by replacing the libpng/libjpeg/zlib with stb_image. Updates and knocks out three dependencies in one go.

from openjk.

xycaleth avatar xycaleth commented on July 28, 2024

Can this issue be closed now?

from openjk.

eezstreet avatar eezstreet commented on July 28, 2024

Go ahead.

Sent from my Windows Phone


From: Alex Lomailto:[email protected]
Sent: ‎4/‎15/‎2013 6:27 AM
To: Razish/OpenJKmailto:[email protected]
Cc: eezstreetmailto:[email protected]
Subject: Re: [OpenJK] Make the code base compile with a modern GCC (#3)

Can this issue be closed now?


Reply to this email directly or view it on GitHub:
#3 (comment)

from openjk.

xycaleth avatar xycaleth commented on July 28, 2024

MP code builds under GCC; still working on SP.

from openjk.

xycaleth avatar xycaleth commented on July 28, 2024

Code compiles under gcc and clang now :)

from openjk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.