OS X don’t set DYLD_LIBRARY_PATH

If your getting errors like the below, then most likely you set your DYLD_LIBRARY_PATH, which causes a lot of problems.

dyld: 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: /opt/local/lib/libJPEG.dylib
 
Trace/BPT trap

I set the DYLD_LIBRARY_PATH path, as the macports install instructions said to do so, or at least it use to.
I was trying to compile mythtv and I got an error like the above, when it was running moc, which is provided by qt. That program nor some other programs will work if you set that variable. The solution is simple, comment out the “export DYLD_LIBRARY_PATH=/usr/local/lib:$QTDIR/lib”, in your .bash_profile folder, open a terminal and type nano .bash_profile, in your home directory.

Then run the below command:

export DYLD_LIBRARY_PATH=""

Or just restart the terminal after you comment out the “export DYLD_LIBRARY_PATH=/usr/local/lib:$QTDIR/lib” line in your .bash_profile file.
If you don’t have a .bash_profile file, then it might be .profile.

Oh yeah and I never got mythtv to compile on leopard, I gave up. But to save yourself some trouble, you can download a qt3 intel installer here. Which was compiled on leopard, it will be installed in /opt/local. You will probably need to set the variable QTDIR to /opt/local, so you can compile programs that need qt3.

export QTDIR=/opt/local

You can also add that to your .bash_profile file.

I found the information about DYLD_LIBRARY_PATH here. Google actually found that for me, thanks google.

If you don’t want to use the installer for qt3, then you can find information on compiling qt3 here.

Share and Enjoy:
  • Digg
  • Reddit
  • del.icio.us
  • Google Bookmarks
  • Facebook
  • MySpace
  • Add to favorites
  • StumbleUpon
  • Twitter
  • Yahoo! Bookmarks

Related posts:

  1. OS X stream videos and music to the xbox 360 with fuppes
  2. Mythtfrontend 0.20.2
  3. Leopard is cool
  4. Mythtv is easy to setup in ubuntu feisty
  5. I want StarCraft 2!
This entry was posted in Uncategorized and tagged , , , , , , , , , . Bookmark the permalink.



Comments are closed.