Page 1 of 1
Compiling on Archlinux
Posted: Sat Jul 17, 2010 10:39 am
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:
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 ?
Re: Compiling on Archlinux
Posted: Sat Jul 17, 2010 2:01 pm
by greycat
You need to install
premake first. Then use these commands:
(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.)
Re: Compiling on Archlinux
Posted: Sat Jul 17, 2010 4:18 pm
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)
Re: Compiling on Archlinux
Posted: Sat Jul 17, 2010 5:24 pm
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.
Re: Compiling on Archlinux
Posted: Sat Jul 17, 2010 6:54 pm
by Dinth
Thats bad, because i would like to package it for Archlinux to AUR repository:(
Re: Compiling on Archlinux
Posted: Sat Jul 17, 2010 7:03 pm
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.
Re: Compiling on Archlinux
Posted: Sat Jul 17, 2010 9:10 pm
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)
Re: Compiling on Archlinux
Posted: Sun Jul 18, 2010 2:10 pm
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.
Re: Compiling on Archlinux
Posted: Sun Jul 18, 2010 6:21 pm
by madmonk
Here:
./bin/Debug/t-engine
assuming you are in the root of the Tome directory...