Maybe the best solution here is to search for data depending on path to binary file. Real path can be determined from full command line and PATH environment variable.
With your last push I got the message "Error during ModManager::loadModList() -- couldn't open mods/mods.txt". Then I examine sources starting from this message and found the problem. I forgot to uninstall Debian package with the game, so PATH_DATA pointed to /usr/share/games/flare, where the mods subdirectory is absent. When I removed the package, game started successfully. Thank you for help.
Maybe the best solution here is to search for data depending on path to binary file. Real path can be determined from full command line and PATH environment variable.
With your last push I got the message "Error during ModManager::loadModList() -- couldn't open mods/mods.txt". Then I examine sources starting from this message and found the problem. I forgot to uninstall Debian package with the game, so PATH_DATA pointed to /usr/share/games/flare, where the mods subdirectory is absent. When I removed the package, game started successfully. Thank you for help.
Now tried to build with g++. Same result.
Oh, sorry, forgot to mention it. With cmake.