compiling wesnoth 1.3.6 Fedora 7 - PyObject problem
Moderator: Forum Moderators
compiling wesnoth 1.3.6 Fedora 7 - PyObject problem
I've download the source code from the Download page and try to compile it. The error which I found in the output gived by make is:
I'm with Fedora 7 and python 2.4
Code: Select all
In file included from ai.cpp:18:
ai_python.hpp:9:20: error: Python.h: No such file or directory
ai_python.hpp:12: error: ISO C++ forbids declaration of ‘PyObject_HEAD’ with no type
ai_python.hpp:13: error: expected ‘;’ before ‘const’
ai_python.hpp:17: error: ISO C++ forbids declaration of ‘PyObject_HEAD’ with no type
ai_python.hpp:18: error: expected ‘;’ before ‘const’
ai_python.hpp:22: error: ISO C++ forbids declaration of ‘PyObject_HEAD’ with no type
ai_python.hpp:23: error: expected ‘;’ before ‘const’
ai_python.hpp:34: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:34: error: expected ‘;’ before ‘*’ token
ai_python.hpp:35: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:35: error: expected ‘;’ before ‘*’ token
ai_python.hpp:36: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:36: error: expected ‘;’ before ‘*’ token
ai_python.hpp:37: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:37: error: expected ‘;’ before ‘*’ token
ai_python.hpp:39: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:39: error: expected ‘;’ before ‘*’ token
ai_python.hpp:40: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:40: error: expected ‘;’ before ‘*’ token
ai_python.hpp:41: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:41: error: expected ‘;’ before ‘*’ token
ai_python.hpp:42: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:42: error: expected ‘;’ before ‘*’ token
ai_python.hpp:43: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:43: error: expected ‘;’ before ‘*’ token
ai_python.hpp:44: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:44: error: expected ‘;’ before ‘*’ token
ai_python.hpp:45: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:45: error: expected ‘;’ before ‘*’ token
ai_python.hpp:46: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:46: error: expected ‘;’ before ‘*’ token
ai_python.hpp:47: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:47: error: expected ‘;’ before ‘*’ token
ai_python.hpp:48: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:48: error: expected ‘;’ before ‘*’ token
ai_python.hpp:49: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:49: error: expected ‘;’ before ‘*’ token
ai_python.hpp:50: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:50: error: expected ‘;’ before ‘*’ token
ai_python.hpp:51: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:51: error: expected ‘;’ before ‘*’ token
ai_python.hpp:52: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:52: error: expected ‘;’ before ‘*’ token
ai_python.hpp:53: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:53: error: expected ‘;’ before ‘*’ token
ai_python.hpp:54: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:54: error: expected ‘;’ before ‘*’ token
ai_python.hpp:55: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:55: error: expected ‘;’ before ‘*’ token
ai_python.hpp:56: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:56: error: expected ‘;’ before ‘*’ token
ai_python.hpp:57: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:57: error: expected ‘;’ before ‘*’ token
ai_python.hpp:59: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:59: error: expected ‘;’ before ‘*’ token
ai_python.hpp:60: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:60: error: expected ‘;’ before ‘*’ token
ai_python.hpp:61: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:61: error: expected ‘;’ before ‘*’ token
ai_python.hpp:62: error: ISO C++ forbids declaration of ‘PyObject’ with no type
ai_python.hpp:62: error: expected ‘;’ before ‘*’ token
make[2]: *** [ai.o] Error 1
make[2]: Leaving directory `/torrents/private/m3/wesnoth-1.3.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/torrents/private/m3/wesnoth-1.3.6'
make: *** [all] Error 2
I checked again and it turns out that I am with 2.5 too.
I am using yum for all except for development packages (like wesnoth 1.3.6), so it`s not in my python installation.
I have an idea:
can you give me what python packages you`ve got.
easiest way imho is to write
Thanks!
I am using yum for all except for development packages (like wesnoth 1.3.6), so it`s not in my python installation.
I have an idea:
can you give me what python packages you`ve got.
easiest way imho is to write
Code: Select all
$ yum list | grep -i python | grep installed
Here's what i have :
I think those 3 are the needed part :
Code: Select all
audit-libs-python.i386 1.5.3-1.fc7 installed
cracklib-python.i386 2.8.9-10 installed
dbus-python.i386 0.81.1-1.fc7 installed
gnome-python2.i386 2.18.1-1.fc7 installed
gnome-python2-applet.i386 2.18.0-1.fc7 installed
gnome-python2-bonobo.i386 2.18.1-1.fc7 installed
gnome-python2-canvas.i386 2.18.1-1.fc7 installed
gnome-python2-desktop.i386 2.18.0-1.fc7 installed
gnome-python2-extras.i386 2.14.3-4.fc7 installed
gnome-python2-gconf.i386 2.18.1-1.fc7 installed
gnome-python2-gnomeprint.i386 2.18.0-1.fc7 installed
gnome-python2-gnomevfs.i386 2.18.1-1.fc7 installed
gnome-python2-gtkhtml2.i386 2.14.3-4.fc7 installed
gnome-python2-gtksourceview.i386 2.18.0-1.fc7 installed
gnome-python2-libegg.i386 2.14.3-4.fc7 installed
gnome-python2-libwnck.i386 2.18.0-1.fc7 installed
libselinux-python.i386 2.0.14-4.fc7 installed
libxml2-python.i386 2.6.29-1.fc7 installed
libxslt-python.i386 1.1.21-1.fc7 installed
mod_python.i386 3.3.1-3 installed
notify-python.i386 0.1.0-4.fc7 installed
python.i386 2.5-12.fc7 installed
python-devel.i386 2.5-12.fc7 installed
python-imaging.i386 1.1.6-3.fc7 installed
python-imaging-tk.i386 1.1.6-3.fc7 installed
python-libs.i386 2.5-12.fc7 installed
python-numeric.i386 24.2-4.fc7 installed
python-setuptools.noarch 0.6c6-1.fc7 installed
python-sqlite2.i386 1:2.3.3-1.fc7 installed
python-urlgrabber.noarch 2.9.9-5.fc7 installed
rpm-python.i386 4.4.2-46.fc7 installed
Code: Select all
python.i386 2.5-12.fc7 installed
python-devel.i386 2.5-12.fc7 installed
python-libs.i386 2.5-12.fc7 installed
"Ooh, man, my mage had a 30% chance to miss, but he still managed to hit! Awesome!"
-- xtifr
