#18724 closed defect (invalid)
qt4-mac @4.4.3_1 QtGui lib missing
Reported by: | martin@… | Owned by: | erickt@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | Cc: | clubjuggler@…, MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) | |
Port: | qt4-mac |
Description (last modified by raimue (Rainer Müller))
lastest gnunet-qt frontend doesn't compile, cause it's looking for QtGui library, but latest macports build creates QtGui_debug libs ->
XYZ:~ hexa$ port installed qt4-mac The following ports are currently installed: qt4-mac @4.4.3_1 (active) XYZ:~ hexa$ pkg-config --libs QtGui No package 'QtGui' found hexa$ pkg-config --libs QtGui_debug -F/opt/local/libexec/qt4-mac/lib -framework QtGui -framework Carbon -framework AppKit -framework QtCore -framework ApplicationServices -L/opt/local/lib -L/opt/local/lib/mysql5/mysql -L/opt/local/lib/postgresql83 -L/opt/local/libexec/qt4-mac/lib -lpng -lz -lm
i have had to manually add that /opt/local/libexec/qt4-mac to my $PATH now it detects moc but still no qtgui lib
/opt/local/lib/pkgconfig/QtGui_debug.pc exists, but QtGui.pc is only at /opt/local/libexec/qt4-mac/lib/pkgconfig/QtGui.pc
as a workaround, you can export PKG_CONFIG_PATH=/opt/local/libexec/qt4-mac/lib/pkgconfig/
Change History (8)
comment:1 Changed 16 years ago by raimue (Rainer Müller)
Cc: | clubjuggler@… added |
---|---|
Description: | modified (diff) |
Owner: | changed from macports-tickets@… to erickt@… |
Port: | qt4-mac added |
comment:2 Changed 16 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Cc: | mcalhoun@… added |
---|
comment:3 Changed 16 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
This was an intentional choice to avoid conflict with qt4-x11.
The reason QtGui_debug is there is because qt4-x11 has no such file (so no conflict).
I am not sure how gnunet-qt builds.
Often, setting the environmental variable
QTDIR=${prefix}/libexec/qt4-mac
will work.
With cmake, I believe setting the configuration argument
-DQT_QMAKE_EXECUTABLE=${prefix}/libexec/qt4-mac/bin/qmake
also works.
Do either of these allow you to compile gnunet-qt?
comment:4 Changed 16 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Do the previous suggestions allow this ticket to be closed?
comment:6 follow-up: 7 Changed 16 years ago by martin@…
I was able to compile it like this: export PKG_CONFIG_PATH=/opt/local/libexec/qt4-mac/lib/pkgconfig export PATH=$PATH:/opt/local/libexec/qt4-mac/bin ./configure --prefix=/usr/local --with-extractor=/opt/local
And it detected qt, also compiled it.
The "problem" still remains: Brokenness in macports Qt is that they install pkgconfig .pc files in /opt/local/lib/pkgconfig and the place under libexec. But the /opt/local/lib/pkgconfig path gets only the debug versions for some bizarre reason.
comment:7 Changed 16 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Replying to martin@…:
I was able to compile it like this: export PKG_CONFIG_PATH=/opt/local/libexec/qt4-mac/lib/pkgconfig export PATH=$PATH:/opt/local/libexec/qt4-mac/bin ./configure --prefix=/usr/local --with-extractor=/opt/local
And it detected qt, also compiled it.
I am glad it works.
The "problem" still remains: Brokenness in macports Qt is that they install pkgconfig .pc files in /opt/local/lib/pkgconfig and the place under libexec. But the /opt/local/lib/pkgconfig path gets only the debug versions for some bizarre reason.
Please seem above for an explanation for why this is not broken but a design choice.
Cc Me!