OpenimageIO on mac os x

291 views
Skip to first unread message

Sveinbjörn J. Tryggvason

unread,
Mar 17, 2012, 4:40:48 PM3/17/12
to cora...@googlegroups.com
Hi, I was following your excellent instructions on building coral on mac os X except I've run into this wall called OpenimageIO which isn't mentioned in the osx install doc but is in the windows one. From the looks of it it seems that I will have to do some fiddling around with cmake modules and stuff to help cmake find all the stuff it needs (especially since I can't find the 'externals' project mentioned in the OIIO website). How did you guys get OpenimageIO compiling on OsX?

Any tip greatly appreciated.
-Svenni

Dorian FEVRIER

unread,
Mar 17, 2012, 5:09:33 PM3/17/12
to cora...@googlegroups.com
Maybe you are searching for this?



De : Sveinbjörn J. Tryggvason <s...@sjt.is>
À : cora...@googlegroups.com
Envoyé le : Samedi 17 mars 2012 21h40
Objet : [coral-app] OpenimageIO on mac os x

Sveinbjörn J. Tryggvason

unread,
Mar 18, 2012, 3:40:00 AM3/18/12
to cora...@googlegroups.com
No, not really. I think what I meant to ask was if you had problems
getting OpenimageIO working on mac os x?

-svenni

Andrea Interguglielmi

unread,
Mar 18, 2012, 4:22:18 AM3/18/12
to cora...@googlegroups.com
Yes I had a hell of a time trying to compile OpenImageIO, then I forgot how I managed to do that!
I should really create a libraries download pack on the google-code page.
I will send you the library privately.


2012/3/18 Sveinbjörn J. Tryggvason <s...@sjt.is>

Daniele Niero

unread,
Apr 28, 2012, 9:47:05 AM4/28/12
to coral-app
Hey Andrea,

I need that too.

At the current stage the instruction of building Coral on Mac are
incomplete...
I also had hard time in compiling ilmBase and I haven't succeed in
compiling the whole OpenEXR yet...

Daniele

On Mar 18, 10:22 am, Andrea Interguglielmi
<ainterguglie...@googlemail.com> wrote:
> Yes I had a hell of a time trying to compile OpenImageIO, then I forgot how
> I managed to do that!
> I should really create a libraries download pack on the google-code page.
> I will send you the library privately.
>
> 2012/3/18 Sveinbjörn J. Tryggvason <s...@sjt.is>
>
>
>
>
>
>
>
> > No, not really. I think what I meant to ask was if you had problems
> > getting OpenimageIO working on mac os x?
>
> > -svenni
>
> > On Sat, Mar 17, 2012 at 9:09 PM, Dorian FEVRIER <fevrier.dor...@yahoo.fr>

Marco Godinho

unread,
Apr 28, 2012, 12:15:24 PM4/28/12
to cora...@googlegroups.com
Hi Daniele,

I was also getting a hard time until I followed this to build OIIO
http://openimageio.org/wiki/index.php?title=Checking_out_and_building_OpenImageIO

For a complete guide on coral I followed the linux guide
http://code.google.com/p/coral-repo/source/browse/build_coralStandalone.wiki?spec=svn.wiki.366fb97b612870f28777886a70e5c354120ba985&repo=wiki&r=366fb97b612870f28777886a70e5c354120ba985

Hope this helps.

Cheers,
Marco
--
Marco Godinho
_____________________
macgio.com
dtcreatures.blogspot.com

Daniele Niero

unread,
Apr 28, 2012, 1:33:16 PM4/28/12
to cora...@googlegroups.com
Thanks Marco,

I managed to build all the dependencies, however when I try to start coral I get this error:

Traceback (most recent call last):
  File "/Users/danieleniero/Documents/Programming/coral-repo/coral/build/coralStandaloneBuild/launchApp.py", line 31, in <module>
    from coral.coralUi import coralUi
  File "/Users/danieleniero/Documents/Programming/coral-repo/coral/build/coralStandaloneBuild/coral/coralUi/__init__.py", line 30, in <module>
    from _coralUi import *
ImportError: dlopen(/Users/danieleniero/Documents/Programming/coral-repo/coral/build/coralStandaloneBuild/coral/coralUi/_coralUi.so, 2): Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /usr/local/lib/libjpeg.8.dylib
 in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO

I imagine that the error could come from one of these reason:
OIIO should work with libjpeg.6
I used OIIO 1.0 and not 0.10
I used python 2.7

I will try first with libjpeg and I will see.

Sure the Doc building must be corrected, both the effort to get all the dependencies right and build Coral is more than enough to demotivate anyone interested in it, and this is a shame because Coral and Andrea deserve better.

- Daniele

Daniele Niero

unread,
Apr 28, 2012, 4:09:11 PM4/28/12
to cora...@googlegroups.com
Ok it turned out that Coral and all its dependencies (and the dependencies of the dependencies) where all well compiled, but for some reasons I had to set up an the pre-launch environment quite differently from what the Wiki says...

if I only export these paths it works:


#!/bin/sh
BASEDIR=$(dirname $0)
echo BASEDIR is $BASEDIR

export CORAL_STANDALONE_HOME=$BASEDIR

export IMAGEIO_LIBRARY_PATH="/usr/local/OpenImageIO/lib"
export DYLD_LIBRARY_PATH=$IMAGEIO_LIBRARY_PATH:$DYLD_LIBRARY_PATH

export DYLD_LIBRARY_PATH=$CORAL_STANDALONE_HOME"/coral":$DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$CORAL_STANDALONE_HOME"/coral/coralUi":$DYLD_LIBRARY_PATH

python $CORAL_STANDALONE_HOME"/"launchApp.py


Obviously, I want to try to work a little bit and see if nothing breaks at runtime, but Coral starts now.
If everything will be fine I will be happy to report that Coral works with OpenImageIO 1.0 which compiles and installs on Mac like a charm... but let's wait a couple of days...

If I will not find errors I will try to find the time to update the wiki and write a detailed guide of how compile Coral on Mac OSX Lion

Cheers,
    DAniele
Reply all
Reply to author
Forward
0 new messages