[CMake] cmake and dependencies
schoappied
schoappied at gmail.com
Thu Jul 23 16:05:35 EDT 2009
schoappied wrote:
> Tyler Roscoe wrote:
>> On Thu, Jul 23, 2009 at 06:30:55PM +0200, schoappied wrote:
>>
>>> I try to compile a package on Windows with latest Cmake.
>>> I've installed libsndfile-1 and libsndfile1-dev
>>>
>>> But I got this error:
>>>
>>> checking for module 'sndfile>=1.0.11'
>>> package 'sndfile>=1.0.11' not found
>>> CMake Error at cmake/modules/FindPkgConfig.cmake:270 (message):
>>> A required package was not found
>>> Call Stack (most recent call first):
>>> cmake/modules/FindPkgConfig.cmake:322 (_pkg_check_modules_internal)
>>> CMakeLists.txt:116 (PKG_CHECK_MODULES)
>>>
>>
>> What does your find_package() line look like? Are you literally doing
>> find_package(sndfile>=1.0.11)? Cuz that's, um, not the way to do that.
>>
> Can you tell me the right way?
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)
>
>> Where did you install your sndfile libraries? Are you explicitly telling
>> CMake to look in that directory? Is this location in your PATH?
>>
>>
>>
> You mean in cmake gui > add entry
>
> PATH:C:\Program Files\libsndfile
>
> ?
>
> What should be the name?
>
>
> Thanks for your help.
>
> ~D
>
>
>
More information about the CMake
mailing list