[CMake] OSX/Cmake 2.8.4 errors detecting ffmpeg and GTK2

Full Name jh1521 at excite.com
Wed Feb 23 07:19:18 EST 2011


I am trying to compile Vegastrike (vegastrike.sourceforge.net) on OSX 10.5, code generator is xcode 3.1.4

Can't get past 2 dependencies that are not detected correctly by cmake.

1. ffmpeg: I installed it from source in /usr/local (/lib and /include)
Cmake first complains not finding libavcodec, libavformat, libavutil and libswscale, then lists the locations where they are located. However in the end this still generates an error that doesn't let me proceed. Also it doesn't list libswscale.a as found, even though it exists in the same location as the others (/usr/local/lib/libswscale.a)

2. GTK2: problems with finding several components of it.
a: Cairo first is listed as: found includes but library not found; I entered manually the path to Cairo (which was installed via Fink) and it isn't shown in red anymore, but eventually still is listed as not found and generates an error.

b: GTKGL is not detected at all (neither includes not library); also installed via Fink; entered manually (/sw/lib/libgtkglext-x11-1.0.dylib), doesn't complain about it anymore. 

Here is the full output with all the errors I get at this point:

++ Using Internal Boost
++ OpenGL found : /System/Library/Frameworks/AGL.framework;/System/Library/Frameworks/OpenGL.framework
++ GLUT found : -framework GLUT;-framework Cocoa
++ Found OpenAL
++ SDL Found
Found Vorbis: /usr/local/lib/libvorbis.dylib;/usr/local/lib/libvorbisfile.dylib;/usr/local/lib/libogg.dylib
checking for module 'libavcodec'
  package 'libavcodec' not found
CMake Error at /Applications/CMake 2.8-4.app/Contents/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found
Call Stack (most recent call first):
  /Applications/CMake 2.8-4.app/Contents/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
  FindFFMPEG.cmake:25 (pkg_check_modules)
  CMakeLists.txt:826 (find_package)


checking for module 'libavformat'
  package 'libavformat' not found
CMake Error at /Applications/CMake 2.8-4.app/Contents/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found
Call Stack (most recent call first):
  /Applications/CMake 2.8-4.app/Contents/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
  FindFFMPEG.cmake:72 (pkg_check_modules)
  CMakeLists.txt:826 (find_package)


checking for module 'libavutil'
  package 'libavutil' not found
CMake Error at /Applications/CMake 2.8-4.app/Contents/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found
Call Stack (most recent call first):
  /Applications/CMake 2.8-4.app/Contents/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
  FindFFMPEG.cmake:120 (pkg_check_modules)
  CMakeLists.txt:826 (find_package)


checking for module 'libswscale'
  package 'libswscale' not found
Found FFmpeg: /usr/local/lib/libavcodec.a;/usr/local/lib/libavformat.a;/usr/local/lib/libavutil.a
-- FFMpeg's libswscale not found... depending on your ffmpeg version, VS might not build.
checking for module 'OGRE>=1.2.0'
  package 'OGRE>=1.2.0' not found
Ogre not found
-- Ogre Not Found: compiling without
checking for module 'cairo'
  package 'cairo' not found
CMake Error at /Applications/CMake 2.8-4.app/Contents/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found
Call Stack (most recent call first):
  /Applications/CMake 2.8-4.app/Contents/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
  FindGTK2.cmake:155 (pkg_check_modules)
  setup/CMakeLists.txt:15 (find_package)


Found GTK2: /sw/lib/libgtk-x11-2.0.dylib;/sw/lib/libgdk-x11-2.0.dylib;/sw/lib/libgdk_pixbuf-2.0.dylib;/sw/lib/libgmodule-2.0.dylib;/sw/lib/libgthread-2.0.dylib;/sw/lib/libgobject-2.0.dylib;/sw/lib/libpango-1.0.dylib;/sw/lib/libcairo.dylib;/sw/lib/libatk-1.0.dylib;/sw/lib/libgtkglext-x11-1.0.dylib
-- Compiling mesh_tool without OgreMesh support: Ogre not found
Default build type is Release, no cpu opts enabled.
Configuring incomplete, errors occurred!


More information about the CMake mailing list