Onforum.net - Web and gaming resource community

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members .

Tutorial Compile source without requiring external dependencies

Blaze

Elite
Elite
VIP
Credits
607
Many of you will have noticed that by compiling the source locally and then moving it to your server you receive error messages that relate to dependencies not found when trying to start the files.
For example:
Code:
Shared object "libmd.so.5" not found, required by "game"
To avoid going crazy trying to solve dependencies, we can simply include the necessary libraries directly in the game file.
To do this you need to edit the file called "Makefile" and add "-static" to the CFLAGS as shown below.
Code:
CFLAGS = -m32 -g -w -O2 -pipe -fexceptions -fno-strict-aliasing -pthread -D_THREAD_SAFE -DNDEBUG -static

The result will be that the compiled files already contain all the dependencies necessary for their operation and will be slightly heavier.
 
Thread starter Similar threads Forum Replies Date
Vanilla Tutorials 1

Similar threads


Top

Dear User!

We found that you are blocking the display of ads on our site.

Please add it to the exception list or disable AdBlock.

The advertises that you'll see aren't intrusive they just help us to keep the community alive

If you don't want to see those ads just buy an upgrade.

Thank you for understanding!

Rogue

Rogue Purchase

User upgrade! at

🔥 Upgrade Now
Baba2

Baba2 Purchase

User upgrade! at

🔥 Upgrade Now

Escanor25 Purchase

User upgrade! at

🔥 Upgrade Now