Opencollada won't compile

I’m trying to give my blender builds some Collada functionality. So, I followed the instructions on this page: http://wiki.blender.org/index.php/User:Kazanbas/Building_Collada_Branch (Strange, the page now requires authentication by password):eek:

I’m sure I got the recommended libraries on that page (libexpat & libpcre) but I still get the following compile error:


/usr/bin/ld: cannot find -lexpat
Will appreciate guidance.

i cannot access the wiki, so i don’t know what this guide says.

but it seems you’re missing the expat libraries. on ubuntu/debian systems “sudo apt-get libexpat-dev” should do the trick.

Thanks Atti, … I eventually got the expat libraries installed. Its an rpm system (Fedora) so the package name is different. However, there is new development. It made a reference to xml2 (so, I installed the library for that … only found a static one). Now I get the following errors:


g++ -o COLLADAValidator/bin/posix/x86_64/debuglibxml/OpenCOLLADAValidator -static COLLADAValidator/obj/posix/x86_64/debuglibxml/src/ValidationErrorHandler.o COLLADAValidator/obj/posix/x86_64/debuglibxml/src/main.o -LCOLLADABaseUtils/lib/posix/x86_64/debug -Lcommon/libftoa/lib/posix/x86_64/debug -Lcommon/libBuffer/lib/posix/x86_64/debug -LCOLLADAFramework/lib/posix/x86_64/debug -LExternals/MathMLSolver/lib/posix/x86_64/debug -LExternals/UTF/lib/posix/x86_64/debug -LCOLLADASaxFrameworkLoader/lib/posix/x86_64/debuglibxml -LGeneratedSaxParser/lib/posix/x86_64/debuglibxml -lOpenCOLLADASaxFrameworkLoader -lMathMLSolver -lOpenCOLLADAFramework -lOpenCOLLADABaseUtils -lGeneratedSaxParser -lpcre -lftoa -lbuffer -lUTF -lxml2
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(nanohttp.o): In function `xmlNanoHTTPConnectHost':
(.text+0xe30): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(nanohttp.o): In function `xmlNanoHTTPConnectHost':
(.text+0xf44): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(xmlIO.o): In function `xmlGzfileOpenW':
(.text+0xdd9): undefined reference to `gzopen'
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(xmlIO.o): In function `xmlGzfileOpenW':
(.text+0xdfc): undefined reference to `gzdopen'
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(xmlIO.o): In function `__xmlParserInputBufferCreateFilename':
(.text+0xf5c): undefined reference to `gzdirect'
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(xmlIO.o): In function `xmlFreeZMemBuff':
(.text+0x1088): undefined reference to `deflateEnd'
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(xmlIO.o): In function `xmlGzfileClose':
(.text+0x2a15): undefined reference to `gzclose'
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(xmlIO.o): In function `xmlGzfileWrite':
(.text+0x2a45): undefined reference to `gzwrite'
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(xmlIO.o): In function `xmlIOHTTPCloseWrite':
(.text+0x2bfb): undefined reference to `deflate'
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(xmlIO.o): In function `xmlIOHTTPWrite':
(.text+0x2fac): undefined reference to `deflate'
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(xmlIO.o): In function `xmlIOHTTPWrite':
(.text+0x3072): undefined reference to `crc32'
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(xmlIO.o): In function `xmlGzfileRead':
(.text+0x3145): undefined reference to `gzread'
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(xmlIO.o): In function `xmlCreateZMemBuff':
(.text+0x323d): undefined reference to `deflateInit2_'
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(xmlIO.o): In function `xmlCreateZMemBuff':
(.text+0x3250): undefined reference to `crc32'
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(xmlIO.o): In function `xmlGzfileOpen_real':
(.text+0x1449): undefined reference to `gzdopen'
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(xmlIO.o): In function `xmlGzfileOpen_real':
(.text+0x1493): undefined reference to `gzopen'
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(nanohttp.o): In function `xmlNanoHTTPFreeCtxt':
(.text+0xa7a): undefined reference to `inflateEnd'
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(nanohttp.o): In function `xmlNanoHTTPRead':
(.text+0xcbd): undefined reference to `inflate'
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/libxml2.a(nanohttp.o): In function `xmlNanoHTTPMethodRedir':
(.text+0x1df8): undefined reference to `inflateInit2_'
collect2: ld returned 1 exit status
scons: *** [COLLADAValidator/bin/posix/x86_64/debuglibxml/OpenCOLLADAValidator] Error 1
scons: building terminated because of errors.

I am very lost