3/31/2023 0 Comments Widelands 64 bitIt would be helpful for static linking if it is possible to set more options. There are more necessary/recommendable options to get a nice environment for static linking. Some libraries load plugins or other libraries at runtime. Most of this will be about how to compile the libraries for has nothing to do with widelands and is only a part which is necessary. I will write a bit about how to link widelands static. Options for static linking will just be to much system dependent. a" -DCOMMON_ LIBS="- static -nodefaultlibs -lz -ldl -lm -lgcc_eh -lgcc" a" -DGGZ_LIBRARIES ="/usr/ static32/ lib/libggzmod. a /usr/static32/ lib/libSDL_ gfx.a /usr/static32/ lib/libfreetype. I." -DSDL_LIBRARIES ="/usr/ static32/ lib/libSDL. ![]() ![]() Then I want to call cmake somethin like this:Ĭmake -DTAKE_ ONLY_MY_ INCLUDES= "-I. It should not use /usr/include at all but include some special path /path/to/ static- libs/include the same with the libraries. First of all is should be possible to throw out all default path. For 32bit this was more difficult as the compiled libraries conflicts with the system ones. For 64bit this was not a big problem as I have 32bit libraries from system only and compiled all 64bit ones myself. I work on a script (or Makefile) which set up these libraries for widelands. But it can take much time to set up the library environment. I would not try to do a complete static linking with cmake. ![]() There are more necessary/ recommendable options to get a nice environment for static linking. Has nothing to do with widelands and is only a part which is necessary.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |