#16109 closed defect (duplicate)
qt3-mac fails to build
Reported by: | dented42@… | Owned by: | blair (Blair Zajac) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | qt3-mac leopard | Cc: | mf2k (Frank Schima), cedayiv@…, miranda@…, janp@… |
Port: | qt3-mac |
Description
qt3-mac appears to reject a computer running leopard, although the changes seem to be deeper then that, as when I forced the configure file to believe I was running tiger, it still failed.
Attachments (1)
Change History (26)
comment:1 Changed 16 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to blair@… |
---|---|
Priority: | High → Normal |
comment:2 Changed 16 years ago by blair (Blair Zajac)
Please supply the output from the command that's failing, with sufficient context to see what's going on.
comment:3 Changed 16 years ago by mf2k (Frank Schima)
Here's what I see. Let me know if you want more detail.
---> Configuring qt3-mac Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt3-mac/work/qt-mac-free-3.3.8" && echo yes | ./configure --prefix=/opt/local -v -prefix '/opt/local' -docdir '/opt/local/share/doc/qt3-mac/html' -datadir '/opt/local/share/qt3' -headerdir '/opt/local/include/qt3' -plugindir '/opt/local/lib/qt3-plugins' -release -shared -fast -thread -stl -qt-gif -qt-imgfmt-png -qt-imgfmt-jpeg -qt-imgfmt-mng -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-nis -no-cups -no-ipv6 -largefile -system-zlib -system-libpng -system-libjpeg -system-libmng '-I/opt/local/include' '-L/opt/local/lib' " returned error 2 Command output: PostgreSQL auto-detection... Could not find libpq.* anywhere in /lib /usr/lib /opt/local/lib PostgreSQL disabled. Testing Mac version... mac_version.cpp:5: error: missing terminating " character mac_version.cpp:6: error: missing terminating " character mac_version.cpp: In function 'int main()': mac_version.cpp:7: error: expected primary-expression before 'return' Mac version cannot be detected! This is the Qt/Mac Open Source Edition. You are licensed to use this software under the terms of the GNU General Public License (GPL). Type 'G' to view the GNU General Public License. Type 'yes' to accept this license offer. Type 'no' to decline this license offer. Do you accept the terms of the license? Creating qmake. Please wait... c++ -c -o project.o -pipe -DQT_MACOSX_VERSION= -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt3-mac/work/qt-mac-free-3.3.8/include/qmake -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt3-mac/work/qt-mac-free-3.3.8/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt3-mac/work/qt-mac-free-3.3.8/include -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt3-mac/work/qt-mac-free-3.3.8/mkspecs/macx-g++ -DHAVE_QCONFIG_CPP project.cpp In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt3-mac/work/qt-mac-free-3.3.8/include/qtl.h:42, from /opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt3-mac/work/qt-mac-free-3.3.8/include/qvaluelist.h:42, from /opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt3-mac/work/qt-mac-free-3.3.8/include/qstringlist.h:42, from project.h:39, from project.cpp:36: /opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt3-mac/work/qt-mac-free-3.3.8/include/qglobal.h:187:6: error: #error "This version of Mac OS X is unsupported" gmake: *** [project.o] Error 1 qmake failed to build. Aborting. Error: Status 1 encountered during processing.
comment:4 Changed 16 years ago by blair (Blair Zajac)
I don't have any cycles to look at this, but if you supply a patch then I can put it in the Port.
You may also want to Google around for patches that already fix this for 10.5. I'm sure somebody has solved it.
If you supply a patch, please link the URL where you got it from.
Thanks, Blair
comment:6 Changed 16 years ago by mf2k (Frank Schima)
Port: | qt3-mac added |
---|
Changed 16 years ago by cedayiv@…
Attachment: | patch-leopard added |
---|
Additional patch file for leopard
comment:7 Changed 16 years ago by cedayiv@…
I've attached a patch file that fixes the problem for me. It is based on the one used for fink, found here: http://fink.cvs.sourceforge.net/*checkout*/fink/dists/10.4/unstable/main/finkinfo/graphics/qt3mac.patch2
Of course, one must also add the patch in the Portfile so it gets used. Hope this helps!
comment:8 Changed 16 years ago by cedayiv@…
FYI: I do still get a warning when installing, but I don't think it has anything to do with the patch that I attached:
sudo port install qt3-mac ---> Fetching qt3-mac ---> Verifying checksum(s) for qt3-mac ---> Extracting qt3-mac ---> Applying patches to qt3-mac ---> Configuring qt3-mac ---> Building qt3-mac ---> Staging qt3-mac into destroot Warning: violation by /opt/local/translations Warning: qt3-mac violates the layout of the ports-filesystems! Warning: Please fix or indicate this misbehavior (if it is intended), it will be an error in future releases! ---> Installing qt3-mac @3.3.8_0 ---> Activating qt3-mac @3.3.8_0 ---> Cleaning qt3-mac
comment:12 follow-up: 14 Changed 16 years ago by miranda@…
I have tried both the patch-leopard and qt3mac.patch2 patches (separately) and I still get a failure message that this version of OS X (10.5) is not supported. Is there anything else I can do? Thanks.
comment:14 Changed 16 years ago by cedayiv@…
Replying to miranda@…:
I have tried both the patch-leopard and qt3mac.patch2 patches (separately) and I still get a failure message that this version of OS X (10.5) is not supported. Is there anything else I can do? Thanks.
The qt3mac.patch2 won't work for you because it is designed for fink. You should use patch-leopard which is the same thing but adapted for MacPorts. Don't forget to add the patch to the list of patches in your Portfile, or it won't be used. The command is: sudo port edit qt3-mac
There are two lines in there that need be edited to look like shown below. On the first line you just have to add the backslash at the end. Then add the second line right after it:
patch-mkspecs-qmake.conf \ patch-leopard
comment:15 Changed 16 years ago by miranda@…
Thanks for the help. I got a little farther, but I get these errors now:
---> Building qt3-mac Error: Target org.macports.build returned: shell command " cd "/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" && 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.
Do I need to install something else before I can install qt3-mac?
Thanks.
comment:16 Changed 16 years ago by cedayiv@…
Hmm, I'm afraid I can't help with that one. The patch-leopard was all I needed to get it to compile and install.
comment:17 Changed 16 years ago by miranda@…
It worked after I uninstalled qt3 which I had installed in a desperate attempt to get the libqt...dylib libraries.
Unfortunately the program which I am trying to run that uses the library says it's for the wrong architecture. Could that have something to do with the patch I had to apply?
comment:18 follow-up: 19 Changed 16 years ago by janp@…
I've made the change to the portfile but now it's telling me it can't find the patch do I need to dowload it and put it somewhere in the build directory?
---> Fetching qt3-mac ---> Attempting to fetch patch-leopard from http://svn.macports.org/repository/macports/distfiles/qt3-mac ---> Attempting to fetch patch-leopard from http://svn.macports.org/repository/macports/distfiles/general/ ---> Attempting to fetch patch-leopard from http://svn.macports.org/repository/macports/downloads/qt3-mac Error: Target org.macports.fetch returned: fetch failed Error: Status 1 encountered during processing.
comment:19 Changed 16 years ago by cedayiv@…
Replying to janp@…:
I've made the change to the portfile but now it's telling me it can't find the patch do I need to dowload it and put it somewhere in the build directory?
You definitely need to download it, but I don't remember where it goes... it goes wherever the patches go. ;)
Try searching your system for one of the other patches and put it in the same place:
find / -name patch-mkspecs-qmake.conf
comment:20 Changed 16 years ago by mf2k (Frank Schima)
You put it in the directory named "files" where the portfile resides.
comment:21 follow-up: 24 Changed 16 years ago by janp@…
Thanks it seems to build OK now but I get warning messages ---> Staging qt3-mac into destroot Warning: violation by /opt/local/translations Warning: qt3-mac violates the layout of the ports-filesystems! Warning: Please fix or indicate this misbehavior (if it is intended), it will be an error in future releases! ---> Installing qt3-mac 3.3.8_0
Then when I try to install qucs sudo port install qucs Password: Error: Unable to execute port: couldn't change working directory to "/opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/qt3": no such file or directory
comment:23 Changed 16 years ago by mf2k (Frank Schima)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This appears to be a duplicate of #13208.
comment:24 Changed 16 years ago by mf2k (Frank Schima)
Replying to janp@…:
Then when I try to install qucs sudo port install qucs Password: Error: Unable to execute port: couldn't change working directory to "/opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/qt3": no such file or directory
This is not a qt3-mac problem. You should open a new ticket against the qucs port.
Assigning to maintainer. I see this issue too.