-
Notifications
You must be signed in to change notification settings - Fork 86
[FAQ] Compiling
-
How can I execute my self-compiled RTTR?
Just run it from inside VS. TheALL_BUILDproject should be selected as the start project (default) and is correctly set up for running/debugging. Outside of VS you have to set the execution directory to the build folder (create a shortcut and change its properties)
-
I get missing dependencies when using CMake.
Make sure you installed all required packages as listed in the install guide. -
I still get missing dependencies when using CMake but the missing ones are in
/usr/lib/x86_64-linux-gnufolder
You have to add this folder toCMAKE_PREFIX_PATHeither via the environment variable, by passing it to CMake with-DCMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnuor by setting it in the GUI (cmake-gui) orccmake -
I don't have/don't want to use the static boost libraries and don't want to build them myself
You can use dynamic boost libraries too by setting the CMake variableUSE_STATIC_BOOSTtoOFF(see above how) -
I'm getting errors like
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libboost_filesystem.a(operations.o): relocation R_X86_64_32 against '__pthread_key_create@@GLIBC_2.2.5' can not be used when making a shared object; recompile with '-fPIC'
Recompile boost with-fPICor use dynamic boost libraries by settingUSE_STATIC_BOOSTtoOFF
-
CMake cannot find gettext/msgmerge/msgfmt
Make sure you installed gettext (e.g. via brew) and msgmerge and msgfmt are in your path. You can either usebrew link --force gettextorexport PATH="<path-to-msgmerge-bin-folder>:$PATH". Last option is setting theCMAKE_PREFIX_PATHlike:./cmake.sh ... -DCMAKE_PREFIX_PATH=/usr/local/opt/gettext(Adjust your path if necessary) -
CMake cannot find SDL
This can happen if you have SDL2 installed too. You can make CMake find your version by setting
SDLDIRto its path. E.g.:SDLDIR=/usr/local/opt/sdl ./cmake.sh ...
