Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#13208 closed defect (fixed)

qt3-mac fails to build on Mac OS X 10.5 Leopard

Reported by: levi@… Owned by: blair (Blair Zajac)
Priority: Normal Milestone:
Component: ports Version: 1.5.1
Keywords: Cc: C.Chryssochoidis@…, leo.studer@…, mac@…, miranda@…, mf2k (Frank Schima)
Port: qt3-mac

Description

The native aqua version of Qt does not support Mac OS 10.5. A patch that allows it to compile is available from: http://fink.cvs.sourceforge.net/*checkout*/fink/dists/10.4/unstable/main/finkinfo/graphics/qt3mac.patch2

Attachments (2)

Portfile-qt3-mac.diff (421 bytes) - added by czhang.web@… 11 years ago.
qt3-leopard.diff (3.0 KB) - added by czhang.web@… 11 years ago.

Download all attachments as: .zip

Change History (19)

comment:1 Changed 11 years ago by nox@…

Cc: blair@… added
Milestone: MacPorts 1.5Port Bugs
Summary: qt3-mac does not support leopardqt3-mac fails to build on Mac OS X 10.5 Leopard

comment:2 in reply to:  description Changed 11 years ago by macports@…

Replying to levi@levidurham.com:

The native aqua version of Qt does not support Mac OS 10.5. A patch that allows it to compile is available from: http://fink.cvs.sourceforge.net/*checkout*/fink/dists/10.4/unstable/main/finkinfo/graphics/qt3mac.patch2

After manually patching the relevant parts there is still a problem. I'm on Leopard with XCode 3.0 (4176):


cd designer && make -f Makefile /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/bin/uic -L /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/plugins listboxeditor.ui -o listboxeditor.h dyld: Library not loaded: libqt-mt.3.dylib

Referenced from: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/bin/uic Reason: image not found

make[3]: * [listboxeditor.h] Trace/BPT trap make[2]: * [sub-designer] Error 2 make[1]: * [sub-designer] Error 2 make: * [sub-tools] Error 2

Error: Status 1 encountered during processing.

bash-3.2# otool -L /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/bin/uic /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/bin/uic:

libqt-mt.3.dylib (compatibility version 3.3.0, current version 3.3.8) /opt/local/lib/libmng.1.dylib (compatibility version 2.0.0, current version 2.0.0) /opt/local/lib/libjpeg.62.dylib (compatibility version 63.0.0, current version 63.0.0) /opt/local/lib/libpng12.0.dylib (compatibility version 23.0.0, current version 23.0.0) /opt/local/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.4.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 111.0.0)


It doesn't seem to know the path to libqt-mt.3.dylib

comment:3 Changed 11 years ago by macports@…

Temporarily linking these libs to /usr/lib helps ln -s /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/lib/libqt-mt.3.dylib ln -s /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/lib/libqt-mt.3.3.dylib ln -s /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/lib/libqt-mt.3.3.8.dylib

comment:4 Changed 11 years ago by ryandesign (Ryan Schmidt)

Cc: C.Chryssochoidis@… added

comment:5 Changed 11 years ago by ryandesign (Ryan Schmidt)

Leo Studer reported this problem on macports-users too.

comment:6 Changed 11 years ago by ryandesign (Ryan Schmidt)

Cc: leo.studer@… added

comment:7 Changed 11 years ago by ryandesign (Ryan Schmidt)

Cc: mac@… added

This problem was reported again on macports-users.

comment:8 Changed 11 years ago by jmroot (Joshua Root)

Cc: blair@… removed
Owner: changed from macports-tickets@… to blair@…

Assigning to maintainer.

comment:9 Changed 11 years ago by czhang.web@…

I adopted the patch from Hans Fugal and fixed this ticket. The files are attached.

Changed 11 years ago by czhang.web@…

Attachment: Portfile-qt3-mac.diff added

Changed 11 years ago by czhang.web@…

Attachment: qt3-leopard.diff added

comment:10 Changed 11 years ago by mf2k (Frank Schima)

Keywords: qt3-mac removed
Port: qt3-mac added

comment:11 Changed 10 years ago by miranda@…

I can see the patches on this page, but I have no idea what to do with them. I need libqt-mt.3.dylib in order to run another program, and I use OX 10.5.6. Please tell me or direct me to the instructions on what to do with the patch so I can install qt3-mac. Thanks.

comment:12 Changed 10 years ago by miranda@…

Cc: miranda@… added

Cc Me!

comment:13 Changed 10 years ago by mf2k (Frank Schima)

I applied the patches but it fails to build for me. Mac OS X 10.5.6 Install. Xcode 3.1.2.

--->  Building qt3-mac
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_qt3-mac/work/qt-mac-free-3.3.8" && make symlinks src-qmake src-moc sub-src sub-tools " returned error 2
Command output:       QAccessibleWidget::queryParent(QAccessibleInterface**) const   in qaccessiblewidget.o
      QAccessibleWidgetStack::queryChild(int, QAccessibleInterface**) constin qaccessiblewidget.o
  "non-virtual thunk to QAccessibleObject::isValid() const", referenced from:
      vtable for QAccessibleWidgetin qaccessiblewidget.o
      vtable for QAccessibleWidgetStackin qaccessiblewidget.o
      vtable for QAccessibleButtonin qaccessiblewidget.o
      vtable for QAccessibleRangeControlin qaccessiblewidget.o
      vtable for QAccessibleSpinWidgetin qaccessiblewidget.o
      vtable for QAccessibleScrollBarin qaccessiblewidget.o
      vtable for QAccessibleSliderin qaccessiblewidget.o
      vtable for QAccessibleTextin qaccessiblewidget.o
      vtable for QAccessibleDisplayin qaccessiblewidget.o
      vtable for QAccessibleHeaderin qaccessiblewidget.o
      vtable for QAccessibleTabBarin qaccessiblewidget.o
      vtable for QAccessibleComboBoxin qaccessiblewidget.o
      vtable for QAccessibleTitleBarin qaccessiblewidget.o
      vtable for QAccessibleViewportin qaccessiblewidget.o
      vtable for QAccessibleScrollViewin qaccessiblewidget.o
      vtable for QAccessibleListBoxin qaccessiblewidget.o
      vtable for QAccessibleListViewin qaccessiblewidget.o
      vtable for QAccessibleIconViewin qaccessiblewidget.o
      vtable for QAccessibleTextEditin qaccessiblewidget.o
      vtable for QAccessiblePopupin qaccessiblemenu.o
      vtable for QAccessibleMenuBarin qaccessiblemenu.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [../../../accessible/libqtwidgets.dylib] Error 1
make[2]: *** [sub-widgets] Error 2
make[1]: *** [sub-accessible] Error 2
make: *** [sub-plugins] Error 2

Error: Status 1 encountered during processing.

comment:14 Changed 10 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

comment:15 Changed 10 years ago by miranda@…

I got those exact same errors (see http://trac.macports.org/ticket/16109) and it was because I had already installed qt3 (ie not qt3-mac). When I uninstalled qt3, qt3-mac installed correctly.

comment:16 Changed 10 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed

Maintainer timeout. Committed revision r47854. Thanks!

comment:17 Changed 10 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.