Opened 14 years ago
Closed 14 years ago
#27073 closed defect (fixed)
djview 4.6 does not build
Reported by: | luis.beca@… | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.1 |
Keywords: | Cc: | bK4gYuRo, ygramul.el.multiple@… | |
Port: | djview |
Description
The upgrade to 4.6 fails. Please see attached log.
Attachments (5)
Change History (21)
Changed 14 years ago by luis.beca@…
comment:1 Changed 14 years ago by bK4gYuRo
comment:3 Changed 14 years ago by michaelld (Michael Dickens)
Owner: | changed from macports-tickets@… to michaelld@… |
---|---|
Status: | new → assigned |
Do you all have qt4-mac 4.7.0 installed?
comment:5 Changed 14 years ago by michaelld (Michael Dickens)
Yes, you both do have 4.7.0 installed; just found that in the log files. I'm going to reinstall the patch to handle this. Maybe my next set of qt4-mac changes will fix this issue, but clearly it isn't yet.
comment:6 Changed 14 years ago by michaelld (Michael Dickens)
Can y'all do me a favor and try to build djview as +universal? I don't think it'll work, but I'd like to see the log to see if the previous patch will still work. Thanks!
comment:7 Changed 14 years ago by michaelld (Michael Dickens)
Another request before I put the patch back in: Can y'all attach the file "port dir djview
/work/djview4-4.6/src/Makefile" from your current breaking build? I'm trying to track down which QMake variable is getting messed up.
Changed 14 years ago by bK4gYuRo
port dir djview
/work/djview4-4.6/src/Makefile on PPC
comment:12 Changed 14 years ago by ygramul.el.multiple@…
Hey there, I'm on the x86_64 platform, and I get exactly the same problem. In my case, the empty string is
-L/opt/local/lib -arch i386 -arch -o djview.app/Contents/MacOS/djview qdjvu.o
I attach the log file and the Makefile that michaelld requested.
Changed 14 years ago by ygramul.el.multiple@…
Attachment: | main.3.log added |
---|
Log file in x86_64 architecture
Changed 14 years ago by ygramul.el.multiple@…
Attachment: | Makefile.2 added |
---|
Makefile for x86_64 architecture
comment:13 Changed 14 years ago by mdbecque@…
I tried to build 4.6_0 with +universal on my G5 running 10.5.8 and no luck.
comment:14 Changed 14 years ago by michaelld (Michael Dickens)
Is qt4-mac build with +universal on any of your installs? When I use just qt4-mac (no +universal), I see this issue; when I move to using qt4-mac +universal the issue goes away -- at least for me.
@mdbecque: Can you post the log for your djview +universal effort?
comment:15 Changed 14 years ago by michaelld (Michael Dickens)
There's a bug in qmake: if Qt is not installed as +universal, and qmake is run with QMAKE_LFLAGS+="-arch foo", and "foo" is the native arch (for processing, as determined by qmake), then it seems like I always end up with this "-arch foo -arch" issue. I've looked through parts of the qmake source code, but it gets me nowhere. I'll look into opening a ticket for this issue with the Qt folks.
comment:16 Changed 14 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in r73103.
I have similar problem on PPC platform. In my case the command in question has empty arch string:
-arch ppc -arch -o djview.app/Contents/MacOS/djview
I am also attaching the full log.
Thanks, -Kastus