Opened 9 years ago

Closed 9 years ago

#37662 closed defect (fixed)

qt4-mac QtGui resources

Reported by: chris.pike@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: qt4-mac


QtGui resources installed in /opt/local/ /opt/local/lib/libQtGui.dylib

The location of QtGui framework resources (qt_menu.nib) cannot be obtained using pkg-config, due to the way that /opt/local/lib/libQtGui.dylib links to /opt/local/Library/Frameworks/QtGui.framework/QtGui. A script I have to create an .app bundle, which uses Qt GUI resources, fails with a Mac Ports install of Qt because qt_menu.nib cannot be found in the usual way. It looks in /opt/local/lib/Resources instead of /opt/local/Library/Frameworks/QtGui.framework/Resources. Can this be fixed somehow?

Attachments (1)

qt4-mac-Resources-fix.diff (668 bytes) - added by michaelld (Michael Dickens) 9 years ago.

Download all attachments as: .zip

Change History (7)

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

Owner: changed from macports-tickets@… to michaelld@…

comment:2 Changed 9 years ago by michaelld (Michael Dickens)

Can you post your script, so I have a better understanding?

comment:3 Changed 9 years ago by chris.pike@…

I am installing the SoundScape Renderer project ( - version 0.3.4. I followed the procedure outlined here:

When building an application bundle:

./configure JACK_LIBS="-L/usr/local/lib -ljack" JACK_CFLAGS=-I/usr/local/include/jack --enable-app-bundle
make dmg

It fails with error:

cp -r /opt/local/lib/Resources/qt_menu.nib /Users/chrisp/Documents/Code/BBC/SpatialAudio/ssr-0.3.4-bbc/MacOSX-App-Bundle/SoundScapeRenderer-0.3.4/
cp: /opt/local/lib/Resources/qt_menu.nib: No such file or directory

This error occurs when the Makefile is copying the QtGui resources across into the .app bundle. The instruction to perform this step is at path/to/ssr-0.3.4/data/MacOSX/

cp -r $(QTLIBDIR)/Resources/qt_menu.nib $(DESTDIR)$(pkgdatadir)/

and QTLIBDIR is obtained from pkg-config (path/to/ssr-0.3.4/

QTLIBDIR=`$PKG_CONFIG --variable=libdir QtGui`

comment:4 Changed 9 years ago by michaelld (Michael Dickens)

I see; let me look into this a bit.

Changed 9 years ago by michaelld (Michael Dickens)

Attachment: qt4-mac-Resources-fix.diff added

comment:5 Changed 9 years ago by michaelld (Michael Dickens)

I just attached a patch to the qt4-mac Portfile which I think will fix this issue. I'll try to get qt4-mac (re)built over the weekend so I can test the "destroot" phase, which is where this change takes place. You can also test this patch, if you want to.

comment:6 Changed 9 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

Done in r102010.

Note: See TracTickets for help on using tickets.