[Bf-committers] compiling Blender with collada on Linux

Campbell Barton ideasman42 at gmail.com
Tue Oct 27 12:54:43 CET 2015


Hi Torsten,

For me the systems open-collada is correctly auto-detected by CMake
(using Arch Linux).
Our SCons build files don't auto-detect libraries at all, so if you
want to use scons, you need to set include & lib paths in your config.

On Tue, Oct 27, 2015 at 10:36 PM, Bastien Montagne
<montagne29 at wanadoo.fr> wrote:
> Just use install_deps.sh script, we painfully set this up and maintain
> it, so do not expect any support you want to do it the hard way…
>
> Le 26/10/2015 23:54, Torsten Mohr a écrit :
>> Hello,
>>
>> i try to compile the released sources 2.76 on linux (OpenSuSE) with Collada /
>> OpenCollada.
>> I try to build using scons.
>> I installed the dependencies manually.
>>
>>
>> Regarding OpenCollada:
>>
>> In install-deps.sh it says:
>> OPENCOLLADA_VERSION="1.3"
>>
>> I have installed in yast2:
>> libOpenCOLLADA0 / svn868-8.1.3
>>
>> I then manually created the directory /usr/include/opencollada and copied all
>> necessary header files there.
>>
>>
>> But in the final executable there is no support for Collada Export / Import.
>>
>>
>> I tried to figure out how to enable COLLADA but did not succeed.  So this is
>> what i tried, I don't think this is how it is intended:
>>
>>
>> In the scons config file linux-config.py it says:
>> BF_OPENCOLLADA = '/usr'
>> BF_OPENCOLLADA_INC = '${BF_OPENCOLLADA}/include/opencollada'
>>
>> I additionally changed this line from False to True (it seems to force collada
>> support):
>> WITH_BF_COLLADA = True
>>
>> When i compile blender now i get:
>> Compiling ==> 'ExtraHandler.cpp'
>> In file included from source/blender/collada/ExtraHandler.cpp:30:0:
>> source/blender/collada/ExtraHandler.h:32:52: fatal error:
>> COLLADASaxFWLIExtraDataCallbackHandler.h: File or Directory not found
>>   #include "COLLADASaxFWLIExtraDataCallbackHandler.h"
>>
>> But this include file is available in /usr/include/opencollada, so there seems
>> to be a problem in the build process (Surely possible with the changes i did).
>> It does not seem to be related to the version of OpenCollada used, as the
>> include file is available.
>>
>>
>> It would be great if somebody could give me some hints:
>>
>> 1. How should i compile blender with COLLADA support?  What is the intended
>> way?  Shouldn't OpenCollada be autodetected?
>>
>> 2. Can i get some more information about the configuration process?  Why does
>> scons not find OpenCollada?  Do i need to enable it?
>>
>> 3. Can i get some more information from the compile process?  What commands
>> exactly does scons call (I'd like to see the include path that it gives to the
>> compiler)?
>> Is there a log file created (i did not find any, not in /tmp/build/linux and not
>> in /tmp/install/linux).
>>
>>
>> Thanks for any hints,
>> Torsten
>>
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers



-- 
- Campbell


More information about the Bf-committers mailing list