[Bf-committers] Build error

Daniel Salazar - 3Developer.com zanqdo at gmail.com
Sun Jun 24 20:29:41 CEST 2012


O_o ok thank you I will try tomorrow again from scratch

Daniel Salazar
patazstudio.com


On Sun, Jun 24, 2012 at 2:35 AM, Sergey Sharybin <sergey.vfx at gmail.com>wrote:

> Once again, you *do not* need using libraries from svn *at all*, it is much
> easier to compile your
> own libraries on specific linux distro than trying to use libraries
> compiled for much older platforms.
>
> If you will install packages i've told you, you'll be able to compile oiio
> without any problems and
> it'll just work for Blender.
>
> I've already described you why you've got this issues: you're using oiio
> library compiled with
> openjpeg support, but you've got openjpeg disabled in your blender which
> means final linking
> would not take openjpeg into account at all.
>
> So, please stop wasting your own time and ours time and just do the
> following:
>
> 1. Get rid of any libraries from our svn -- on newer distros you *do not*
> need them
> 2. Make sure you've got installed all packages i've mentioned in previous
> mail,
> plus i've just installed openjpeg-devel and blender built with jpeg2k
> support without
> any issues.
> 3. Compile current stable snapshot of oiio -- do not use git snapshot
> because they
> could be just broken
> 4. Remove blender's CMakeCache.txt
> 5. Re-configure blender pointing to your own oiio library as it was shown
> in my
> previous mail.
>
> Again, please just follow this instructions without any creative from your
> side, otherwise
> i wouldn't be able to help you -- it is just impossible to use precompiled
> libraries in a way
> you're trying to use them.
>
> On Sun, Jun 24, 2012 at 7:36 AM, Daniel Salazar - 3Developer.com <
> zanqdo at gmail.com> wrote:
>
> > Well i'm trying to build OIIO downloaded from Git. I solved a boost error
> > in OIIO cmake config by pointing it to the svn boost libs and cmake
> > finishes successfully, however compilation still fails!
> >
> > My cmake configuration is:
> >
> > OPENJPEG_INCLUDE_DIR             /usr/include
> > OPENJPEG_OPENJPEG_LIBRARY        /usr/lib64/libopenjpeg.so
> >
> > and I'm 100% possitive I got:
> >
> > /usr/include/openjpeg.h
> > /usr/lib64/libopenjpeg.so
> >
> > After make I get this:
> >
> > [  1%] Building CXX object
> >
> >
> libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/jpeg2000.imageio/jpeg2000input.cpp.o
> >
> >
> /home/zanqdo/blender/trunk/lib/linux64/oiio/src/jpeg2000.imageio/jpeg2000input.cpp:32:22:
> > fatal error: openjpeg.h: No such file or directory
> > compilation terminated.
> > make[2]: ***
> >
> >
> [libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/jpeg2000.imageio/jpeg2000input.cpp.o]
> > Error 1
> > make[1]: *** [libOpenImageIO/CMakeFiles/OpenImageIO.dir/all] Error 2
> > make: *** [all] Error 2
> >
> > weird!!!
> >
> > Daniel Salazar
> > patazstudio.com
> >
> >
> > On Sat, Jun 23, 2012 at 5:28 PM, Daniel Salazar - 3Developer.com <
> > zanqdo at gmail.com> wrote:
> >
> > > Thanks a lot Sergey, I already had the libs from packman, I'm
> > > downloading a clean source and also deleted my ffmpeg and oiio folders
> > > from the svn libs leaving only boost and ocio from svn
> > >
> > > will report back!
> > >
> > > Daniel Salazar
> > > patazstudio.com
> > >
> > >
> > > On Sat, Jun 23, 2012 at 4:45 PM, Sergey Sharybin <sergey.vfx at gmail.com
> >
> > > wrote:
> > > > Installed OpenSUSE 12.1 and successfully built recent trunk of
> Blender
> > > > there.
> > > >
> > > > All i've done is based on existing documentation of building blender
> > for
> > > > OpenSUSE:
> > > >
> > >
> >
> http://wiki.blender.org/index.php/Dev:2.5/Doc/Building_Blender/Linux/OpenSUSE/CMake
> > > >
> > > > Apparently, there's no FFmpeg in standard OpenSUSE repository, so
> what
> > is
> > > > need is
> > > > to add extra repository:
> > > >
> > > > $ sudo zypper addrepo
> > http://packman.jacobs-university.de/suse/12.1/packman
> > > >
> > > > Then installed all needed dependencies:
> > > >
> > > > $ sudo zypper install subversion gcc gcc-c++ libSDL-devel
> > > openal-soft-devel
> > > > libpng-devel \
> > > >    libjpeg-devel python3-devel libtiff-devel OpenEXR-devel
> boost-devel
> > \
> > > >    python-devel glew-devel cmake
> > > >
> > > > Then it's easier to compile OpenImageIO for this particular distro
> > > > (wouldn't cause any
> > > > issues like non-working jpeg textures which happens on Ubuntu).
> > > >
> > > > Sources of OIIO could be found here:
> > > > https://sites.google.com/site/openimageio/
> > > >
> > > > After download, run in the terminal:
> > > >
> > > > $ tar -xf OpenImageIO-oiio-Release-1.0.6-1-g8088d01.tar.gz
> > > > $ cd OpenImageIO-oiio-8088d01
> > > > $ mkdir build
> > > > $ cd build
> > > > $ cmake \
> > > >        -D CMAKE_BUILD_TYPE=Release \
> > > >        -D CMAKE_INSTALL_PREFIX=/opt/lib/oiio-1.0.6 \
> > > >        -D BUILDSTATIC=ON \
> > > >        -D CMAKE_CXX_FLAGS:STRING="-fPIC" \
> > > >        ../src
> > > > $ make
> > > > $ sudo make install
> > > >
> > > > Then it's needed to clone Blender's svn to somewhere on local
> machine:
> > > >
> > > > $ svn co
> > > https://svn.blender.org/svnroot/bf-blender/trunk/blenderblender-svn
> > > > $ mkdir build-blender
> > > > $ cmake \
> > > >    -D CMAKE_BUILD_TYPE=Release \
> > > >    -D OPENIMAGEIO_ROOT_DIR=/opt/lib/oiio-1.0.6 \
> > > >    ../blender
> > > > $ make install
> > > >
> > > > And voila, ./bin/blender works perfectly.
> > > >
> > > > P.S. OpenJpeg was currently disabled, would check on if it does work
> > and
> > > > why if not tomorrow.
> > > >
> > > > --
> > > > 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
>


More information about the Bf-committers mailing list