Opened 8 years ago

Closed 8 years ago

#50946 closed defect (invalid)

Build failure in qgis

Reported by: hansen.m@… Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: MasakiOita, FrankOrtmann (Frank Ortmann), SiggyF
Port: qgis

Description

Mac OS X 10.11.4 MacPorts 2.3.4

#port install qgis
--->  Computing dependencies for qgis
--->  Dependencies to be installed: spatialindex
--->  Fetching archive for spatialindex
--->  Attempting to fetch spatialindex-1.8.4_0.darwin_15.x86_64.tbz2 from http://packages.macports.org/spatialindex
--->  Attempting to fetch spatialindex-1.8.4_0.darwin_15.x86_64.tbz2.rmd160 from http://packages.macports.org/spatialindex
--->  Installing spatialindex @1.8.4_0
--->  Activating spatialindex @1.8.4_0
--->  Cleaning spatialindex
--->  Fetching archive for qgis
--->  Attempting to fetch qgis-2.14.0_0+postgresql94+qt4.darwin_15.x86_64.tbz2 from http://packages.macports.org/qgis
--->  Attempting to fetch qgis-2.14.0_0+postgresql94+qt4.darwin_15.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/qgis
--->  Attempting to fetch qgis-2.14.0_0+postgresql94+qt4.darwin_15.x86_64.tbz2 from http://lil.fr.packages.macports.org/qgis
--->  Fetching distfiles for qgis
--->  Verifying checksums for qgis
--->  Extracting qgis
--->  Applying patches to qgis
--->  Configuring qgis
--->  Building qgis
Error: org.macports.build for port qgis returned: command execution failed
Please see the log file for port qgis for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port qgis failed

Attachments (1)

main.log (11.9 MB) - added by hansen.m@… 8 years ago.
qgis log file

Change History (12)

Changed 8 years ago by hansen.m@…

Attachment: main.log added

qgis log file

comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to vince@…

comment:2 Changed 8 years ago by MasakiOita

Cc: epimetheus314@… added

Cc Me!

comment:3 Changed 8 years ago by FrankOrtmann (Frank Ortmann)

Cc: frank.ortmann@… added

Cc Me!

comment:4 Changed 8 years ago by Veence (Vincent)

Sorry I was a little swamped these last days. Going to dive into this.

comment:5 Changed 8 years ago by Veence (Vincent)

You have a glitch with your PyQt4 install, the same as the buildbot. When you type:

Air > python2.7
Python 2.7.11 (default, Mar  2 2016, 07:56:04) 
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt4.uic.pyuic

What do you get? You should get:

Error: one input ui-file must be specified
Last edited 8 years ago by Veence (Vincent) (previous) (diff)

comment:6 Changed 8 years ago by hansen.m@…

$ python2.7
Python 2.7.11 (default, Mar 15 2016, 20:31:45) 
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt4.uic.pyuic
Error: one input ui-file must be specified

comment:7 in reply to:  6 Changed 8 years ago by FrankOrtmann (Frank Ortmann)

Replying to hansen.m@…:

$ python2.7
Python 2.7.11 (default, Mar 15 2016, 20:31:45) 
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt4.uic.pyuic
Error: one input ui-file must be specified

Same here.

comment:8 Changed 8 years ago by SiggyF

Cc: f.baart@… added

Cc Me!

comment:9 Changed 8 years ago by SiggyF

Not sure if this helps, but I noticed that there is some cmake magic [1] going on that generates a wrapper script if the pyuic4 script is not present. The script was named pyuic4-2.7 instead of pyuic4. Another thing I noticed was that in another pyuic4 wrapper script [2] the executable python is called explicitly, which for me was referring to python35, without PyQt4 installed.

To get qgis building I made 2 changes:

  • I had to port select python27 and then set it back afterwards.
  • I also created a symbolic link from pyuic4 to pyuic4-2.7 (in /opt/local/bin), but I did not test it without this link.

[1] in the file: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgisqgis/work/qgis-2.14.2/mac/cmake/1qt.cmake.in

[2] the file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/qgis-2.14.2/scripts/pyuic4-wrapper.sh

Last edited 8 years ago by SiggyF (previous) (diff)

comment:10 in reply to:  9 Changed 8 years ago by FrankOrtmann (Frank Ortmann)

Replying to f.baart@…:

Not sure if this helps, but I noticed that there is some cmake magic [1] going on that generates a wrapper script if the pyuic4 script is not present. The script was named pyuic4-2.7 instead of pyuic4. Another thing I noticed was that in another pyuic4 wrapper script [2] the executable python is called explicitly, which for me was referring to python35, without PyQt4 installed.

To get qgis building I made 2 changes:

  • I had to port select python27 and then set it back afterwards.
  • I also created a symbolic link from pyuic4 to pyuic4-2.7 (in /opt/local/bin), but I did not test it without this link.

[1] in the file: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgisqgis/work/qgis-2.14.2/mac/cmake/1qt.cmake.in

[2] the file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/qgis/work/qgis-2.14.2/scripts/pyuic4-wrapper.sh

I already had python27 as my default (and only) version installed. I made the symlink for pyuic4, but my build for 2.14.2 still fails :-(

$ python --version
Python 2.7.10
$ pyuic4 --version
Python User Interface Compiler 4.11.4 for Qt version 4.8.7

The last version that worked for me was 2.12.3.

comment:11 Changed 8 years ago by Veence (Vincent)

Resolution: invalid
Status: newclosed

Please retry with the 2.16 version and reopen a bug if necessary.

Note: See TracTickets for help on using tickets.