[Qgis-developer] Problem with python bindings

Carlos Dávila cdavilam at jemila.jazztel.es
Wed Mar 5 11:49:12 EST 2008


Martin Dobias escribió:
> On Tue, Mar 4, 2008 at 5:49 PM, Carlos Dávila
> <cdavilam at jemila.jazztel.es> wrote:
>   
>>  > Can you tak a look to the python/core and python/gui directories in
>>  > the svn checkout? Do you see only .sip files or are there also
>>  > core.sbf resp. gui.sbf files?
>>  >
>>  Only .sip files in both directories.
>>     
>
> So this looks like python configure script or SIP binary fail to run
> correctly. Try this: go to your build directory, enter python subdir.
> There you should find configure.py script. In console run: python
> configure.py
> Does it report any error?
This is what I get:
~/Paquetes/qgis/0.9.2/build/python$ python configure.py
Parsing SIP files for 'core' library...
sip: Usage: sip [-h] [-V] [-a file] [-c dir] [-d file] [-e] [-g] [-I
dir] [-j #]                       [-m file] [-p module] [-r] [-s suffix]
[-t tag] [-w] [-x feature] [-z file] [fi                      le]
Parsing SIP files for 'gui' library...
sip: Usage: sip [-h] [-V] [-a file] [-c dir] [-d file] [-e] [-g] [-I
dir] [-j #]                       [-m file] [-p module] [-r] [-s suffix]
[-t tag] [-w] [-x feature] [-z file] [fi                      le]
Creating makefiles...
Creating qgisconfig.py...
Done

It seems to be some problem parsing SIP files.

I have tried compiling a fresh svn in a different partition (to rule out
permission issues) and the result is different:
[ 66%] Generating core/Makefile, gui/Makefile
Parsing SIP files for 'core' library...
Parsing SIP files for 'gui' library...
Creating makefiles...
Creating qgisconfig.py...
Done
[ 66%] Generating core/core.so
make[3]: g++: program not found
make[3]: *** [sipcorecmodule.o] Error 127
make[2]: *** [python/core/core.so] Error 2
make[1]: *** [python/CMakeFiles/python.dir/all] Error 2
make: *** [all] Error 2

I have seen cmake_cxx_compiler is different between the two machines I'm
working on. The one I can compile without errors uses /usr/bin/c++ and
the one with problems uses /usr/bin/g++-4.2, so I guess the problem can
come from this. I'll test tomorrow and comment the result.
Regards
Carlos


More information about the Qgis-developer mailing list