[QGIS-trac] [Quantum GIS] #1548: Python gui.so links to wrong QGIS libs when more than one version of QGIS is installed

Quantum GIS qgis at qgis.org
Wed Feb 18 03:05:23 EST 2009


#1548: Python gui.so links to wrong QGIS libs when more than one version of QGIS
is installed
---------------------------------------------------------+------------------
   Reporter:  timlinux                                   |              Owner:  wonder                  
       Type:  bug                                        |             Status:  new                     
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.1.0           
  Component:  Build/Install                              |            Version:  HEAD                    
   Keywords:  python libraries version                   |   Platform_version:  Ubuntu Linux 8.10 x86_64
   Platform:  Linux                                      |           Must_fix:  Yes                     
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 Scenario:

 I install my development builds to /home/timlinux/apps/

 Since we adopted versioned lib names (e.g. libqgis_core.so.1.1) it should
 be possible to have more than one version of QGIS coexsisting in the same
 CMAKE_INSTALL_PREFIX. This does indeed work and all libs and apps link to
 the correct libs except the python generated libs under
 <prefix>/share/qgis/python/qgis/core.so and
 <prefix>/share/qgis/python/qgis/gui.so, as the listings that follow show:

 {{{
  ldd gui.so | grep qgis
         libqgis_core.so.1.1 => /home/timlinux/apps/lib/libqgis_core.so.1.1
 (0x00007f598b893000)
         libqgis_gui.so.1.0 => /home/timlinux/apps/lib/libqgis_gui.so.1.0
 (0x00007f598aa47000)
         libqgis_core.so.1.0 => /home/timlinux/apps/lib/libqgis_core.so.1.0
 (0x00007f5983624000)
 }}}

 and

 {{{
 [qgis] ldd core.so | grep qgis
         libqgis_core.so.1.0 => /home/timlinux/apps/lib/libqgis_core.so.1.0
 (0x00007fbce8b98000)
 }}}

 You can see some strange things are going on here.

 - Firstly they should all be linking to 1.1 libs since this build is a 1.1
 build.
 - Secondly, instead of being called core.so, these libs should be
 core.so.1.0 and core.so.1.1 libs so that the appropriate python libs are
 loaded based on the version of QGIS running (1.0 or 1.1)
 - thirdly gui.so seems to be linked to both 1.0 and 1.1 of libqgis_core

 It will be great if you can resolve this so that the core and gui libs are
 versioned and linking to the appropriate version of qgis core and gui
 libs.

 Many thanks

 Tim

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1548>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list