I just tried Flare and I liked it. So I pulled git repo and started to examine sources. But when I compiled it and ran that binary, it just didn't work. Empty window, silence in stdout/stderr, and can't recieve any signals:
$ ps aux | grep '[f]lare'
t 9444 101 0.4 29444 7136 pts/1 RLl 12:24 0:54 ./flare
$ killall flare; ps aux | grep '[f]lare'
t 9444 101 0.4 29444 7136 pts/1 RLl 12:24 0:54 ./flare
$ killall -9 flare; ps aux | grep '[f]lare'
$
I didn't change the sources, just compiled current git version. Here is SDL versions in my system (from 'testing/unstable' branches):
$ aptitude search ^libsdl~i -F '%p %V'
libsdl-image1.2 1.2.10-2.1
libsdl-image1.2-dev 1.2.10-2.1
libsdl-mixer1.2 1.2.8-6.4
libsdl-mixer1.2-dev 1.2.8-6.4
libsdl-net1.2 1.2.7-2
libsdl-sound1.2 1.0.3-3+b1
libsdl-ttf2.0-0 2.0.9-1.1
libsdl-ttf2.0-dev 2.0.9-1.1
libsdl1.2-dev 1.2.14-6.4
libsdl1.2debian 1.2.14-6.4
I tried with SDL from 'stable', with same result. Official package form Debian unstable works well in both cases.
How exactly did you build? With cmake or directly with g++?
Oh, sorry, forgot to mention it. With cmake.
Now tried to build with g++. Same result.
Though it should be showing some kind of error, it's possible that the app just can't find any of the data files. Check your environment variables? Here's where Flare looks for data files:
https://github.com/clintbellanger/flare/wiki/Directories
Is the Flare data in one of those places? Specifically the "PATH_DATA" section.
(update)
If you used "make install", see if the data is in /usr/local/flare.
If it is, see if a "mods" folder is there.
It's possible that my WIP code is breaking something. I just pushed an update to the cmake file that could be the whole issue.
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.
Awesome, sorry for the mess!
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.