Hi, Please, send the message to the list, this kind infos can be useful to other people have the same problem.
On Thu, May 31, 2012 at 3:00 PM, Bernhard Ströbl <[email protected]> wrote: > I basically followed > http://hub.qgis.org/projects/quantum-gis/repository/revisions/master/entry/INSTALL > to install into $HOME/apps > only recently did I change the CMAKE_INSTALL_PREFIX to /opt/qgis-1.8.0 Building and installing from source may keep old stuff in the previous installation path. If you don't want that such kind of problems occur you should consider to uninstall QGis (make uninstall) before compiling it again. > I ran ldd /opt/qgis-1.8.0/bin/qgis | grep "libqgis" and got this: > libqgis_core.so.1.8.0 => /home/StroeblB/apps/lib/libqgis_core.so.1.8.0 > (0x00007fa8e9291000) > libqgis_gui.so.1.8.0 => /home/StroeblB/apps/lib/libqgis_gui.so.1.8.0 > (0x00007fa8e8d90000) > libqgis_analysis.so.1.8.0 => > /home/StroeblB/apps/lib/libqgis_analysis.so.1.8.0 (0x00007fa8e8aef000) > > so obvoiusly it is not sufficient to only change the CMAKE_INSTALL_PREFIX?! Shared lib are loaded by the OS, so old stuffs could blind new ones. Anyway you could use the LD_LIBRARY_PATH enviroment variable to override the path where to search libraries. Ragards. On Thu, May 31, 2012 at 3:00 PM, Bernhard Ströbl <[email protected]> wrote: > Hi Giuseppe, > > thank you for your help. It turned out my build was linking to some older > installation (at least as far as I understand). > As I am not familiar with compiling software, may I ask you to help me > understanding what was going on? I basically followed > http://hub.qgis.org/projects/quantum-gis/repository/revisions/master/entry/INSTALL > to install into $HOME/apps > only recently did I change the CMAKE_INSTALL_PREFIX to /opt/qgis-1.8.0 > > when I saw the tip at > http://hub.qgis.org/wiki/quantum-gis/Building_QGIS_from_Source > I ran ldd /opt/qgis-1.8.0/bin/qgis | grep "libqgis" and got this: > libqgis_core.so.1.8.0 => /home/StroeblB/apps/lib/libqgis_core.so.1.8.0 > (0x00007fa8e9291000) > libqgis_gui.so.1.8.0 => /home/StroeblB/apps/lib/libqgis_gui.so.1.8.0 > (0x00007fa8e8d90000) > libqgis_analysis.so.1.8.0 => > /home/StroeblB/apps/lib/libqgis_analysis.so.1.8.0 (0x00007fa8e8aef000) > > so obvoiusly it is not sufficient to only change the CMAKE_INSTALL_PREFIX?! > > regards > > Bernhard > > Am 31.05.2012 11:43, schrieb Giuseppe Sucameli: >> >> Hi Bernhard, >> >> On Thu, May 31, 2012 at 9:28 AM, Bernhard Ströbl >> <[email protected]> wrote: >>> >>> I compiled current master and got an error when starting QGIS: >>> Traceback (most recent call last): >>> File "", line 1, in >>> ImportError: /opt/qgis-1.8.0/share/qgis/python/qgis/core.so: undefined >>> symbol: _ZNK11QgsMapLayer3crsEv >> >> >> remove the directory /opt/qgis-1.8.0/share/qgis/python/qgis/, it contains >> old stuff (have a look at its modification date before). >> >> Regards. >> > > > > ________ Information from NOD32 ________ > This message was checked by NOD32 Antivirus System for Linux Mail Server. > http://www.nod32.com -- Giuseppe Sucameli _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
