Re: [Qgis-user] QGIS 0.9 cannot find libqgis_core.so

2007-08-05 Thread Martin Dobias
On 7/31/07, Tim Sutton [EMAIL PROTECTED] wrote:
 Hi Magnus


 Em 27/07/2007, às 21:00, Magnus Homann escreveu:

 If that's the way you like it, sure. The discussion we had was not about
 _how_ but it circled around _if_.


 Ah I confess to not going back to the archives... I guess we could always
 put in a USE_RPATH flag into cmake so people can pick their preference and
 then just wrap the rpath stuff in a

 IF (USE_RPATH)
   blah
 ENDIF (USE_RPATH)

 How does that sound?

Going again through discussions on several mailing lists (debian,
cmake, kde), I still don't know how to do this right. Some say that
using rpath is great because it forces to use harcoded runtime paths,
other say it's evil because of that. Bad thing is that rpath overrides
LD_LIBRARY_PATH setting, which might be confusing. Also it adds some
pain to distributors (IMHO). But it makes life easier for users which
compile the software by themselves and don't use packaged versions.

So, what to do? I would say that the best choice is to forget rpath
completely and let users set LD_LIBRARY_PATH manually. But if you
insist to use rpath, then the best way is the one you propose: make it
configureable and turn it on by default.

Martin
___
Qgis-user mailing list
Qgis-user@lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS 0.9 cannot find libqgis_core.so

2007-07-31 Thread Tim Sutton

Hi Magnus

Em 27/07/2007, às 21:00, Magnus Homann escreveu:


Tim Sutton wrote:

Hi Folks

This should be fixed now in the recently tagged preview 1 (r7108).
Credit should go to Magnus as I shamelessly used his rpath work from
0.8.1 release :-) It was basically same as my suggestion below except
I needed to apply it to src/app/CMakeLists.txt


If that's the way you like it, sure. The discussion we had was not  
about

_how_ but it circled around _if_.



Ah I confess to not going back to the archives... I guess we could  
always put in a USE_RPATH flag into cmake so people can pick their  
preference and then just wrap the rpath stuff in a


IF (USE_RPATH)
  blah
ENDIF (USE_RPATH)

How does that sound?

Regards

Tim


Magnus
--
Magnus Homann
[EMAIL PROTECTED]
+46 702 399 558
___
Qgis-user mailing list
Qgis-user@lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user



Tim Sutton

QGIS Project Steering Committee Member - Release  Manager
Visit http://qgis.org for a great open source GIS

openModeller Desktop Developer
Visit http://openModeller.sf.net for a great open source ecological  
niche modelling tool


Home Page: http://tim.linfiniti.com
Skype: timlinux
Irc: timlinux on #qgis at freenode.net





PGP.sig
Description: This is a digitally signed message part
___
Qgis-user mailing list
Qgis-user@lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS 0.9 cannot find libqgis_core.so

2007-07-27 Thread Magnus Homann
Tim Sutton wrote:
 Hi Folks
 
 This should be fixed now in the recently tagged preview 1 (r7108).
 Credit should go to Magnus as I shamelessly used his rpath work from
 0.8.1 release :-) It was basically same as my suggestion below except
 I needed to apply it to src/app/CMakeLists.txt

If that's the way you like it, sure. The discussion we had was not about 
_how_ but it circled around _if_.

Magnus
-- 
Magnus Homann
[EMAIL PROTECTED]
+46 702 399 558
___
Qgis-user mailing list
Qgis-user@lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS 0.9 cannot find libqgis_core.so

2007-07-25 Thread Tim Sutton

Hi Magnus!

Doesnt adding this to src/gui/CMakeLists.txt fix the issue?


SET_TARGET_PROPERTIES(qgis PROPERTIES
  INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
  INSTALL_RPATH_USE_LINK_PATH true
)

I seem to recall you did some magic like this in 0.8.x ?

Regards

Tim

Em 22/07/2007, às 17:56, Magnus Homann escreveu:


Maciej Sieczka wrote:


I added the /usr/local/qgis09/lib/ to my /etc/ld.so.conf, run sudo
ldconfig and it works. However, I wonder why this was necessary for
0.9, while for 0.8.1, which is installed in parallel in
/urs/local/qgis08 with the same directory structure, it was not?


There was some discussion half a year ago on how this should be done.

The consensus (then) was that no special path should be compiled into
the binary, but the use LD_LIBRARY_PATH et. al. is preferred.

Magnus
--  
Magnus Homann

[EMAIL PROTECTED]
+46 702 399 558
___
Qgis-user mailing list
Qgis-user@lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user



Tim Sutton

QGIS Project Steering Committee Member - Release  Manager
Visit http://qgis.org for a great open source GIS

openModeller Desktop Developer
Visit http://openModeller.sf.net for a great open source ecological  
niche modelling tool


Home Page: http://tim.linfiniti.com
Skype: timlinux
Irc: timlinux on #qgis at freenode.net



___
Qgis-user mailing list
Qgis-user@lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user


[Qgis-user] QGIS 0.9 cannot find libqgis_core.so

2007-07-22 Thread Maciej Sieczka
Hi

I have just successfully built and installed QGIS 0.9 with cmake first
time ever. Steps were as follows:

1. svn co https://svn.qgis.org/repos/qgis/trunk/qgis qgis09
2. mkdir build
3. cd build
4. cmake -D CMAKE_INSTALL_PREFIX=/usr/local/qgis09 -D WITH_GRASS=ON -D
GRASS_PREFIX=/usr/local/grass-6.3.cvs ..
5. make
6. sudo make install

No errors spotted in the process. But trying to run it, I get an error:

$ /usr/local/qgis09/bin/qgis
/usr/local/qgis09/bin/qgis: error while loading shared libraries:
libqgis_core.so: cannot open shared object file: No such file or directory

The library is where it shouild be, I guess:

$ ls -l /usr/local/qgis09/lib/
total 2936
-rw-r--r-- 1 root root 2371146 2007-07-22 15:29 libqgis_core.so
-rw-r--r-- 1 root root  222770 2007-07-22 15:29 libqgisgrass.so
-rw-r--r-- 1 root root  392341 2007-07-22 15:29 libqgis_gui.so
drwxr-xr-x 2 root root4096 2007-07-22 15:29 qgis

What could be wrong?

Maciek

P.S.

I'm leaving for a few days in hours, so I might be not able to reply.
Thus thanks in advance to any hints. I'll gladly look into them when
I'm back.

Best
Maciek
___
Qgis-user mailing list
Qgis-user@lists.qgis.org
http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user