[Qgis-developer] cmake and ccmake usage - "Python bindings disabled"

icosa atropa icos.atropa at gmail.com
Fri Sep 14 22:57:36 EDT 2007


Thanks for previous ccmake+feisty+libgdal pointers.  I'm still getting
comfortable with cmake.  You pointed me in the right direction, and i
successfully built and ran 0.9.

I ran into some confusing cmake and ccmake behavior - using the
"ccmake" invocation, when I press "c" to configure my values, it
flashes messages including "Python bindings disabled due to dependency
problems" on the status bar... "e" doesn't show errors, and I can
still "g"enerate.  Is it possible to see (and respond to) these
messages in "ccmake"?

In cmake, what i'm assuming are the same messages go to the console.
I get I've verified the locations of the sip binary, python2.5
libraries, PyQt4, but I don't see where to specify PyQt4 location and
I still get

-- SIP not found!
-- PyQt4 not found!
-- Python bindings disabled due dependency problems!

any ideas?
best,
christian

On 9/11/07, Peter Ersts <ersts at amnh.org> wrote:
> icosa atropa wrote:
> > Finally, I have a question.  i'm using feisty, and during dependecy
> > install I had to make a package substitution with libgdal1.  Apt-get
> > tells me:
> >
>
> Icosa, you are right about the libgal library, it is a bit different for
> Feisty. Here is my initial apt-get statement I use on fresh copies of Feisty
>
> sudo apt-get install subversion g++ qt4-designer qt4-dev-tools cmake
> postgresql-
> 8.2 sip4 python-sip4 python-sip4-dbg python-sip4-dev grass libgrass
> libgrass-dev
> libgeos-dev gdal-bin libgdal1-1.3.2-dev flex bison gsl-bin libgsl0-dev
> sqlite3
> libsqlite3-dev python-qt4-dev
>
> That should be all you need to get qgis to compile....
>
> > and again
> >
> >   E: Couldn't find package libgdal1-grass
> >
>
> I believe that you only need this lib if you are building grass from
> source also
>
>
> > so I use libgdal1-1.3.2-grass instead.  No problem, easy going until
> > compile-time.
> >
> >   [ 25%] Building CXX object
> > src/core/CMakeFiles/qgis_core.dir/spatialindex/rtree/Statistics.o
> >   make[2]: *** No rule to make target
> > `/build/buildd/gdal-1.3.2/debian/tmp/usr/lib/libgdal1.3.2.so', needed
> > by  `src/core/libqgis_core.so'.  Stop.
> >   make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
> >   make: *** [all] Error 2
> >
>
> cmake is not finding the gdal library. From the build directory you can
> type:
> ccmake .
> in a terminal window and then you can set the correct path. You can also
> use a command line option to set the path to the gdal library. However,
> if you use the apt-get list above you should not have any problems.
>
> Hope that helps a little.
> -pete
>
> --
> ====================================
> Peter J. Ersts, Project Specialist
> American Museum of Natural History
> Center for Biodiversity and Conservation
> Central Park West at 79th Street
> New York, New York 10024
> Tel: (212)-496-3488 or (212)-769-5742
> Fax: (212)-313-7295 or (212)-769-5292
> Web: http://cbc.amnh.org
> Web: http://geospatial.amnh.org
>
> Open Source, Open Mind.
> ...evolving through community cooperation to change the world bit by bit
>
>
>


-- 
Far better an approximate answer to the right question, which is often
vague, than the exact answer to the wrong question, which can always
be made precise -- j.w. tukey



More information about the Qgis-developer mailing list