Hi,
i would like to know if python 2.4 is supported?
I tried to build on CentOS 5.2 i686 (gcc (GCC) 4.1.2 20071124 (Red Hat
4.1.2-42); Python 2.4.3 (#1, May 24 2008, 13:47:28))
and I’m getting the following errors (extracted from the rpmbuild log -
I can send the whole log if necessary):
- /usr/bin/cmake -DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib
-DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib
-DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share
-DCMAKE_SKIP_RPATH:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON
-DCMAKE_BUILD_TYPE=Release -DENABLE_GLSL=ON -DENABLE_PYTHON=ON
-DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=lib …
– The C compiler identification is GNU
– The CXX compiler identification is GNU
– Check for working C compiler: /usr/bin/gcc
– Check for working C compiler: /usr/bin/gcc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– The build type is Release
– Performing Test HAVE_GCC_VISIBILITY
– Performing Test HAVE_GCC_VISIBILITY - Success
– Performing Test COMPILES_WITHOUT_FPERMISSIVE
– Performing Test COMPILES_WITHOUT_FPERMISSIVE - Success
– Looking for Q_WS_X11
– Looking for Q_WS_X11 - found
– Looking for Q_WS_WIN
– Looking for Q_WS_WIN - not found.
– Looking for Q_WS_QWS
– Looking for Q_WS_QWS - not found.
– Looking for Q_WS_MAC
– Looking for Q_WS_MAC - not found.
– Found Qt-Version 4.4.3
– Found OpenSSL: /usr/lib/libssl.so
– Looking for _POSIX_TIMERS
– Looking for _POSIX_TIMERS - found
– Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
– Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so -
found
– Looking for gethostbyname
– Looking for gethostbyname - found
– Looking for connect
– Looking for connect - found
– Looking for remove
– Looking for remove - found
– Looking for shmat
– Looking for shmat - found
– Looking for IceConnectionNumber in ICE
– Looking for IceConnectionNumber in ICE - found
– Found X11: /usr/lib/libX11.so
– checking for module ‘openbabel-2.0>=2.2.0’
– found openbabel-2.0, version 2.2.0
– Found OpenBabel 2.2 or later: openbabel
– Found OpenBabel2 executable: /usr/bin/babel
– Found lupdate: /usr/lib/qt44/bin/lupdate
– Found lrelease: /usr/lib/qt44/bin/lrelease
– Found Eigen2: /usr/include/eigen2
– Searching for python dependencies…
– [1/5] Boost Python
– Boost version: 1.33.1
– Found the following Boost libraries:
– python
– Boost Python found…
– [2/5] Python Libraries
– Found PythonLibs: /usr/lib/python2.4/config/libpython2.4.a
– [3/5] Python Interpreter
– Found PythonInterp: /usr/bin/python2.4
– [4/5] Numpy Module
– Numpy headers found
– [5/5] SIP Module
– Found sip.h header…
– All python dependencies found - Python support enabled
– GLEW found and GLSL support enabled
– Threaded OpenGL rendering not enabled
– Setting new boost python libraries
– Enabled python terminal
– Python site-packages directory: /usr/lib/python2.4/site-packages
– Configuring done
– Generating done
…
cd
/usr/src/redhat/BUILD/avogadro-0.9.2/i386-redhat-linux-gnu/libavogadro/src
&& /usr/bin/c++ -D_BSD_SOURCE -DHAVE_GCC_VISIBILITY -DENABLE_PYTHON
-DENABLE_GLSL -DQT_DLL -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_NO_DEBUG -Davogadro_lib_EXPORTS -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
–param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi
-Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith
-Wformat-security -fno-check-new -fno-common -pedantic
-fvisibility=hidden -fpermissive -O2 -DNDEBUG -DQT_NO_DEBUG -fPIC
-I/usr/lib/qt44/include -I/usr/lib/qt44/include/QtOpenGL
-I/usr/lib/qt44/include/QtGui -I/usr/lib/qt44/include/QtCore
-I/usr/src/redhat/BUILD/avogadro-0.9.2/libavogadro/include
-I/usr/src/redhat/BUILD/avogadro-0.9.2
-I/usr/src/redhat/BUILD/avogadro-0.9.2/i386-redhat-linux-gnu/libavogadro/src
-I/usr/include/eigen2 -I/usr/include/openbabel-2.0
-I/usr/include/python2.4 -o
CMakeFiles/avogadro-lib.dir/pythontool.cpp.o -c
/usr/src/redhat/BUILD/avogadro-0.9.2/libavogadro/src/pythontool.cpp
/usr/include/python2.4/object.h:343: error: expected unqualified-id
before ‘;’ token
/usr/include/python2.4/object.h:343: error: abstract declarator
’PyObject*’ used as declaration
/usr/src/redhat/BUILD/avogadro-0.9.2/libavogadro/src/pythontool.cpp: In
member function ‘QUndoCommand* Avogadro::PythonTool::mouseEvent(const
QString&, Avogadro::GLWidget*, QMouseEvent*)’:
/usr/src/redhat/BUILD/avogadro-0.9.2/libavogadro/src/pythontool.cpp:139:
warning: invalid conversion from ‘const char*’ to 'char*'
make[2]: ***
[libavogadro/src/CMakeFiles/avogadro-lib.dir/pythontool.cpp.o] Error 1
Best regards,
Marcin