[Solved] 1.3.10 compile problem

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
mormegil
Posts: 6
Joined: November 11th, 2007, 10:06 pm
Location: Prague
Contact:

[Solved] 1.3.10 compile problem

Post by mormegil »

Hi!

I compiled succesfuly many versions of wesnoth, but with the current version 1.3.10 the process crashes during the "make install" phase:

Code: Select all

 /usr/bin/install -c -m 644 'data/tools/wesnoth/wmltools.py' '/wmltools.py'
 /usr/bin/install -c -m 644 'data/tools/wesnoth/wmldata.py' '/wmldata.py'
 /usr/bin/install -c -m 644 'data/tools/wesnoth/wmlparser.py' '/wmlparser.py'
 /usr/bin/install -c -m 644 'data/tools/wesnoth/campaignserver_client.py' '/campaignserver_client.py'
 /usr/bin/install -c -m 644 'data/tools/wesnoth/__init__.py' '/__init__.py'
./config/py-compile: Missing argument to --basedir.
make[2]: *** [install-pkgpythonPYTHON] Error 1
make[2]: Leaving directory `/home/kalvin/temp/wesnoth-1.3.10'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/kalvin/temp/wesnoth-1.3.10'
make: *** [install-recursive] Error 1
These *.py files ends in /, but the game runs just fine. :o

My Python version is 2.5.1 and I am using Ubuntu Gutsy Gibbon. I can provide any further information if needed.

Thank you for great game!

Mormegil
Last edited by mormegil on November 12th, 2007, 6:56 pm, edited 1 time in total.
twinoatl
Posts: 6
Joined: October 22nd, 2007, 7:10 am

Bug confirmed

Post by twinoatl »

I confirm this bug. I'm also on Gutsy Gibbons.

Edit: I tried with version 1.3.9 and obtain the same result.
mormegil
Posts: 6
Joined: November 11th, 2007, 10:06 pm
Location: Prague
Contact:

Yes

Post by mormegil »

You are right, now I get the same error with 1.3.9. But last month with Feisty it compiled smoothly. So it is some problem with Python in Gibbon, however I have no idea how to fix it :-).

Mormegil
turska
Posts: 20
Joined: October 8th, 2007, 12:40 pm

Post by turska »

You could pass the --disable-python parameter to configure, but if you do that you obviously won't be able to use AIs written in Python.
PsionicSliver
Posts: 14
Joined: April 27th, 2007, 5:38 pm

Post by PsionicSliver »

SVN version works fine for me on Gutsy (Kubuntu).

Maybe you need python-dev package?

I'll check for any discrepancies between SVN config and release config files when I get a chance.

~Psionic Sliver
mormegil
Posts: 6
Joined: November 11th, 2007, 10:06 pm
Location: Prague
Contact:

solved

Post by mormegil »

Yes! You are right, somehow after the upgrade to Gutsy I miss python-dev. Strange that ./configure did not failed, now I see that it complained once, but i did not notice it...

So,

Code: Select all

sudo aptitude install python-dev
sudo ldconfig
make distclean
./configure
make
make install
does the job.

Thank you for your tip!

Mormegil
PsionicSliver
Posts: 14
Joined: April 27th, 2007, 5:38 pm

Post by PsionicSliver »

Glad that helped.

A quick glance at the configure file shows that it adds an include python flag if you have python installed. It only checks for the headers later, and sets pythonfound to no, even though the check on this variable has already occurred.
Icekiss
Posts: 63
Joined: February 19th, 2004, 11:50 am

Post by Icekiss »

Had the same problem on compiling wesnoth 1.3.10 (on Debian unstable). Without this thread I would not have known what to do - the error message isn't exactly easily translatable into what is actually broken. My opinion: It would be quite advisable to fix/include the check in configure... :P
If you are a debian linux user, take a look at my program: http://deb-install.sourceforge.net/
Post Reply