Making VbrFixQt4 Work on OSX When It Can’t Find Libraries…

So, I’ll give the short explanation now since I’m short on time, but I may come back later to expand on things… Basically, the app was looking for libpng in a random place and wasn’t finding it, and so wouldn’t run at all! The install image only contained Qt (as it should, since libpng is already on here in at least one place. I have fink installed with its /sw directory so I used the libpng located there…).

Initially I tried actually editing the vbrfixqt4 binary with a hexeditor to tell it where to look, but once I fixed that it was the Qtgui framework that gave the libpng error… So rather than go messing around with a hex editor in the /Library directory, I decided to just make a symbolic link.

So… My libpng library was located at /sw/lib/libpng.3.dylib (which actually was a link to libpng.3.1.2.8.dylib, but I kept things simple and just used libpng.3, which also protects against future upgrades of libpng3 breaking things.)

So first I made the directory it was looking for:
mkdir /opt
mkdir /opt/local
mkdir /opt/local/lib

Then, create the link.

cd /opt/local/lib
ln -s /sw/lib/libpng.3.dylib

Done! Now everything works fine!
This should also work if you link to the OSX libpng library, which you can find using spotlight. I found one in something called the Mono framework, which I didn’t really investigate, but I suppose could be part of OSX? (Since OSX has native png support? I’m in over my head here…)

But anyways, now the app works!

Some relevant links:
Vbrfix
Fink
Fink Commander (Fink GUI Frontend)

1 Response to “Making VbrFixQt4 Work on OSX When It Can’t Find Libraries…”


  1. 1 Manny Holy UNITED STATES Mac OS X Mozilla Firefox 2.0.0.2

    Hello,

    I’ve been trying to get VbrFixQt4 to work for a couple of hours. I just found this entry.

    I am trying to follow your instructions. However, I can’t find libpng.

    I tried searching for it but did not find it. I even searched for invisible files.

    I am running OS 10.4.9 . I do not have and don’t want Fink installed.

    Can you please help me figure out how to get VbrFixQt4 working.

    Thanks,
    Manny

Comments are currently closed.





FireStats icon Powered by FireStats