Solving library conflict with the installer of GStreamer for OSX   1 comment

In a post from a while ago, I mentioned an “experimental” installer of gstreamer for OSX. Some people found that libraries bundled with the installer (libiconv.2.dylib in particular) conflicted with versions of the same libraries deployed by other applications. Brad Borevitz just suggested a hack to remedy this issue. As with any hack, no responsibilities are taken for unexpected/undesired effects:-)

The GStreamer installer adds the following two lines to the file /etc/launchd.conf:

setenv DYLD_LIBRARY_PATH “/Library/GStreamer/lib”
setenv GST_PLUGIN_PATH “/Library/GStreamer/lib/gstreamer-0.10″

Basically, this tells the applications where to look for gstreamer library and plugin files. The problem is that some applications need a library called libiconv.2.dylib, which comes as part of the GStreamer installation in the /Library/GStreamer/lib folder. But the GStremer version of this library might be incompatible with the version required by some apps, such as VLC or or CarbonCopyCloner.

The solution is to add to DYLD_LIBRARY_PATH the alternate folders where other versions of libiconv.2.dylib can be found in the system:

setenv DYLD_LIBRARY_PATH /Library/Frameworks:/Network/Library/Frameworks:/System/Library/Frameworks /Library/Frameworks:/Network/Library/Frameworks:/System/Library/Frameworks/System/Library/Frameworks:$(HOME)/lib:/usr/local/lib:/lib:/usr/lib:/Library/GStreamer/lib

with the GStreamer folder in the last place. Thanks to Brad for pointing out this tip!


Posted April 18, 2010 by ac in Software

Tagged with , , , , ,

One response to “Solving library conflict with the installer of GStreamer for OSX

Subscribe to comments with RSS.

  1. Pingback: GSVideo 0.7 « codeanticode

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: