It would be nice if Qt could be supported natively for Aqua, instead of just for X11 (x11-libs/qt) The attached ebuild can be used to buil qt-mac-free 3.3.5 There seem to be left some compilation issues (possible in regards to an already existing resp. already removed X11 Qt) , and it currently seem to be to not install any binaries. The latter my be related to the fact that I tried with abolute paths (emerge qt-mac-free-3.3.5.ebuild) If this is implemented, it possibly needs a new category (apple-libs?)
is this the same ebuild as you gave me? (and I gave back to you?)
Created attachment 80070 [details, diff] preliminary ebuild, very basic, no dependencies
cd designer && make -f Makefile /private/var/tmp/portage/qt-mac-3.3.5/work/qt-mac-free-3.3.5/bin/uic -L /private/var/tmp/portage/qt-mac-3.3.5/work/qt-mac-free-3.3.5/plugins listboxeditor.ui -o listboxeditor.h dyld: Library not loaded: libqt.3.dylib Referenced from: /private/var/tmp/portage/qt-mac-3.3.5/work/qt-mac-free-3.3.5/bin/uic Reason: image not found It's a runtime problem it seems. The uic utility seems to need it, but the runtime linker can't find it. % otool -L /private/var/tmp/portage/qt-mac-3.3.5/work/qt-mac-free-3.3.5/bin/uic /private/var/tmp/portage/qt-mac-3.3.5/work/qt-mac-free-3.3.5/bin/uic: libqt.3.dylib (compatibility version 3.3.0, current version 3.3.5) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0) /System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.3.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.5) % find . -name "libqt.3.dylib" ./lib/libqt.3.dylib For me it helps to set DYLD_LIBRARY_PATH to the lib dir, it is compiling again now... will lateron add modified ebuild.
> % otool -L /private/var/tmp/portage/qt-mac-3.3.5/work/qt-mac-free-3.3.5/bin/uic > /private/var/tmp/portage/qt-mac-3.3.5/work/qt-mac-free-3.3.5/bin/uic: > libqt.3.dylib (compatibility version 3.3.0, current version 3.3.5) This is strange. Most of the references should be absolute paths, don't they. On my system Qt-Mac compiles, but I have an installed qt-x11 (/usr/qt/3/bin, /usr/qt/3/lib) Perhaps Qt-Mac find these libraries? (as long as no GUI window is opened, possibly no X connection is needed)
The Qt library is now built in ./lib The Qt examples are built in the directories in ./examples The Qt tutorials are built in the directories in ./tutorial Enjoy! - the Trolltech team :) If you have it installed, it might be, yes, because the default DYLD_LIBRARY_PATH will include those paths...
it seems that the examples only run if I set the DYLD_LIBRARY_PATH correctly pointing to the lib dir. I guess I should look into "make install"
ok, reading the INSTALL file (should have done earlier I guess) they mention the DYLB_LIBRARY_PATH hack I applied as necessary. Point 6 in there also mentions this: ln -sf $QTDIR/lib/libqt.3.dylib /usr/lib ln -sf $QTDIR/lib/libqui.1.dylib /usr/lib and that seems to be *all* to get QT installed! We'll see.
Created attachment 80107 [details] 'working' ebuild This is my ebuild. Did some code sniffing. Should install binaries now (still smoking my CPU out a.t.m.) Also grap the patch I will add after this one.
Created attachment 80108 [details, diff] configure patch small patch against configure, so it continues on 'invalid command line switches' so we can "just use econf".
Created attachment 80115 [details] w00t! This is really amazing! It looks a bit like Aqua, and it works fairly fast.
a native aqua version of QT is in the prefix tree