[Bf-committers] Replacement for pre-compiled Linux libraries

Bastien Montagne montagne29 at wanadoo.fr
Tue Nov 13 19:05:38 CET 2012


Yes, already added WITH_CODEC_FFMPEG=ON...

@Julien: escaped the '/' in char class, should work now!

On 13/11/2012 18:50, Julien Duroure wrote:
> Works now for me on ubuntu 12.04 ( merci Bastien ! ), except for displaying
> flags to set :
>
> If you're using CMake add this to your configuration flags:
>    -D WITH_CODEC_FFMPEG=ON
>    -D FFMPEG=/opt/lib/ffmpeg
> awk: line 1: regular expression compile failed (bad class -- [], [^] or [)
> .*lib([^
> awk: line 1: syntax error at or near ]
> awk: line 1: extra ')'
>    -D FFMPEG_LIBRARIES='avformat;avcodec;avutil;avdevice;swscale;'
>
> Regards,
>
>
> On Tue, Nov 13, 2012 at 6:37 PM, Sergey Sharybin<sergey.vfx at gmail.com>wrote:
>
>> Linking errors should have been solved with recent Bastien's commit which
>> should make script displaying extra libraries blender should be linked
>> against (using FFMPEG_LIBRARIES for cmake nd something familiar for scons).
>>
>> Perhaps you're right with with suggesting set -DWITH_FFMPEG to truth.
>>
>> as per "temporary" src. I don't actually have strong opinion here. The only
>> thing with more permanent storage is that it helps a lot debugging script
>> by avoiding downloading packages on every run. But perhaps we can make it
>> indeed move it to /tmp when the script is stable.
>>
>>
>> On Tue, Nov 13, 2012 at 10:26 PM, Xavier Thomas<
>> xavier.thomas.1980 at gmail.com>  wrote:
>>
>>> Also it created a (temporary?) "src" directory in my user home an left it
>>> there.
>>> Maybe using /tmp is better,  what is I already had a src directory in my
>>> home?
>>>
>>>
>>> 2012/11/13 Xavier Thomas<xavier.thomas.1980 at gmail.com>
>>>
>>>> Hello,
>>>>
>>>> The dependencies build fine on Debian with apt pinning but mostly
>>> testing.
>>>> Some problems though:
>>>>
>>>> First, after compiling the dependencies it suggest:
>>>> If you're using CMake add this to your configuration flags:
>>>>    -D FFMPEG=/opt/lib/ffmpeg
>>>> If you're using SCons add this to your user-config:
>>>> BF_OCIO='/opt/lib/ocio'
>>>> BF_FFMPEG='/opt/lib/ffmpeg'
>>>>
>>>> I didn't test with scons but the cmake suggestion does not changes
>>>> anything unless WITH_FFMPEG is already set in the cmake cache.
>>>>
>>>>
>>>> Second, after compiling blender it gives linking errors:
>>>> Linking CXX executable ../../bin/blender
>>>> /opt/lib/ffmpeg/lib/libavcodec.a(libmp3lame.o): In function
>>>> `encode_frame_float':
>>>> /home/xavier/src/blender-deps/ffmpeg-1.0/libavcodec/libmp3lame.c:192:
>>>> undefined reference to `lame_encode_buffer_float'
>>>> ....
>>>>
>>>> The list of errors is huge but just undefined references for all
>>> functions
>>>> of libmp3lame, libschroedinger, libtheora, libvpx, libx264 and
>> libvxvid.
>>>> Of course all the *-dev packages are installed on my system.
>>>>
>>>> Xavier
>>>>
>>>>
>>>> 2012/11/13 Sergey Sharybin<sergey.vfx at gmail.com>
>>>>
>>>>> I've made some tweaks to the script, so now dependencies should be
>>>>> compiling fine for openSuSE.
>>>>>
>>>>>
>>>>> On Tue, Nov 13, 2012 at 12:28 PM, Bastien Montagne<
>>> montagne29 at wanadoo.fr
>>>>>> wrote:
>>>>>> Fixed the issue with boost (note you'll have to erase your
>>>>>> opt/lib/boost-1.51.0 dir before re-running the script).
>>>>>>
>>>>>> There is also a problem with downloaded OIIO lib. You have to edit
>>>>>> ~/src/blender-deps/OpenImageIO-1.1.0/src/libutil/SHA1.cpp to move
>> the
>>>>>> '#include "SHA1.h"' line in first position, else you'll get stupid
>>>>>> lining errors...
>>>>>>
>>>>>> On 12/11/2012 23:27, Julien Duroure wrote:
>>>>>>> Hi Sergey,
>>>>>>>
>>>>>>> On my Ubuntu 12.04 LTS, 64 bits, I have a problem during OIIO
>>>>>> compilation :
>>>>>>> running cmake -E copy
>>>>>>> /home/ju/src/blender-deps/OpenImageIO-1.1.0/src/../LICENSE
>>>>>>> /home/ju/src/blender-deps/OpenImageIO-1.1.0/build/License.txt 2>&1
>>>>>>> running cmake -E copy
>>>>>>> /home/ju/src/blender-deps/OpenImageIO-1.1.0/src/../README.rst
>>>>>>> /home/ju/src/blender-deps/OpenImageIO-1.1.0/build/Readme.rst 2>&1
>>>>>>> CMake Error: The following variables are used in this project, but
>>>>> they
>>>>>> are
>>>>>>> set to NOTFOUND.
>>>>>>> Please set them or make sure they are set and tested correctly in
>>> the
>>>>>> CMake
>>>>>>> files:
>>>>>>> Boost_INCLUDE_DIR (ADVANCED)
>>>>>>>      used as include directory in directory
>>>>>>> /home/ju/src/blender-deps/OpenImageIO-1.1.0/src
>>>>>>>      used as include directory in directory
>>>>>>> /home/ju/src/blender-deps/OpenImageIO-1.1.0/src/libOpenImageIO
>>>>>>>      used as include directory in directory
>>>>>>> /home/ju/src/blender-deps/OpenImageIO-1.1.0/src/iconvert
>>>>>>>      used as include directory in directory
>>>>>>> /home/ju/src/blender-deps/OpenImageIO-1.1.0/src/idiff
>>>>>>>      used as include directory in directory
>>>>>>> /home/ju/src/blender-deps/OpenImageIO-1.1.0/src/igrep
>>>>>>>      used as include directory in directory
>>>>>>> /home/ju/src/blender-deps/OpenImageIO-1.1.0/src/iinfo
>>>>>>>      used as include directory in directory
>>>>>>> /home/ju/src/blender-deps/OpenImageIO-1.1.0/src/maketx
>>>>>>>      used as include directory in directory
>>>>>>> /home/ju/src/blender-deps/OpenImageIO-1.1.0/src/oiiotool
>>>>>>>      used as include directory in directory
>>>>>>> /home/ju/src/blender-deps/OpenImageIO-1.1.0/src/testtex
>>>>>>>      used as include directory in directory
>>>>>>> /home/ju/src/blender-deps/OpenImageIO-1.1.0/src/iv
>>>>>>>      used as include directory in directory
>>>>>>> /home/ju/src/blender-deps/OpenImageIO-1.1.0/src/include
>>>>>>>      used as include directory in directory
>>>>>>> /home/ju/src/blender-deps/OpenImageIO-1.1.0/src/doc
>>>>>>>
>>>>>>> -- Configuring incomplete, errors occurred!
>>>>>>>
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Julien
>>>>>>>
>>>>>>> On Mon, Nov 12, 2012 at 8:49 PM, Sergey Sharybin<
>>> sergey.vfx at gmail.com
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I was working on a script which is aimed to install/build all
>>>>>>>> the dependencies needed by Blender. It should make it easier from
>>>>>>>> maintaince point of view than current libraries from the svn.
>>>>>>>>
>>>>>>>> I've tested the script using Fedora 14, 17 and Ubuntu 10.04,
>> 12.10.
>>>>>> Looks
>>>>>>>> like this script installs all needed dependencies from the report
>>> and
>>>>>>>> builds missing ones. However, it's not so nice to build Blender
>> in
>>> a
>>>>>>>> virtual machine, so could not guarantee there's no linking errors
>>>>>> happens
>>>>>>>> in the end.
>>>>>>>>
>>>>>>>> I would ask actual users of this platforms to check if the script
>>>>>> behaves
>>>>>>>> properly and let me know if there're issues with the script. But
>>>>> please,
>>>>>>>> don't use bug tracker for this reports.
>>>>>>>>
>>>>>>>> This script is placed in
>>>>> build_files/build_environment/install_deps.sh.
>>>>>>>> One more thing i would need help with is updating wiki pages
>> around
>> http://wiki.blender.org/index.php/Dev:2.5/Doc/Building_Blender/Linux(think
>>>>>>>> we'll need to mention the script there when it'll be considered
>>> 100%
>>>>>> ready)
>>>>>>>> Also, i would like to zap precompiled libraries to the end of
>> this
>>>>> week
>>>>>> if
>>>>>>>> the script will work nicely.
>>>>>>>>
>>>>>>>> --
>>>>>>>> With best regards, Sergey Sharybin
>>>>>>>> _______________________________________________
>>>>>>>> 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
>>>>>>>
>>>>>> _______________________________________________
>>>>>> Bf-committers mailing list
>>>>>> Bf-committers at blender.org
>>>>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> With best regards, Sergey Sharybin
>>>>> _______________________________________________
>>>>> 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
>>>
>>
>>
>> --
>> With best regards, Sergey Sharybin
>> _______________________________________________
>> 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
>



More information about the Bf-committers mailing list