Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#41704 closed defect (invalid)

qgis depends on py27-pyqt4-devel

Reported by: mabouali@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: Veence (Vincent)
Port: qgis

Description

Hi, qgis is not compiling on MAC OSX 10.9 (Maverick)

One problem is that QGIS depends on py27-pyqt4-devel and py27-qscintilla however, py27-qscintilla depends on py27-pyqt4.

But you can not have both py27-pyqt4 and py27-pyqt4-devel.

I edited the dependency of qgis using "sudo port edit --edit nano egis" and changed the dependency to only py27-pyqt4, however it is still not compiling. It fails at build stage.

Any solution???

Change History (3)

comment:1 in reply to:  description Changed 11 years ago by mabouali@…

I think I solved it myself.

if you got the same problem as I had here is the solution:

issue:

sudo port edit --editor nano py27-qscintilla

find the line that it is appending the dependency and instead of using py27-pyqt4 by default change it so that it uses py27-pyqt4-devel.

then just go and install qgis as usual, i.e. sudo port install qgis.

cheers,

Replying to mabouali@…:

Hi, qgis is not compiling on MAC OSX 10.9 (Maverick)

One problem is that QGIS depends on py27-pyqt4-devel and py27-qscintilla however, py27-qscintilla depends on py27-pyqt4.

But you can not have both py27-pyqt4 and py27-pyqt4-devel.

I edited the dependency of qgis using "sudo port edit --edit nano egis" and changed the dependency to only py27-pyqt4, however it is still not compiling. It fails at build stage.

Any solution???

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

Cc: vince@… added
Port: qgis added
Resolution: invalid
Status: newclosed
Summary: qgis not compiled on 10.9qgis depends on py27-pyqt4-devel

You do not need to edit any file. Please revert your edits (or, if you use the usual rsync for syncing, run "sudo port sync" to revert them automatically).

qgis's python27 variant does indeed declare a dependency on py27-pyqt4-devel. I assume that is intentional and do not recommend trying to circumvent that. Presumably qgis requires features of pyqt4 that are not available in the stable version yet, therefore the dependency has been made on the development version.

Most other ports that depend on the Python 2.7 version pyqt4, such as py27-qscintilla, can use either py27-pyqt4 or py27-pyqt4-devel, whichever you have installed. So if you already have py27-pyqt4 installed, the solution is to deactivate it:

sudo port -f deact py27-pyqt4

Then install py27-pyqt4-devel:

sudo port install py27-pyqt4-devel

Now you can install qgis.

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

Sorry I missed that one. Great you were able to figure out the best way to fix that problem!

Note: See TracTickets for help on using tickets.