LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-24-2010, 08:54 AM   #1
Beekman
Member
 
Registered: Mar 2010
Location: Kampen, The Netherlands
Distribution: Ubuntu 14.04
Posts: 33

Rep: Reputation: 0
Problems comiling Wesnoth for my Ubuntu


Hi, I want to run the development version of the game Battle for Wesnoth, but I'm having some problems compiling it...

I downloaded the latest version (1.9.1) and followed the installation instructions;

cd /usr/src
sudo tar -xvjf wesnoth-1.9.1.tar.bz2
cd wesnoth-1.9.1
sudo ./configure --datadir=/usr/share/games/wesnoth/

I managed to get to this point, after some small problems, but 'configure' told me I needed SDL.
I installed SDL (libsdl1.2-dev) using the Software Center, but now it sais;
Code:
checking for SDL - version >= 1.2.7 and SDL_ttf - version >= 2.0.8... no
configure: error: *** Please upgrade your SDL and/or SDL_ttf version
The version that was installed seems to be 1.2.14
I also looked for sdl-ttf, and that was also already installed (version 2.0.9)

What would be the best thing to do for me, to get this working?
 
Old 09-24-2010, 10:04 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You installed the libs through the software center?

Open a terminal and enter:

sudo apt-get install libsdl-dev

that should collect anything you have missed, give you an error or tell you it is already the latest version.

(When coding, do as much as possible via commandline.)
 
Old 09-24-2010, 10:30 AM   #3
Beekman
Member
 
Registered: Mar 2010
Location: Kampen, The Netherlands
Distribution: Ubuntu 14.04
Posts: 33

Original Poster
Rep: Reputation: 0
Thanks for the reply...

Still te same problem, because it didn't update anything (already at the latest version, 0 updated etc...)
 
Old 09-24-2010, 10:49 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Is libsdl-ttf2.0-dev installed ? libsdl1.2-dev ?


And by the way ... sudo ./configure : is wrong.
Only 'make install' needs sudo , not ./configure , not make.

..

Last edited by knudfl; 09-24-2010 at 10:59 AM.
 
1 members found this post helpful.
Old 09-24-2010, 12:35 PM   #5
Beekman
Member
 
Registered: Mar 2010
Location: Kampen, The Netherlands
Distribution: Ubuntu 14.04
Posts: 33

Original Poster
Rep: Reputation: 0
Thanks, installing libsdl-ttf2.0-dev solved that problem indeed!
After that I had to install libsdl-image-dev, libdsl-mixer-dev and libdsl-net-dev.

After that I got the message;
Code:
checking for Boost headers version >= 1.35... no
configure: error: Could not find Boost headers version >= 1.35
I installed libboost-dev (first using software center, second using apt-get), but the problem persists...

Besides this last problem, I'm getting the feeling I'm doing something wrong...
Is everybody who has to compile this code installing all these lib's one-by-one?

Edit;
O, I needed libboost-all-dev instead of the default libboost-dev.
Now I can continue searching for the other missing lib's...

Last edited by Beekman; 09-24-2010 at 12:39 PM.
 
Old 09-24-2010, 12:39 PM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
I'll second the comment about sudo on ./configure - only ever install as root. If that turns out to be the problem I'll mumble mutter grumble... anyway:

http://www.wesnoth.org/forum/viewtopic.php?f=5&t=25247
there are neat discussions about all the different ways this error can appear on the wesnoth forums... seems I should have added the explicit install for libsdl-ttf-dev as well ... that would be:

sudo apt-get install libsdl-ttf2.0-dev

the most common cause of the error is missing dev libs for the main libs.
 
1 members found this post helpful.
Old 09-24-2010, 12:54 PM   #7
Beekman
Member
 
Registered: Mar 2010
Location: Kampen, The Netherlands
Distribution: Ubuntu 14.04
Posts: 33

Original Poster
Rep: Reputation: 0
I've forgotten why I sudoed configure... Maybe it was preventive
But the tar-command I had to sudo, because the installation instructions said to go to /usr/src/ and I didn't have the permissions to make directories there without sudo...

The first time I tried it, I created a directory as root and chmodded it. That's probably a better way to go then?

ANyway, the configure now finally succeeded.
But make gives me;
Code:
lapi.c:1086: fatal error: opening dependency file .deps/lapi.Tpo: Permission denied
My first try would be to sudo it, but I'll wait for your comments before I do something stupid again
 
Old 09-24-2010, 01:05 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
/usr/src/ is not meant for building anything.
Or anywhere else in " / " , except /home/...

Default is : /home/<name>/tmp/ ( Or another directory in /home/<name>/ )

.. And good luck with 'Battle for Wesnoth' + libboost1.40-all-dev !
..

Last edited by knudfl; 09-24-2010 at 01:08 PM.
 
Old 09-24-2010, 01:59 PM   #9
CincinnatiKid
Member
 
Registered: Jul 2010
Posts: 454

Rep: Reputation: 47
As far as I know, only kernel source should be in /usr/src. I always compile things in my /home/user directory, /usr/local/src might be a good alternative if you really don't want to use /home to compile things.
 
Old 09-25-2010, 02:02 AM   #10
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Probably a good idea if you show us where these instructions come from. Presumably they did not come with the tarball?
 
Old 09-25-2010, 03:22 AM   #11
Beekman
Member
 
Registered: Mar 2010
Location: Kampen, The Netherlands
Distribution: Ubuntu 14.04
Posts: 33

Original Poster
Rep: Reputation: 0
http://wiki.wesnoth.org/WesnothBinar...ux#Compiling_2
Code:
cd /usr/src
tar -xvjf wesnoth-1.x.x.tar.bz2
cd wesnoth-1.x.x
./configure --datadir=/usr/share/games ...
make
sudo make install
 
Old 09-25-2010, 06:38 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 11
Quote:
cd /usr/src
Yes, don't believe everything, you read on the internet.
/usr/src/ is definitely a misunderstanding.
..
 
  


Reply

Tags
compiling, sdl, wesnoth



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
im having trouble installing battle for wesnoth in ubuntu 9.10 help golgo Linux - Games 3 02-04-2010 11:19 AM
LXer: How-To: Compile and Install Wesnoth 1.6 in Debian Lenny and Ubuntu 8.10 LXer Syndicated Linux News 0 03-24-2009 04:10 AM
Not comiling right!?!? fleshwound Linux - General 7 01-21-2006 09:32 PM
problems comiling kernel ---- [drivers/md/dm-snapshot.ko] undefined nenyo Linux - Software 2 07-17-2005 08:14 PM
First time Kernal comiling richessence Red Hat 2 06-21-2005 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration