Opened 10 years ago

Closed 8 years ago

#46759 closed defect (fixed)

qgis library paths should consider additional qt4-mac plugins installation

Reported by: sanak (Ko Nagase) Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: petrrr, jeabraham
Port: qgis

Description

When I wanted to use "qt4-mac-sqlite3-plugin" ('QSQLITE' driver) in QGIS Python console,
the following was necessary.

sudo port install qt4-mac-sqlite3-plugin
cd /Applications/MacPorts/QGIS.app/Contents/PlugIns
sudo mkdir sqldrivers
cd sqldrivers/
sudo cp /opt/local/share/qt4/plugins/sqldrivers/libqsqlite.dylib ./

Because library paths were different between Python and QGIS.

Python:

$ python
>>> from PyQt4.QtCore import QCoreApplication
>>> list(QCoreApplication.libraryPaths())
[PyQt4.QtCore.QString(u'/opt/local/share/qt4/plugins')]

QGIS (Python Console):

>>> from PyQt4.QtCore import QCoreApplication
>>> QCoreApplication.libraryPaths()
[u'/Applications/MacPorts/QGIS.app/Contents/PlugIns', u'/Applications/MacPorts/QGIS.app/Contents/PlugIns/qgis']

I think that current '/Applications/MacPorts/QGIS.app/Contents/Plugins' can be changed to '/opt/local/share/qt4/plugins' and duplicate plugins (in codecs, iconengines and imageformats folders) can be removed.

Attachments (1)

qgis.main.log (313.2 KB) - added by petrrr 9 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 10 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:2 Changed 10 years ago by larryv (Lawrence Velázquez)

Keywords: qgis removed
Owner: changed from macports-tickets@… to vince@…
Type: requestdefect

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

Interesting. I’m going to have a look at this (though I admit this is much belated).

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

It should be fixed in r137656. Please bump.

comment:5 Changed 9 years ago by petrrr

For me now the build of the upgrade fails. I'll attach a main.log.

Changed 9 years ago by petrrr

Attachment: qgis.main.log added

comment:6 Changed 9 years ago by jeabraham

Cc: jea@… added

Cc Me!

comment:7 Changed 9 years ago by jeabraham

Thanks geosanak for the workaround. Now my bookmarks work again!

Last edited 9 years ago by jeabraham (previous) (diff)

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

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.