Page 1 of 1

Static compilation and change zandronum.ini path

Posted: Fri Feb 15, 2013 5:32 pm
by oliveriandrea
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

RE: Static compilation and change zandronum.ini path

Posted: Sun Feb 17, 2013 9:58 am
by Torr Samaho
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.

RE: Static compilation and change zandronum.ini path

Posted: Sun Feb 17, 2013 9:59 pm
by oliveriandrea
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!

RE: Static compilation and change zandronum.ini path

Posted: Sun Feb 17, 2013 10:14 pm
by Torr Samaho
From my experience I'd say creating portable Linux binaries that work with different distributions is very hard. Why do you need portable binaries?