Opened 14 years ago
Closed 13 years ago
#29141 closed defect (fixed)
qt4-mac dependents on 10.7 - qglobal.h:93:6: error: #error "This version of Mac OS X is unsupported"
Reported by: | sorin.sbarnea@… | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.99 |
Keywords: | lion | Cc: | cssdev, nerdling (Jeremy Lavergne), jamesfmarshall@…, m.haller@…, axeljaeger@…, jdswinbank (John Swinbank), whcordis@…, mkae (Marko Käning), st.hennig@…, hofione@…, avysk (Alexey Vyskubov), cdeil (Christoph Deil), obutovich@…, muchatel@…, soehn@…, geekosaur |
Port: | qt4-mac doxygen |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
doxygen fails to install on 10.7, svn macports
qglobal.h:93:6: error: #error "This version of Mac OS X is unsupported"
Attachments (1)
Change History (33)
comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Milestone: | MacPorts 2.0.0 |
Owner: | changed from macports-tickets@… to css@… |
Priority: | High → Normal |
comment:2 Changed 14 years ago by sorin.sbarnea@…
I read that for 10.7 we are supposed to use trunk, which I did and worked pretty well because there are no major changes. And as developers we are supposed to use prerelease versions because this is the only way of preparing macports to be ready for normal users. But this is not the problem.
I found that the issue is trivial because original qt developer wrote some code with a silly enforced lifetime limitation.
It was enough to comment the line that throws the error to make doxygen to work!
Please comment line #96, it will solve the issue, or better replace it with an warning.
comment:3 Changed 14 years ago by jmroot (Joshua Root)
Cc: | css@… added |
---|---|
Owner: | changed from css@… to michaelld@… |
Port: | qt4-mac added |
Summary: | doxygen on 10.7 - qglobal.h:93:6: error: #error "This version of Mac OS X is unsupported" → qt4-mac dependents on 10.7 - qglobal.h:93:6: error: #error "This version of Mac OS X is unsupported" |
So presumably this only happens with +wizard, and should actually be against qt4-mac.
comment:4 Changed 13 years ago by nerdling (Jeremy Lavergne)
Cc: | snc@… added |
---|---|
Keywords: | lion added |
comment:7 follow-up: 11 Changed 13 years ago by m.haller@…
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.7.3/src/corelib/global/qglobal.h (md5: 351810032e11221cff61def243eea975) of qt4-mac 4.7.3 has to be patched
319,322c319 < # if !defined(MAC_OS_X_VERSION_10_7) < # define MAC_OS_X_VERSION_10_7 MAC_OS_X_VERSION_10_6 + 1 < # endif < # if (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_7) --- > # if (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_6)
comment:8 Changed 13 years ago by michaelld (Michael Dickens)
I'm traveling right now, and probably won't be able to download / install Lion until early August. So, unless someone can come up with a patch in the interim, folks will just have to be patient for a few weeks until I can get to this ticket. I grant permission for others to checkin fixes for this ticket, if/as appropriate.
comment:11 Changed 13 years ago by nerdling (Jeremy Lavergne)
Replying to m.haller@…:
src/corelib/global/qglobal.h has to be patched
Have you come across any other files that need patched? I'm testing this one presently and will commit it after a successful build.
comment:12 Changed 13 years ago by craig+macports@…
Please see also ticket:30346 which is another required patch for qt4 on 10.7
comment:23 Changed 13 years ago by obutovich@…
I have attached to ticket:30346 Portfile and patches, wich work for me... Hope it helps
comment:25 follow-up: 26 Changed 13 years ago by michaelld (Michael Dickens)
Committed in r81844. Please do a selfupdate & see if the changes work.
Changed 13 years ago by soehn@…
comment:26 Changed 13 years ago by soehn@…
Replying to michaelld@…:
Committed in r81844. Please do a selfupdate & see if the changes work.
I tried and have attached the result.
comment:27 Changed 13 years ago by michaelld (Michael Dickens)
Hmm ... looks like the patch to qglobal.h isn't working for 10.7 (it does for 10.6). I'll be installing 10.7 over this weekend & will figure out the issue then.
comment:28 follow-up: 29 Changed 13 years ago by michaelld (Michael Dickens)
Did you do a "clean" before trying to "install qt4-mac"? Sometimes back makes a difference. Another user on 10.7 reports success building using these latest changes.
comment:29 Changed 13 years ago by soehn@…
Replying to michaelld@…:
Did you do a "clean" before trying to "install qt4-mac"? Sometimes back makes a difference. Another user on 10.7 reports success building using these latest changes.
Before I try to install a port, that could not be build before, I always clean that port, run self update and upgrade outdated. I gave this another try today (the whole procedure as described above). It worked this time. (?) Thank you!
comment:30 follow-up: 31 Changed 13 years ago by michaelld (Michael Dickens)
I'm glad you take those steps for installing a broken port -- not everyone does. I does happen sometimes, that things break & then work; I'm glad it's working for you now.
Before closing this ticket: I'll wait to either hear back from someone else that it works for them; or, that it works for me on my almost done 10.7 install (I'm testing on 10.6 still, but the code looks solid).
comment:31 Changed 13 years ago by jdswinbank (John Swinbank)
Replying to michaelld@…:
Before closing this ticket: I'll wait to either hear back from someone else that it works for them
Now builds for me on 10.7. Many thanks!
comment:32 Changed 13 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for the replies. I'll close out the ticket since I think this issue is now fixed.
MacPorts on Mac OS X 10.7 is unsupported in general, until Mac OS X 10.7 is released by Apple to the general public and we've had a chance to play with it.