[Qgis-developer] Running QGIS from build directory

Tim Sutton lists at linfiniti.com
Thu Aug 4 04:46:44 EDT 2011


Hi

On Thu, Aug 4, 2011 at 10:38 AM, Martin Dobias <wonder.sk at gmail.com> wrote:
> Hi Tim
>
> On Thu, Aug 4, 2011 at 10:12 AM, Tim Sutton <lists at linfiniti.com> wrote:
>>
>> Cool stuff! Next we can try to make our unit tests run from there. If
>> I try to manually run a test e.g.
>>
>> output/bin/qgis_rasterlayertest
>>
>> it doesnt pick up any providers. I notice also that the binaries
>> placed in the output dir still will pick up system qgis libs e.g.:
>>
>> [bin] ldd qgis_rasterlayertest
>> libqgis_core.so.1.8.0 => /usr/local/lib/libqgis_core.so.1.8.0
>> (0x00007f6305787000)
>>
>> Though for QGIS they are correct:
>>
>> [bin] ldd qgis | grep core
>>        libqgis_core.so.1.8.0 =>
>> /home/timlinux/dev/cpp/Quantum-GIS/build-master-qtcreator/output/lib/libqgis_core.so.1.8.0
>> (0x00007fccd97c3000)
>
> Oh, I forgot to fix unit tests :-)
>
> By default CMake adds RPATH to binaries that are produced so that they
> will reach the libraries within build directory. Later when doing
> 'make install' it removes the RPATH, otherwise the binaries would
> still pick up the libraries from build directory.
>
> Looking at the ADD_QGIS_TEST macro I see that we explicitly disable
> RPATH because until now also the tests would need to be installed to
> work correctly. I am not at the dev box right now, but removing
> SKIP_BUILD_RPATH property from the macro should fix that.
>

Ok cool, I will try that.

> With the support for running qgis from build path I think we should
> not install the tests anymore...
>

Agreed.

Thanks Martin,

Regards

Tim

>
> Martin
>



-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==============================================
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
 * QGIS programming and support services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==============================================


More information about the Qgis-developer mailing list