New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13208 (closed defect: fixed)

Opened 2 years ago

Last modified 10 months ago

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

Reported by: levi@… Owned by: blair@…
Priority: Normal Milestone:
Component: ports Version: 1.5.1
Keywords: Cc: C.Chryssochoidis@…, leo.studer@…, mac@…, miranda@…, macsforever2000@…
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

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

Change History

  Changed 2 years ago by nox@…

  • cc blair@… added
  • milestone changed from MacPorts 1.5 to Port Bugs
  • summary changed from qt3-mac does not support leopard to qt3-mac fails to build on Mac OS X 10.5 Leopard

in reply to: ↑ description   Changed 2 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

  Changed 2 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

  Changed 2 years ago by ryandesign@…

  • cc C.Chryssochoidis@… added

  Changed 2 years ago by ryandesign@…

Leo Studer  reported this problem on macports-users too.

  Changed 2 years ago by ryandesign@…

  • cc leo.studer@… added

  Changed 2 years ago by ryandesign@…

  • cc mac@… added

This problem was  reported again on macports-users.

  Changed 2 years ago by jmr@…

  • owner changed from macports-tickets@… to blair@…
  • cc blair@… removed

Assigning to maintainer.

  Changed 17 months ago by czhang.web@…

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

Changed 17 months ago by czhang.web@…

Changed 17 months ago by czhang.web@…

  Changed 16 months ago by macsforever2000@…

  • keywords qt3-mac removed
  • port set to qt3-mac

  Changed 11 months 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.

  Changed 11 months ago by miranda@…

  • cc miranda@… added

Cc Me!

  Changed 11 months ago by macsforever2000@…

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.

  Changed 11 months ago by macsforever2000@…

  • cc macsforever2000@… added

Cc Me!

  Changed 11 months 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.

  Changed 11 months ago by macsforever2000@…

  • status changed from new to closed
  • resolution set to fixed

Maintainer timeout. Committed revision r47854. Thanks!

  Changed 10 months ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.