[Bf-committers] CMake edits for compiling on Mac OS X Leopard

Matt Ebb matt at mke3.net
Sat Dec 1 07:57:56 CET 2007


Hi,

I've just been trying to get Blender compiled on OS X 10.5 with CMake,  
and I've had to make a few adjustments. For some reason CMake can't  
find the FindOpenAL.cmake script so I've just changed the CMake files  
to use the prebuilt libraries in /lib/darwin-8.x.i386 anyway. I also  
changed the Python version to 2.5, since that's what ships with  
Leopard now. CMake still doesn't link though, which is weird, I don't  
know why:

Linking C executable ../../bin/blender.app/Contents/MacOS/blender
Undefined symbols:
   "__dummy", referenced from:
ld: symbol(s) not found
collect2: ld returned 1 exit status


I've pasted the diff for these changes so far below, I'm not sure  
who's in charge of this - is Jacques still around?

cheers

Matt



Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt	(revision 12684)
+++ CMakeLists.txt	(working copy)
@@ -299,17 +299,23 @@
      SET(LIBDIR ${CMAKE_SOURCE_DIR}/../lib/darwin-6.1-powerpc)
    ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES i386)

-  INCLUDE(${CMAKE_ROOT}/Modules/FindOpenAL.cmake)
-  IF(OPENAL_FOUND)
-    SET(WITH_OPENAL ON)
-    SET(OPENAL_LIB ${OPENAL_LIBRARY})
-    SET(OPENAL_INC ${OPENAL_INCLUDE_DIR})
-  ELSE(OPENAL_FOUND)
-    SET(WITH_OPENAL OFF)
-  ENDIF(OPENAL_FOUND)
+  #INCLUDE(${CMAKE_ROOT}/Modules/FindOpenAL.cmake)
+  #IF(OPENAL_FOUND)
+  #  SET(WITH_OPENAL ON)
+  #  SET(OPENAL_LIB ${OPENAL_LIBRARY})
+  #  SET(OPENAL_INC ${OPENAL_INCLUDE_DIR})
+  #ELSE(OPENAL_FOUND)
+  #  SET(WITH_OPENAL OFF)
+  #ENDIF(OPENAL_FOUND)
+
+  SET(WITH_OPENAL ON)
+  SET(OPENAL ${LIBDIR}/openal)
+  SET(OPENAL_INC ${OPENAL}/include)
+  SET(OPENAL_LIBPATH ${OPENAL}/lib)
+  SET(OPENAL_LIB openal)

    SET(PYTHON /System/Library/Frameworks/Python.framework/Versions/)
-  SET(PYTHON_VERSION 2.3)
+  SET(PYTHON_VERSION 2.5)
    SET(PYTHON_INC "${PYTHON}${PYTHON_VERSION}/include/python$ 
{PYTHON_VERSION}" CACHE STRING "")
    SET(PYTHON_BINARY ${PYTHON}${PYTHON_VERSION}/bin/python$ 
{PYTHON_VERSION} CACHE STRING "")
    SET(PYTHON_LIB "")


More information about the Bf-committers mailing list