[Qgis-developer] Cmake and the unhappy python build]

Martin Dobias wonder.sk at gmail.com
Tue Apr 10 18:42:05 EDT 2007


On 4/11/07, Mark Coletti <mcoletti at lychnobite.org> wrote:
> On Tue, Apr 10, 2007 at 11:43:06PM +0200, Martin Dobias wrote:
> > On 4/10/07, Mark Coletti <mcoletti at lychnobite.org> wrote:
> [...]
> > >mcoletti at mcolettib886:~/projects/qgis> ln -s ~/lib/libqgis_core.so
> > >src/core/libqgis_core.so
> > >mcoletti at mcolettib886:~/projects/qgis> ln -s ~/lib/libqgis_gui.so
> > >src/gui/libqgis_gui.so
>
> [...]
>
> > libqgis_core.so and libqgis_gui.so must reside also in src/core/ resp.
> > src/gui/ subdirectory from where you build. I don't understand why
> > it's not there in your case... I build always to my home directory so
> > there shouldn't be any difference. Can you check from where are the
> > qgis_core and qgis_gui libraries copied on make install?
>
>   As the quoted text suggests, both libraries are installed in
>   $HOME/lib.  And, yes, they do exist:
>
> mcoletti at mcolettib886:~/projects/qgis> ll ~/lib/libqgis*.so
> lrwxrwxrwx 1 mcoletti users       25 2007-01-25 13:29 /home/mcoletti/lib/libqgis_composer.so -> libqgis_composer.so.1.0.0
> -rw-r--r-- 1 mcoletti users 15760552 2007-04-10 17:35 /home/mcoletti/lib/libqgis_core.so
> lrwxrwxrwx 1 mcoletti users       21 2006-10-16 15:10 /home/mcoletti/lib/libqgisgrass.so -> libqgisgrass.so.0.0.1
> -rw-r--r-- 1 mcoletti users  4699076 2007-04-10 17:35 /home/mcoletti/lib/libqgis_gui.so
> lrwxrwxrwx 1 mcoletti users       23 2007-01-25 13:29 /home/mcoletti/lib/libqgis_legend.so -> libqgis_legend.so.1.0.0
> lrwxrwxrwx 1 mcoletti users       23 2007-01-25 13:29 /home/mcoletti/lib/libqgis_raster.so -> libqgis_raster.so.1.0.0
>
>
>   And now when I run qgis, it core dumps.  Something is most unhappy.  :-\
>
>   I'm going to make clean and try the build source directory.  I'm
>   have a feeling that's not going to help.

But I haven't asked where are the libs installed (your $HOME/lib) - I
asked about their presence in qgis source tree: libqgis_core.so must
be created in BUILD_DIR/src/core directory - BUILD_DIR is
~/projects/qgis in your case. So ~/projects/qgis/src/core is the place
where makefiles for python bindings search for the library. Is
libqgis_core.so there or it isn't?

Btw. you have also files from old qgis installation in ~/lib (e.g.
qgis_composer, qgis_legend etc). While they shouldn't do any harm,
there's not much use for them.

Martin



More information about the Qgis-developer mailing list