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
Static compilation and change zandronum.ini path
-
oliveriandrea
- New User
- Posts: 4
- Joined: Sat Feb 09, 2013 7:00 pm
Static compilation and change zandronum.ini path
Last edited by oliveriandrea on Fri Feb 15, 2013 5:33 pm, edited 1 time in total.
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
RE: Static compilation and change zandronum.ini path
Which libraries are you referring to?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?
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: or how can i say to the copiler that dynamic libraries are in the same directory of zandronum's binary?
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 wrote: What file do i modify to impose to zandronum a different path to zandronum.ini file?
-
oliveriandrea
- New User
- Posts: 4
- Joined: Sat Feb 09, 2013 7:00 pm
RE: Static compilation and change zandronum.ini path
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!
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
RE: Static compilation and change zandronum.ini path
From my experience I'd say creating portable Linux binaries that work with different distributions is very hard. Why do you need portable binaries?