[MacPorts] #46759: qgis library paths should consider additional qt4-mac plugins installation

MacPorts noreply at macports.org
Wed Feb 4 05:21:02 PST 2015


#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


More information about the macports-tickets mailing list