[Bf-committers] Error on compilation with cmake for windows

lguillaume lecocqguillaume at gmail.com
Wed Apr 14 13:36:33 CEST 2010


Hi,

Since a few days, I can't compile blender 2.5 on vc++ express 9 with cmake.
There is 2 errors about the need of pthreads.h

I correct the cmakefile with the patch :

Index: source/blender/gpu/CMakeLists.txt
===================================================================
--- source/blender/gpu/CMakeLists.txt    (revision 28190)
+++ source/blender/gpu/CMakeLists.txt    (working copy)
@@ -28,8 +28,12 @@

 SET(INC
     . ../blenlib ../blenkernel ../makesdna ../include
-    ../../../extern/glew/include ../../../intern/guardedalloc
../../../intern/smoke/extern ../imbuf)
+    ../../../extern/glew/include ../../../intern/guardedalloc
../../../intern/smoke/extern ../imbuf )

+IF(WIN32)
+    SET(INC ${INC} ${PTHREADS_INC})
+ENDIF(WIN32)
+
 ADD_DEFINITIONS(-DGLEW_STATIC)

 BLENDERLIB(bf_gpu "${SRC}" "${INC}")
Index: source/creator/CMakeLists.txt
===================================================================
--- source/creator/CMakeLists.txt    (revision 28190)
+++ source/creator/CMakeLists.txt    (working copy)
@@ -49,8 +49,10 @@
     ../../extern/glew/include
 )

+IF(WIN32)
+    INCLUDE_DIRECTORIES(${PTHREADS_INC})
+ENDIF(WIN32)

-
 IF(WITH_QUICKTIME)
     ADD_DEFINITIONS(-DWITH_QUICKTIME)
 ENDIF(WITH_QUICKTIME)


More information about the Bf-committers mailing list