now my questions:
- is there something else i have to do besides the ./configure make make install ldconfig to install physfs?
- how (in general) can i find out *WHERE* something is installed when not setting "--prefix" arguments? (*ashamed* )
- could the problem be connected to lincity-ng in spite of physfs?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
I'll take a stab at answering some of your questions.
I only recently learned how to use the "find" command. It is used as follows:
find -name So, to find any config files that are in the current directory (or any subdirectories), I would issue a:
find . -name *.cfg[the . represents the current directory. I've done double-takes seeing it like that.]
To find all package configuration files anywhere on your system, you might do:
find / -name *.pc[Find also does other weird and wonderful things -- like finding files newer than a given date; but most of the time I'm just glad to be able to search for a file!]
It is a problem, in general, knowing where a library is located. For the SDL, the sdl-config tool was created.
If you run it as follows:
sdl-config --cflags --libsIt will tell you what flags to compile your application with. Indeed, you use the cool back-tick operator, as follows:
cc test.cpp -otest `sdl-config --cflags --libs`and the same script will run on any system with sdl on it, without the paths needing to be hard-coded.
There is a more general tool called pkg-config. I learned about it recently, and posted [a href=\"https://www.oesf.org/forums/index.php?showtopic=17787&view=findpost&p=116083]about it.[/url] I was cross-compiling, but I imagine the same thing applies. Your library may create a .pc file, and if you add that to the PKG_CONFIG_PATH, then configure can find libraries it is looking for.
Hope it helps,
Armagon