October 11th, 2005, 02:38 PM
ld can't find libraries
I'm trying to compile stepmania. It tells me it can't find libpng, but I installed that package.
png.h is located in /usr/local/include/png.h AND /usr/local/include/libpng/png.h
checking png.h usability... no
checking png.h presence... no
checking for png.h... no
*** libpng is required to build StepMania; please make sure that
*** it is installed to continue the build process.
It says the same thing for libjpeg. How do I tell configure to look there?
October 18th, 2005, 02:18 PM
Yow! Did you compile libpng/libjpeg by hand yourself? They seem to be installed in non-standard locations. The real fix would be to install libpng and libjpeg in standard locations, which is what you should really do.
However, to get around your current predicament, look in the configure script. Most of them allow you to specify additional dir locations (e.g. --with-libdir= and --with-include-dir or something similar). By the way, png.h is an include file. The lib file should be called libpng.a or libpng.so
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
October 18th, 2005, 02:43 PM
I installed from ports (FreeBSD 6.0 BETA5). Then from src after that didn't work either.
I'll try that in my configure script and let you know. I know about the library thing, sorry I didn't post it's location earlier (/usr/local/lib/libpng.a, /usr/local/lib/libpng.so and many others)