Flake vs Flac and the -Ax2 switch
Reply #38 – 2009-06-12 12:55:37
I'm having problems to compile r255 with libsndfile support on FreeBSD 7. cmake isn't able to find libsndfile. I've copied the libsndfile to /usr/lib, /usr/local/lib and /lib ... neither seems to be the right place. cmake version is 2.6.3, maybe 2.6.4 might work better ... Is it a compiling problem or a linking problem? The cmake version probably would not matter. It's using a custom cmake script which just tries to compile and link a small test file. It's the cmake 2.6.3 in the FreeBSD portstree that isn't working correctly. libsndfile is present in /lib, in /usr/lib and in /usr/local/lib but camke can't find it:# cmake .. -DUSE_LIBSNDFILE=yes -- The C compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Performing Test HAVE_FLAG_STD=C99 -- Performing Test HAVE_FLAG_STD=C99 - Success -- Performing Test HAVE_FLAG_WDISABLED_OPTIMIZATION -- Performing Test HAVE_FLAG_WDISABLED_OPTIMIZATION - Success -- Performing Test HAVE_FLAG_WFLOAT_EQUAL -- Performing Test HAVE_FLAG_WFLOAT_EQUAL - Success -- Performing Test HAVE_FLAG_WBAD_FUNCTION_CAST -- Performing Test HAVE_FLAG_WBAD_FUNCTION_CAST - Success -- Performing Test HAVE_FLAG_WDECLARATION_AFTER_STATEMENT -- Performing Test HAVE_FLAG_WDECLARATION_AFTER_STATEMENT - Success -- Performing Test HAVE_FLAG_WEXTRA -- Performing Test HAVE_FLAG_WEXTRA - Success -- Performing Test HAVE_FLAG_WNO_SWITCH -- Performing Test HAVE_FLAG_WNO_SWITCH - Success -- Performing Test HAVE_FLAG_WSTRICT_OVERFLOW -- Performing Test HAVE_FLAG_WSTRICT_OVERFLOW - Success -- Check if the system is big endian -- Searching 16 bit integer -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of unsigned short -- Check size of unsigned short - done -- Using unsigned short -- Check if the system is big endian - little endian -- Performing Test HAVE_VISIBILITY -- Performing Test HAVE_VISIBILITY - Success -- Looking for inttypes.h -- Looking for inttypes.h - found -- Looking for byteswap.h -- Looking for byteswap.h - not found -- Performing Test HAVE_STRNLEN -- Performing Test HAVE_STRNLEN - Failed -- Performing Test HAVE_LIBSNDFILE -- Performing Test HAVE_LIBSNDFILE - Failed -- libsndfile not found. using libpcm_io instead. -- Writing config.h -- Configuring done -- Generating done -- Build files have been written to: /home/frank/Desktop/SVN/build the resulting config.h is empty! So I did create one myself:#define HAVE_LIBSNDFILE 1 #define SVN_VERSION "258" but that didn't help. I also had to change the CMakeCache.txt://Test HAVE_LIBSNDFILE HAVE_LIBSNDFILE:INTERNAL=1 after that compiling with libsndfile worked without problems. I reinstalled my FreeBSD a few days ago, and before that I was using CMake 2.6.4 from the CMake homepage.