[MacPorts] #46759: qgis library paths should consider additional qt4-mac plugins installation
#46759: qgis library paths should consider additional qt4-mac plugins installation ------------------------+-------------------------------- Reporter: geosanak@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: qgis | Port: qgis ------------------------+-------------------------------- When I wanted to use "qt4-mac-sqlite3-plugin" ('QSQLITE' driver) in QGIS Python console,[[BR]] 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.[[BR]] 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. -- Ticket URL: <https://trac.macports.org/ticket/46759> MacPorts <https://www.macports.org/> Ports system for OS X
#46759: qgis library paths should consider additional qt4-mac plugins installation -------------------------+--------------------- Reporter: geosanak@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: qgis | -------------------------+--------------------- Changes (by larryv@…): * owner: macports-tickets@… => vince@… * keywords: qgis => * type: request => defect -- Ticket URL: <https://trac.macports.org/ticket/46759#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#46759: qgis library paths should consider additional qt4-mac plugins installation -------------------------+--------------------- Reporter: geosanak@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: qgis | -------------------------+--------------------- Comment (by vince@…): Interesting. I’m going to have a look at this (though I admit this is much belated). -- Ticket URL: <https://trac.macports.org/ticket/46759#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#46759: qgis library paths should consider additional qt4-mac plugins installation -------------------------+--------------------- Reporter: geosanak@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: qgis | -------------------------+--------------------- Comment (by vince@…): It should be fixed in r137656. Please bump. -- Ticket URL: <https://trac.macports.org/ticket/46759#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#46759: qgis library paths should consider additional qt4-mac plugins installation -------------------------+--------------------- Reporter: geosanak@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: qgis | -------------------------+--------------------- Comment (by petr@…): For me now the build of the upgrade fails. I'll attach a main.log. -- Ticket URL: <https://trac.macports.org/ticket/46759#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#46759: qgis library paths should consider additional qt4-mac plugins installation -------------------------+--------------------- Reporter: geosanak@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: qgis | -------------------------+--------------------- Comment (by jea@…): Thanks geosanak for the workaround. Now my bookmarks work again! I also have a plugin complaining that I don't have gdal/ogr. I wonder if it's a similar problem? Plugin is "QuickOSM" and the error is "The OSM's driver is not installed. You must have GDAL/OGR >= 1.10. " . I'll report the error to the plugin author, but it sounds like it might be a path problem. -- Ticket URL: <https://trac.macports.org/ticket/46759#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#46759: qgis library paths should consider additional qt4-mac plugins installation -------------------------+--------------------- Reporter: geosanak@… | Owner: vince@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: Port: qgis | -------------------------+--------------------- Changes (by vince@…): * status: new => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/46759#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts