Compiling Crawl in Ubuntu


Problems running or configuring the software, commands & options, compiling, different platforms, using the interface, documentation, etc.

User avatar

Spider Stomper

Posts: 186

Joined: Friday, 8th March 2013, 13:27

Post Wednesday, 1st May 2013, 12:12

Compiling Crawl in Ubuntu

I want to try some vaults that I created. I'm on ubuntu.
As far as I understood, I need to include my vaults in the des files and then compile crawl with the make command (is that correct?).

The make command returns me an error message.

  Code:
federico@Orly:~/Desktop/stone_soup-0.11.2/source$ sudo make TILES=y
[sudo] password for federico:
  * If you experience any problems building Crawl, please take a second look
  * at INSTALL.txt: the solution to your problem just might be in there!
    GEN art-data.h
/bin/sh: 1: util/art-data.pl: Permission denied
make: *** [art-data.h] Error 126

I've already installed all dependencies as install.txt suggested as well as pkg-config and g++ and I don't know what to do. Please help.
Thanks in advance for your time, I promise many nice vaults if I manage to test them.

Spider Stomper

Posts: 243

Joined: Sunday, 28th August 2011, 14:04

Post Wednesday, 1st May 2013, 12:47

Re: Compiling Crawl in Ubuntu

It seems that it can't run util/art-data.pl. Perhaps the partition is mounted with noexec. Take a look at /etc/fstab.

For this message the author CommanderC has received thanks:
Marbit
User avatar

Spider Stomper

Posts: 186

Joined: Friday, 8th March 2013, 13:27

Post Wednesday, 1st May 2013, 12:54

Re: Compiling Crawl in Ubuntu

Here is what fstab has, I wouldn't know what to do with that. For me it is all mumbo jumbo.
  Code:
federico@Orly:/etc$ cat fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=7777a6db-a045-41b1-bd71-eaf615d35ec5 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=188895a3-0984-4ad7-be3e-38c39551a9fe none            swap    sw              0       0

hxy

Slime Squisher

Posts: 418

Joined: Friday, 11th February 2011, 13:09

Post Wednesday, 1st May 2013, 14:31

Re: Compiling Crawl in Ubuntu

Can you run "make" without "sudo" ? (you might need to remove the existing directory and re-extract the source code first)

For this message the author hxy has received thanks:
Marbit

Dungeon Master

Posts: 1531

Joined: Saturday, 5th March 2011, 06:29

Post Wednesday, 1st May 2013, 15:05

Re: Compiling Crawl in Ubuntu

Marbit wrote:I want to try some vaults that I created. I'm on ubuntu.
As far as I understood, I need to include my vaults in the des files and then compile crawl with the make command (is that correct?).


You don't need to compile. The .des files are basically Lua and if any are changed then the game automatically recompiles them every time it starts.

For this message the author mumra has received thanks:
Marbit
User avatar

Spider Stomper

Posts: 186

Joined: Friday, 8th March 2013, 13:27

Post Wednesday, 1st May 2013, 15:32

Re: Compiling Crawl in Ubuntu

@hxy
Downloading the files again and using make works!
make TILES= y
produces the following error:

  Code:
federico@Orly:~/Desktop/Crawl2/source$ make TILES=y
  * If you experience any problems building Crawl, please take a second look
  * at INSTALL.txt: the solution to your problem just might be in there!
make -C rltiles all ARCH=i686-linux-gnu TILES=y
make[1]: Entering directory `/home/federico/Desktop/Crawl2/source/rltiles'
    HOSTCXX tool/tile.o
tool/tile.cc:9:25: fatal error: SDL_image.h: No such file or directory
compilation terminated.
make[1]: *** [tool/tile.o] Error 1
make[1]: Leaving directory `/home/federico/Desktop/Crawl2/source/rltiles'
make: *** [build-rltiles] Error 2


My guess is that the something that the tiles version might need is not there.
As the install file recomended I ran the following comand:
apt-get install build-essential libncursesw5-dev bison flex liblua5.1-0-dev \
libsqlite3-dev libz-dev pkg-config libsdl-image1.2-dev libsdl1.2-dev \
libfreetype6-dev libpng-dev ttf-dejavu-core
User avatar

Spider Stomper

Posts: 186

Joined: Friday, 8th March 2013, 13:27

Post Wednesday, 1st May 2013, 15:35

Re: Compiling Crawl in Ubuntu

mumra wrote:You don't need to compile. The .des files are basically Lua and if any are changed then the game automatically recompiles them every time it starts.


I'm very confused, I've read what you say but I don't see des files anywhere in my crawl directory.
  Code:
federico@Orly:~/.crawl$ ls -R |grep des
des
descriptions.db
descriptions.lk
./saves/des:
federico@Orly:~/.crawl$


Perhaps I'm looking in the wrong place.

Ziggurat Zagger

Posts: 3163

Joined: Friday, 6th January 2012, 18:45

Post Wednesday, 1st May 2013, 15:42

Re: Compiling Crawl in Ubuntu

The folder with the executable should contain a dat folder, which contains the des folder.

For this message the author BlackSheep has received thanks:
Marbit
User avatar

Spider Stomper

Posts: 186

Joined: Friday, 8th March 2013, 13:27

Post Wednesday, 1st May 2013, 16:26

Re: Compiling Crawl in Ubuntu

BlackSheep wrote:The folder with the executable should contain a dat folder, which contains the des folder.


I installed crawl via the apt-get command that works in mysterious ways.
The executable ended up in /usr/games and the files in my home folder (./crawl) but the dat folder is nowhere to be found.
I was trying to compile the program by myself to get a bit more control over the situation and now I have the problem (partially) solved, I just need to get the tiles version.

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 16 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.