Opened 13 years ago

Closed 12 years ago

#33395 closed defect (fixed)

qt4-mac @4.7.4_1+quartz libpng error

Reported by: pcrackenberg@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: michaelld (Michael Dickens), ryandesign (Ryan Carsten Schmidt), waqar@…
Port: libpng, qt4-mac

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I got a libpng error, as mentioned on the FAQ here: wiki:ProblemHotlist#libpng

This was the following error I got after installing py27-pyqt4 and the required dependencies:

Traceback (most recent call last):
  File "QtEvent.pyw", line 15, in <module>
    from PyQt4.QtGui import *
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/QtGui.so, 2): Library not loaded: /opt/local/lib/libpng12.0.dylib
  Referenced from: /opt/local/lib/libQtGui.4.dylib
  Reason: image not found

Forcing an upgrade (as stated in the FAQ) for py27-pyqt4, python27, and libpng didn't work, however forcing an upgrade for qt4-mac fixed the problem.

Change History (3)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: michaelld@… ryandesign@… waqar@… added
Description: modified (diff)
Port: libpng qt4-mac added

I cannot explain why your qt4-mac was not already linked with libpng 1.4, since libpng was updated to 1.4 over a year ago in r75159 and qt4-mac received a revbump at the same time. So I do not know what action we could now take to improve the situation.

comment:2 in reply to:  1 Changed 13 years ago by pcrackenberg@…

Replying to ryandesign@…:

I cannot explain why your qt4-mac was not already linked with libpng 1.4, since libpng was updated to 1.4 over a year ago in r75159 and qt4-mac received a revbump at the same time. So I do not know what action we could now take to improve the situation.

I did control+c qt4-mac the first time I installed it, since I thought it had froze from inactivity. Running it again on verbose mode, though, told me that it wasn't. No clue if that might muck up things or not. I'd never installed Macports before, so I can't imagine I had something old on my system.

Feel free to close out the ticket if there's nothing for you to do, the FAQ just said to file one, so I did. :)

comment:3 Changed 12 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

There's a new qt4-mac and py27-pyqt4 out, which should fix this issue. I'm closing this ticket as fixed. Please open a new ticket with the relevant new info if the problem persists after doing

sudo port selfupdate
sudo port upgrade outdated
Note: See TracTickets for help on using tickets.