COLLADA: updated cmake and scons settings (on linux) to build against OpenCollada...
authorArystanbek Dyussenov <arystan.d@gmail.com>
Sun, 15 Nov 2009 13:57:37 +0000 (13:57 +0000)
committerArystanbek Dyussenov <arystan.d@gmail.com>
Sun, 15 Nov 2009 13:57:37 +0000 (13:57 +0000)
To build OpenCollada:
* apply this patch http://wiki.blender.org/index.php/File:Opencollada@675.diff
* build by typing 'scons XMLPARSER=expatnative' (pcre and expat must be installed)
* after build, copy all compiled libs into 'lib' (Blender build will refer to it):

rm -rd lib
mkdir lib
find . -iname '*.a' | xargs cp -t lib

CMakeLists.txt
config/linux2-config.py

index 01f1dd69a9aef1947400cd409cf20c21acc7e3b7..db9e5948f33846c5f36a0a9122ce403b62602e71 100644 (file)
@@ -209,8 +209,8 @@ IF(UNIX AND NOT APPLE)
 
        IF (WITH_OPENCOLLADA)
                SET(OPENCOLLADA /usr/local/opencollada CACHE FILEPATH "OpenCollada Directory")
-               SET(OPENCOLLADA_LIBPATH ${OPENCOLLADA})
-               SET(OPENCOLLADA_LIB OpenCollada)
+               SET(OPENCOLLADA_LIBPATH ${OPENCOLLADA}/lib)
+               SET(OPENCOLLADA_LIB OpenCOLLADAStreamWriter OpenCOLLADASaxFrameworkLoader OpenCOLLADAFramework OpenCOLLADABaseUtils GeneratedSaxParser UTF MathMLSolver pcre ftoa Buffer)
                SET(OPENCOLLADA_INC ${OPENCOLLADA})
                SET(PCRE /usr CACHE FILEPATH "PCRE Directory")
                SET(PCRE_LIBPATH ${PCRE}/lib)
index 536a3e0e327c585ad76d059649c9cbf09306209a..c0c600f2498a6bbe68d9ab1bc20bec44d0d4a785 100644 (file)
@@ -155,9 +155,9 @@ WITH_BF_COLLADA = True
 BF_COLLADA = '#source/blender/collada'
 BF_COLLADA_INC = '${BF_COLLADA}'
 BF_COLLADA_LIB = 'bf_collada'
-BF_OPENCOLLADA = ''
-BF_OPENCOLLADA_LIB = 'OpenCollada'
-BF_OPENCOLLADA_LIBPATH = '/usr/lib'
+BF_OPENCOLLADA = '/usr'
+BF_OPENCOLLADA_LIB = 'OpenCOLLADAStreamWriter OpenCOLLADASaxFrameworkLoader OpenCOLLADAFramework OpenCOLLADABaseUtils GeneratedSaxParser UTF MathMLSolver pcre Buffer ftoa'
+BF_OPENCOLLADA_LIBPATH = '${BF_OPENCOLLADA}/lib'
 BF_PCRE = ''
 BF_PCRE_LIB = 'pcre'
 BF_PCRE_LIBPATH = '/usr/lib'