[Qgis-developer] help for a cpp newbie

Marco Hugentobler marco.hugentobler at sourcepole.ch
Wed Jun 27 00:20:03 PDT 2012


Hi Denis

 >One more thing, is there anyway to fix this permanently?

Either set CMAKE_INSTALL_PREFIX to /usr (but that's bad in case you have 
a parallel installation from package). Or set the library path into your 
bash configuration (.bashrc)

Regards,
Marco

Am 27.06.2012 09:16, schrieb Denis Rouzaud:
> Hi again,
>
> I did export LD_LIBRARY_PATH=/home/denis/opt/builds2/lib/ before 
> running QGIS and it worked.
>
> Thanks a lot!!!
>
> One more thing, is there anyway to fix this permanently?
> Is there anything I can change in make?
>
>
>
> On 06/27/2012 09:07 AM, Marco Hugentobler wrote:
>> Hi Denis
>>
>> Could it be your qgis executable does not use the libqgis_core.so you 
>> compiled? If so, you may set the LD_LIBRARY_PATH to point to the 
>> location of your qgis libs.
>>
>> Regards,
>> Marco
>>
>> Am 27.06.2012 08:45, schrieb Denis Rouzaud:
>>> Hi all,
>>>
>>> I am (almost) a complete newbie in c++. I am trying to get into it, 
>>> by adding a new edit type for vector layers. I am adding something 
>>> similar to valuerelation to have multi-attribute edit type (using a 
>>> join table and an attribute table).
>>>
>>> Basically, I reused almost exactly the same code as valuerelation, 
>>> at first. It won't give anything working, but it allows me to learn.
>>>
>>> I can compile, but when I run qgis, I have this python error at launch:
>>>
>>> ImportError: /home/denis/opt/builds2/share/qgis/python/qgis/core.so: 
>>> undefined symbol: _ZN10QgsProject21setTopologicalEditingEb
>>>
>>>
>>> Then, when I opened the layer properties dialog and I try to change 
>>> the edit type, QGIS crashes and I have the following output in the 
>>> terminal:
>>> symbol lookup error: /home/denis/opt/builds2/bin/qgis: undefined 
>>> symbol: _ZN14QgsVectorLayer14multiAttributeEi
>>>
>>>
>>> I found a similar error on the list 
>>> http://lists.osgeo.org/pipermail/qgis-developer/2012-May/020401.html, but 
>>> uninstalling and deleting the share directory did nothing.
>>>
>>> Does someone has any idea on what could be going wrong?
>>>
>>> Thanks
>>>
>>> Denis
>>>
>>>
>>> _______________________________________________
>>> Qgis-developer mailing list
>>> Qgis-developer at lists.osgeo.org  <mailto:Qgis-developer at lists.osgeo.org>
>>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>>
>> -- 
>> Dr. Marco Hugentobler
>> Sourcepole -  Linux & Open Source Solutions
>> Weberstrasse 5, CH-8004 Zürich, Switzerland
>> marco.hugentobler at sourcepole.ch  <mailto:marco.hugentobler at sourcepole.ch>  http://www.sourcepole.ch
>> Technical Advisor QGIS Project Steering Committee
>>
>>
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>


-- 
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Weberstrasse 5, CH-8004 Zürich, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20120627/d5cd94b6/attachment-0001.html>


More information about the Qgis-developer mailing list