You can sign up to get a daily email of our articles, see the Mailing List page!
Support us on Patreon to keep GamingOnLinux alive. This ensures we have no timed articles and no paywalls. Just good, fresh content! Alternatively, you can support us on Paypal and Liberapay!
Need help regarding some compiling with Make.
Avehicle7887 commented on 29 July 2017 at 4:44 pm UTC

I'm trying to learn how compiling works and while I've been successful in compiling the Yamagi-Quake 2 client, I can only get the game to run by pointing it manually to where the "libGL.so.1" file is (using LD_PRELOAD). I would like to set it to automatically detect where the library is.

Running Mint 18.2, Using propietary Nvidia driver. I'm compiling using SDL2 (which required me to install some Mesa libraries) if it's any help.

Avehicle7887 commented on 29 July 2017 at 5:54 pm UTC

Update - It turns out the Mesa libGL.so file was overriding the Nvidia one, in order to avoid destabilizing the system I zipped up the mesa files and replaced them with the nvidia one.

Duck Hunt-Pr0 commented on 2 August 2017 at 12:50 pm UTC

As for using Make, i would recommend trying CMake along with it. As you might know already, CMake is neither Make itself or a compiler, but (very) basically a generator/configurer of Makefiles to use with Make.

Cmake also contain a lot of Find* modules specifically for detecting and locating libraries and dependencies. (basically independent of what platform or architecture Cmake tries to generate your project's Makefiles on).

Example is the FindOpenGL and FindSDL module.

It's also entirely possible to use Cmake to configure/write other files than Makefiles. And also to set and put environment vars into the generated Makefiles. Maybe it could be useful for your problem?

I apologize if i misunderstood your post though.

Due to spam you need to Register and Login to comment.


Or login with...

Livestreams & Videos
None currently, submit yours here!
See more!
Popular this week
View by Category
Contact
Latest Forum Posts
Facebook