Opened 15 years ago

Closed 7 years ago

Last modified 5 years ago

#20309 closed defect (wontfix)

qt4-x11 doesn't support 10.6 or later

Reported by: nerdling (Jeremy Lavergne) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: snowleopard lion Cc: ruud@…, jungwook.shin@…, macports@…, Markus.Ueberall@…, macports@…, ih-mon@…, johannes.simon@…, michaelld (Michael Dickens), _b_b_@…, amadeus24, barto@…, tomi.kyostila@…, cooljeanius (Eric Gallager), RJVB (René Bertin), mopihopi
Port: qt4-x11

Description (last modified by nerdling (Jeremy Lavergne))

qt4-x11 bails during build, citing an unsupported version of 10.6. Might be an upstream issue? Setting to low priority as 10.6 is not out yet.

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_qt4-x11/work/qt-x11-opensource-src-4.4.3/include/QtCore/../../src/corelib/global/qglobal.h:290:6: error: #error "This version of Mac OS X is unsupported"

Change History (48)

comment:1 Changed 15 years ago by nerdling (Jeremy Lavergne)

Description: modified (diff)

comment:2 Changed 15 years ago by nerdling (Jeremy Lavergne)

Keywords: snowleopard added

comment:3 Changed 15 years ago by mf2k (Frank Schima)

Priority: LowNormal

Snow Leopard is out now.

comment:4 Changed 15 years ago by ruud@…

Cc: ruud@… added

Cc Me!

comment:5 Changed 15 years ago by jungwook.shin@…

Cc: jungwook.shin@… added

Cc Me!

comment:6 Changed 15 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:7 Changed 15 years ago by asymptotic.freedom@…

Cc Me!

comment:8 Changed 15 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

comment:9 Changed 15 years ago by Markus.Ueberall@…

Cc: Markus.Ueberall@… added

Cc Me!

comment:10 Changed 14 years ago by macports@…

Cc: macports@… added

Cc Me!

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

Perhaps it just needs to be updated.

comment:12 Changed 14 years ago by ih-mon@…

Cc: ih-mon@… added

Cc Me!

comment:13 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #23833.

comment:14 Changed 14 years ago by johannes.simon@…

Cc: johannes.simon@… added

Cc Me!

comment:15 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #25536.

comment:16 Changed 14 years ago by michaelld (Michael Dickens)

Cc: michaelld@… added

Cc Me!

comment:17 Changed 14 years ago by michaelld (Michael Dickens)

Owner: changed from mcalhoun@… to michaelld@…

As per ticket #20986, and as of r69277, qt4-x11 uses 'select'. Next, working towards updating to 4.6.3 and 4.7.0b1, and including both debug and release versions. I believe updating to the 4.6 series will resolve this ticket. That said, doing this upgrade won't be trivial, so be patient.

comment:18 Changed 14 years ago by julien-mac@…

As a sidenote, a way to mark the port as BROKEN would be good in order to avoid any process of the port or its dependencies.

comment:19 Changed 14 years ago by nerdling (Jeremy Lavergne)

We don't have a means of testing every combination of hardware/software to discover what works.

comment:20 Changed 14 years ago by jmroot (Joshua Root)

Cc: ruud@… added; ruud@… removed

comment:21 Changed 14 years ago by michaelld (Michael Dickens)

As of r72571, qt4-mac has a stub variant for +x11. I'll be filling in the details shortly. Question to everyone on this ticket: Are there ports that you know that are qt4-x11 specific, in such a way that qt4-mac and qt4-x11 should remain separate? What I'd like to do (and, am doing right now since I haven't heard better otherwise) is to incorporate +x11 into qt4-mac and then allow the user to switch back and forth between them. Most user need just qt4-mac, but I also don't want to estrange those who need both qt4-mac and qt4-x11. So, I'm listening ...

comment:22 Changed 13 years ago by johannes.simon@…

My intention was to use qt4-mac and qt4-x11 side-by-side. After all, qt4-mac is what I'll always need, but for some bigger Qt projects it is helpful for me (as a developer) to be able to test the X11 version as well, as the UI is always slightly different. It's not possible to test X11 styles with qt4-mac. This is - to be honest - not a super high priority. But it is one of these nice-to-have things.

comment:23 Changed 13 years ago by _b_b_@…

Cc: _b_b_@… added

Cc Me!

comment:24 Changed 13 years ago by _b_b_@…

is anyone still working on this? I really need qt4-x11 for my project as it relies on pythonOCC (pythonocc.org) which uses the X11 interface of qt4 (not aqua). Plus, i think for most developers it would be useful to have a x11 version alongside for debugging purposes, as johannes mentioned already.

comment:25 Changed 13 years ago by michaelld (Michael Dickens)

Nominally I'm working on it. Reality is that Qt47 just isn't designed to compile for X11 on Darwin / OSX, and so I haven't figured out that "correct combination" of tweaks to QMake build files yet. I've also been working on other ports and not very much on this one -- it would help if Qt47 didn't take -hours- to compile, just to test out a single tweak. And, yes, that's even with doing "port -o" and using ccache (both of which help). It'll happen sooner or later. Please feel free to submit patches that do what you need / want for qt4-x11 or qt4-mac +x11; doing so would certainly speed up the process!

comment:26 Changed 13 years ago by _b_b_@…

Thanks for the fast reply! Well, I'd like to help, really, but I think I'm not familiar enough with all this -just recently started using MacPorts- and don't quite know where to begin with...

comment:27 Changed 13 years ago by michaelld (Michael Dickens)

Check out the patchfile "patch-darwin-g++.diff"; it's my current effort towards tweaking the QMake build files to work with Darwin / X11 / g++. I think what you're looking for are places where Frameworks are necessary versus where they are not. You'll need to get used to the QMake script language, but it's not that difficult. Best way I've found for testing is to copy the original file (from FOO to FOO.orig), then edit that file -- generally to add in or change macx and x11 clauses. Then re-do configure & build. When it fails, figure out why, correct the mistake, and repeat. If you're lucky & have a big fast Mac, you can get a single iteration into ~20-30 minutes; on my MacBook Pro 2.6 GHz it typically takes 30-60 minutes depending on the change.

comment:28 Changed 13 years ago by _b_b_@…

hey! sorry for the delay. thanks for your hints where to start looking at! i played around a bit with what you mentioned. no success so far, but ok. i'll keep trying and will report back here. although i have to add that i'm quite busy right now - and no, i don't have a big fast mac, so it's taking it's time :) - so i don't know when we can get it to work. right now as a workaround i just installed linux on another partition so i can debug my stuff, but that's kinda stupid. i'd really like to get this done under mac os. well, let's see.

comment:29 Changed 13 years ago by arve@…

Is it possible to set the portfile to bail out early with an error if on Mac OS 10.6 or later? I waited for installations of both (!) mysql and postgresql before finding that my OS cannot use this module...

comment:30 Changed 13 years ago by nerdling (Jeremy Lavergne)

Keywords: lion added

What's wrong with having those built until qt4-x11 is ready? It'll be less to build in the future.

The best "early fail" we can do is just to prevent operations within qt4-x11 from commencing:

pre-extract {
    if {${os.major} > 9} {
        ui_err "{$name} does not yet work with your OS version."
        return -code error "OS version not supported"
    }
}

If Snow Leopard can't handle qt4-x11, can Lion?

comment:31 Changed 12 years ago by vincent.acary@…

Hi, I have still the same problem to build qt4-x11 on snow leopard. I also realy need it for pythonocc and i am wondering if there is a way to circumvent the problem

comment:32 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ag@… added
Summary: qt4-x11 doesn't support 10.6 yetqt4-x11 doesn't support 10.6 or later

Has duplicate #35030.

comment:33 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: barto@… added

Has duplicate #35246.

comment:34 Changed 12 years ago by tomi.kyostila@…

Cc: tomi.kyostila@… added

Cc Me!

comment:35 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

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

Cc: macsforever2000@… removed

comment:37 Changed 10 years ago by RJVB (René Bertin)

So what's the status here - no X11 variant at all nowadays? If so, does that mean that there's no way to trick Qt 4.8x into believing it's building on a Unix/X11 system?

comment:38 Changed 10 years ago by michaelld (Michael Dickens)

Once upon a time, I was trying to coerce Qt4 to compile as Unix/X11 on Darwin. Qt4's build system is set up to compile not as X11 when on Darwin; It's not easy to make all of the changes to the build system (I never finished them, there were so many) nor to maintain them over subsequent Qt4 versions. So ... the upshot is: not any time soon by me! If somebody else wants to give this a go, I think there are a number of folks interested.

comment:39 Changed 10 years ago by RJVB (René Bertin)

I'm trying now with -qpa X11 and a mkspec adapted (modernised) from darwin-g++ to use clang, we'll see where the boat runs aground ...

comment:40 Changed 10 years ago by RJVB (René Bertin)

Cc: rjvbertin@… added

Cc Me!

comment:41 Changed 10 years ago by michaelld (Michael Dickens)

Cool! Good luck! Please do let this ticket know if you make any real progress / how it goes.

comment:42 Changed 10 years ago by mopihopi

Cc: mopihopi@… added

Cc Me!

comment:43 Changed 7 years ago by kencu (Ken)

Can I suggest that this ticket be closed as WONTFIX? I don't see anyone ever acting on this any further. qt4-mac works quite well on 10.4 up, and is not likely to be touched any further now, in particular to be modified to build as x11.

comment:44 Changed 7 years ago by RJVB (René Bertin)

Users who really need X11 support in Qt should support my port:qt5-kde submission as it contains a subport that provides the XCB (X11) backend. I use this myself so plan to support it as long as humanely possible.

comment:45 Changed 7 years ago by kencu (Ken)

Resolution: duplicate
Status: newclosed

comment:46 Changed 7 years ago by kencu (Ken)

Resolution: duplicate
Status: closedreopened

comment:47 Changed 7 years ago by kencu (Ken)

Resolution: wontfix
Status: reopenedclosed

comment:48 Changed 5 years ago by yan12125 (Chih-Hsuan Yen)

In 4a4c1313f89fdffe49e7ed37b238df7db954389b/macports-ports (master):

qt4-x11: removed as qt4-mac works just fine

Ref: #20309#comment:43
Closes: #20986
Closes: #35740

Note: See TracTickets for help on using tickets.