Well in theory one could introduce some heuristics based on /usr/lib64 existence and /etc/os-release parsing, but I don't think it's worth the fuss to cover all possible distro configurations honestly (and I've never seen a software package which does this).

Sandro


On 05.10.2016 10:26, Denis Rouzaud wrote:

Perfect, thanks a lot, it works!

Is there a way to integrate this automatically in cmake config? Like detecting fedora?

Cheers,

Denis


On 10/05/2016 09:59 AM, Sandro Mani wrote:

Hi Denis

You can adjust the lib install dir when configuring cmake by specifying

|-DQGIS_LIB_SUBDIR=lib64 And yes, on Fedora /usr/lib is for 32bit libs, /usr/lib64 for 64bit libs. Sandro |



On 05.10.2016 09:49, Denis Rouzaud wrote:

Hi all,

Thanks a lot to Tudor, Sandro and Richard for your input.

To solve the issue, I had to do
export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH

This seems a bit strange to me, shouldn't /usr/lib be automaticaly used?

Does this means that installation somehow fails to place the lib in the proper place? /usr/lib64?

Cheers,

Denis

On 10/04/2016 02:18 PM, Richard Duivenvoorde wrote:
On 04-10-16 10:15, Denis Rouzaud wrote:
Hi all,

I have an issue with Python on Fedora.

After installing from a new clean clone and fresh build dir, if I do

  PYTHONPATH=$PYTHONPATH:/usr/share/qgis/python python -m qgis.PyQt.uic.pyuic

I get

/usr/bin/python: libqgis_core.so.2.17.0: cannot open shared object file:
No such file or directory

Although the lib is indeed in /usr/lib.

Also, if I run qgis from the build output and do
 From qgis.PyQt.uic import pyuic it crashes without any backtrace.

I don't know what to look for.
There are some issues on the hub, but I cannot find the connection with
this one.
Hi Denis,

should you not also set LD_LIBRARY_PATH? It looks like something is not
picking up your fresh lib files?

I compile/install myself in a custom dir, and have to set this both for
running QGIS or to run pyqgis stuff

export LD_LIBRARY_PATH=/home/richard/apps/qgis/master/debug/lib/

I also have another 'set environment' script, that set's the

export QGIS_PREFIX_PATH=/home/richard/apps/qgis/master/debug

maybe try that? Not sure what really is picked up to be honest.

Regards,

Richard Duivenvoorde





_______________________________________________
Qgis-developer mailing list
[email protected]
List info:http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe:http://lists.osgeo.org/mailman/listinfo/qgis-developer



_______________________________________________
Qgis-developer mailing list
[email protected]
List info:http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe:http://lists.osgeo.org/mailman/listinfo/qgis-developer


_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to