Compiling on Archlinux

Everything about ToME 4.x.x. No spoilers, please

Moderator: Moderator

Post Reply
Message
Author
Dinth
Low Yeek
Posts: 9
Joined: Fri Apr 20, 2007 12:32 pm
Contact:

Compiling on Archlinux

#1 Post by Dinth »

I want to compile TOME4 on Archlinux. I download source code and unpack it. Now i dont have any makefiles in it, so try to run:

Code: Select all

$ lua ./premake.lua
unfortunatelly i get error

Code: Select all

lua: ./premake4.lua:1: attempt to call global 'newoption' (a nil value)
stack traceback:
	./premake4.lua:1: in main chunk
	[C]: ?
What im doing wrong ?

greycat
Sher'Tul
Posts: 1396
Joined: Tue May 11, 2010 11:51 pm

Re: Compiling on Archlinux

#2 Post by greycat »

You need to install premake first. Then use these commands:

Code: Select all

premake4 gmake
make
(You might have to use some explicit pathname to the premake4 program, depending on exactly how you install it. I put mine in /usr/local/bin so I wouldn't have to worry about that.)

Dinth
Low Yeek
Posts: 9
Joined: Fri Apr 20, 2007 12:32 pm
Contact:

Re: Compiling on Archlinux

#3 Post by Dinth »

Ok thanks for help. Now i have TEngine compiled. How i should install it now (what directores/binaries/data files and where in my filesystem)

greycat
Sher'Tul
Posts: 1396
Joined: Tue May 11, 2010 11:51 pm

Re: Compiling on Archlinux

#4 Post by greycat »

I don't install it at all. I run it directly from where it was compiled. I believe this is the intent, though if one of the developers wants to correct me, I won't mind.

Dinth
Low Yeek
Posts: 9
Joined: Fri Apr 20, 2007 12:32 pm
Contact:

Re: Compiling on Archlinux

#5 Post by Dinth »

Thats bad, because i would like to package it for Archlinux to AUR repository:(

Shoob
Reaper
Posts: 1535
Joined: Mon Jan 22, 2007 6:31 pm
Location: East of the sun, west of the moon

Re: Compiling on Archlinux

#6 Post by Shoob »

AFAIK, you can move the compiled program anywhere and it wont affect it. The game contains everything it needs and will set up a folder automatically to contain information (saves/profile/etc) in the HOME directory.
Oliphant am I, and I never lie.

Dinth
Low Yeek
Posts: 9
Joined: Fri Apr 20, 2007 12:32 pm
Contact:

Re: Compiling on Archlinux

#7 Post by Dinth »

Ok, i will test it tomorow, and try to make package.
I also suggest devs to make TEngine respect linux directory schema - binary to /$prefix(usr)/bin, other files to /$prefix(usr)/lib/tengine4, etc...

also i have error when i want to run tengine

Code: Select all

q(23:11:%)  q(sob,lip17)j./t-engine
WARNING: No bootstrap code found, defaulting to working directory for engine code!
Lua Error: attempt to call a string value
	At [C]:-1 
PANIC: unprotected error in call to Lua API (Unable to initialize: attempt to call a string value)

greycat
Sher'Tul
Posts: 1396
Joined: Tue May 11, 2010 11:51 pm

Re: Compiling on Archlinux

#8 Post by greycat »

You might need to set up a shell script wrapper that changes working directory to wherever you've installed the Lua code, and then executes the actual binary.

madmonk
Reaper
Posts: 2257
Joined: Wed Dec 12, 2007 12:21 am
Location: New Zealand

Re: Compiling on Archlinux

#9 Post by madmonk »

Here:
./bin/Debug/t-engine
assuming you are in the root of the Tome directory...
Regards

Jon.

Post Reply