Static compilation and change zandronum.ini path

General discussion of the port and Doom-related chat.
Post Reply
oliveriandrea
New User
Posts: 4
Joined: Sat Feb 09, 2013 7:00 pm

Static compilation and change zandronum.ini path

#1

Post by oliveriandrea » Fri Feb 15, 2013 5:32 pm

Hello,
i work on linux and i want to compile zandronum with static libraries (i dont want to link external libraries to the zandronum's binary) how can i modify CMakeLists.txt to do that? or how can i say to the copiler that dynamic libraries are in the same directory of zandronum's binary?

What file do i modify to impose to zandronum a different path to zandronum.ini file?
Thank you
Last edited by oliveriandrea on Fri Feb 15, 2013 5:33 pm, edited 1 time in total.

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

RE: Static compilation and change zandronum.ini path

#2

Post by Torr Samaho » Sun Feb 17, 2013 9:58 am

oliveriandrea wrote: i work on linux and i want to compile zandronum with static libraries (i dont want to link external libraries to the zandronum's binary) how can i modify CMakeLists.txt to do that?
Which libraries are you referring to?
oliveriandrea wrote: or how can i say to the copiler that dynamic libraries are in the same directory of zandronum's binary?
You shouldn't have to tell your compiler where the dynamic libraries are. CMake is supposed to take care of this. Please elaborate which problem you are trying to fix with this.
oliveriandrea wrote: What file do i modify to impose to zandronum a different path to zandronum.ini file?
Why do you want to change this? You should be able to tell Zandronum to use a certain ini file with the "-config" argument.

oliveriandrea
New User
Posts: 4
Joined: Sat Feb 09, 2013 7:00 pm

RE: Static compilation and change zandronum.ini path

#3

Post by oliveriandrea » Sun Feb 17, 2013 9:59 pm

i want to make a portable linux version of zandronum so i want to use only libraries in the zandronum folder not system libraries in /lib or /usr/lib!

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

RE: Static compilation and change zandronum.ini path

#4

Post by Torr Samaho » Sun Feb 17, 2013 10:14 pm

From my experience I'd say creating portable Linux binaries that work with different distributions is very hard. Why do you need portable binaries?

Post Reply