Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123240 - Feature request: Qt for native Aqua
Summary: Feature request: Qt for native Aqua
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All Other
: High enhancement (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-18 01:35 UTC by Dirk Schoenberger
Modified: 2007-03-18 14:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
preliminary ebuild, very basic, no dependencies (qt-mac-3.3.5.ebuild,368 bytes, patch)
2006-02-18 01:42 UTC, Dirk Schoenberger
Details | Diff
'working' ebuild (qt-mac-3.3.5.ebuild,678 bytes, text/plain)
2006-02-18 08:19 UTC, Fabian Groffen
Details
configure patch (qt-mac-3.3.5-configure.patch,412 bytes, patch)
2006-02-18 08:21 UTC, Fabian Groffen
Details | Diff
w00t! (Afbeelding 1.png,89.92 KB, image/png)
2006-02-18 10:24 UTC, Fabian Groffen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schoenberger 2006-02-18 01:35:57 UTC
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?)
Comment 1 Fabian Groffen gentoo-dev 2006-02-18 01:42:30 UTC
is this the same ebuild as you gave me? (and I gave back to you?)
Comment 2 Dirk Schoenberger 2006-02-18 01:42:41 UTC
Created attachment 80070 [details, diff]
preliminary ebuild, very basic, no dependencies
Comment 3 Fabian Groffen gentoo-dev 2006-02-18 03:16:14 UTC
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.
Comment 4 Dirk Schoenberger 2006-02-18 03:52:39 UTC
> % 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)
Comment 5 Fabian Groffen gentoo-dev 2006-02-18 03:59:22 UTC
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...
Comment 6 Fabian Groffen gentoo-dev 2006-02-18 04:03:24 UTC
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"
Comment 7 Fabian Groffen gentoo-dev 2006-02-18 04:07:17 UTC
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.
Comment 8 Fabian Groffen gentoo-dev 2006-02-18 08:19:55 UTC
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.
Comment 9 Fabian Groffen gentoo-dev 2006-02-18 08:21:04 UTC
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".
Comment 10 Fabian Groffen gentoo-dev 2006-02-18 10:24:42 UTC
Created attachment 80115 [details]
w00t!

This is really amazing!  It looks a bit like Aqua, and it works fairly fast.
Comment 11 Fabian Groffen gentoo-dev 2007-03-18 14:31:24 UTC
a native aqua version of QT is in the prefix tree