New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #18724 (closed defect: invalid)

Opened 4 years ago

Last modified 4 years ago

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@…, mcalhoun@…
Port: qt4-mac

Description (last modified by raimue@…) (diff)

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

comment:1 Changed 4 years ago by raimue@…

  • Cc clubjuggler@… added
  • Owner changed from macports-tickets@… to erickt@…
  • Description modified (diff)
  • Port set to qt4-mac

comment:2 Changed 4 years ago by mcalhoun@…

  • Cc mcalhoun@… added

Cc Me!

comment:3 Changed 4 years ago by mcalhoun@…

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 4 years ago by mcalhoun@…

Do the previous suggestions allow this ticket to be closed?

comment:5 Changed 4 years ago by martin@…

Please give me some time for testing.

comment:6 follow-up: ↓ 7 Changed 4 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 in reply to: ↑ 6 Changed 4 years ago by mcalhoun@…

  • Status changed from new to closed
  • Resolution set to invalid

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.

comment:8 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.