Page 1 of 1

Compiling Crawl in Ubuntu

PostPosted: Wednesday, 1st May 2013, 12:12
by Marbit
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.

Re: Compiling Crawl in Ubuntu

PostPosted: Wednesday, 1st May 2013, 12:47
by CommanderC
It seems that it can't run util/art-data.pl. Perhaps the partition is mounted with noexec. Take a look at /etc/fstab.

Re: Compiling Crawl in Ubuntu

PostPosted: Wednesday, 1st May 2013, 12:54
by Marbit
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

Re: Compiling Crawl in Ubuntu

PostPosted: Wednesday, 1st May 2013, 14:31
by hxy
Can you run "make" without "sudo" ? (you might need to remove the existing directory and re-extract the source code first)

Re: Compiling Crawl in Ubuntu

PostPosted: Wednesday, 1st May 2013, 15:05
by mumra
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.

Re: Compiling Crawl in Ubuntu

PostPosted: Wednesday, 1st May 2013, 15:32
by Marbit
@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

Re: Compiling Crawl in Ubuntu

PostPosted: Wednesday, 1st May 2013, 15:35
by Marbit
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.

Re: Compiling Crawl in Ubuntu

PostPosted: Wednesday, 1st May 2013, 15:42
by BlackSheep
The folder with the executable should contain a dat folder, which contains the des folder.

Re: Compiling Crawl in Ubuntu

PostPosted: Wednesday, 1st May 2013, 16:26
by Marbit
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.