schoappied wrote:
Tyler Roscoe wrote:
On Thu, Jul 23, 2009 at 10:05:35PM +0200, schoappied wrote:
The part in the source looks like:
# check for libsndfile
PKG_CHECK_MODULES(SNDFILE REQUIRED sndfile>=1.0.11)
IF(NOT SNDFILE_FOUND)
MESSAGE(FATAL_ERROR "LMMS requires libsndfile1 and
libsndfile1-dev
= 1.0.11 - please install, remove CMakeCache.txt and try again!")
ENDIF(NOT SNDFILE_FOUND)
I've never used pkg_check_modules. What exactly are you trying to do? If
you're just trying to use the sndfile library, find_library() is
probably easier to use:
http://www.cmake.org/cmake/help/cmake2.6docs.html#command:find_library
The docs go into detail about how to insure that CMake finds your
library.
Such a command, should it look something like this?
find_library(<VAR> libsndfile-1.dll [C:\Program Files\libsndfile])
What is <VAR> ? Should I give it a name, or leave it this way?
You put this in CMakeLists right?
When looking into the source (I'm not a developer) I find on this location:
lmms\cmake\modules
these files. It looks like the files are meant for finding stuff
BuildPlugin.cmake
ChecksForLibSamplerate.cmake
DetectMachine.cmake
FindAlsa.cmake
FindOggVorbis.cmake
FindPkgConfig.cmake
FindPortaudio.cmake
FindPulseAudio.cmake
FindSTK.cmake
InstallHelpers.cmake
Win32Toolchain.cmake
Win64Toolchain.cmake
cmakefiles
config-alsa.h.cmake
No, I meant your system PATH variable. CMake Find modules use your PATH
to help locate specific libraries.
I mostly work on Linux, so I'm not experienced on Windows, but this is
how my PATH looks like now:
%GTK_BASEPATH%\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\MinGW\bin;C:\Program
Files\Microsoft Visual Studio 9.0\VC\bin;C:\Program Files\libsndfile
Thanks for your help.
Regards,
~D
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake