On Thu, November 19, 2015 5:57 am, Max Horn wrote: > Hi there, > > so I was trying to update wireshark to 2.0.0, which means finally bitting > the bullet and using qt5 for it. Turns out the pkgconfig .pc files for qt5 > are all broken ?! They contain this: > > Libs: -F${libdir} '-Wl,-framework,QtCore ' > Cflags: -I${included}/QtCore -I${includedir} > > But those Cflags are wrong, as > /sw/lib/qt5-mac/include/ > does not contain QtFOO directories (where FOO = Core, GUI, MacExtras, ...) > > The easiest fix I can think of is to augment all those packages to add > symlinks from > %p/lib/qt5-mac/include/QtNAME > to > %p/lib/qt5-mac/lib/QtNAME.framework/Headers
Better solution is to fix the .pc files to have the correct Cflags pointing to the correct headers dir (otherwise packages will get stuck on expecting the symlink). How does Wireshark #include headers? #include <QtCore/QtCore> or just <QtCore> ? If I remember -I and -F usage correctly, "Cflags: -F/sw/lib/qt5-mac/lib" should be sufficient for <QtCore/Qtcore> instances. For <QtCore> uses, it'll probably have to be appended with "-I/sw/lib/qt5-mac/lib/QtCore.framework/Headers" as well. Hanspeter -- More agile than a turtle, stronger than a mouse, nobler than a lettuce ------------------------------------------------------------------------------ _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel