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

Martin Dobias wonder.sk at gmail.com
Tue Apr 10 17:43:06 EDT 2007


On 4/10/07, Mark Coletti <mcoletti at lychnobite.org> wrote:
>
> > >mcoletti at mcolettib886:~/projects/qgis> make
> > >[  0%] Built target svnversion
> > >[  9%] Built target ui
> > >[ 27%] Built target qgis_core
> > >[ 33%] Built target qgis_gui
> > >[ 65%] Built target qgis
> > >[ 69%] Built target translations
> > >make[2]: *** No rule to make target `src/core/libqgis_core.so', needed by
> > >`python/core/Makefile'.  Stop.
> > >make[1]: *** [python/CMakeFiles/python.dir/all] Error 2
> > >make: *** [all] Error 2
>
> ----- End forwarded message -----
>
>   A temporary work around is to create symbolic links to the existing
>   libraries for which the make file is looking.  Note that this will
>   have to be done for both 'libqgis_core.so' and 'libqgis_gui.so', as
>   so:
>
> 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
>
>
>   I suspect that the problem cause is because I want to install qgis
>   and the python bindings in my home directory.  That is, some CMake
>   settings might presume that global bindings and '/usr/local' as the
>   default prefix.  I admit this is just a guess.  Maybe someone else
>   can try to build and install everything into their home directory to
>   possibly reproduce my errors?

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?

Martin



More information about the Qgis-developer mailing list