You are not logged in.
Infon Battle Arena is a programming game. You control your creatures using the Lua programming language and let them compete for food and survival. Play online against other players! It is like corewars on steroids
Homepage: http://infon.dividuum.de/
Github: https://github.com/dividuum/infon/
Debian: https://packages.qa.debian.org/i/infon.html
I can't compile infon. Would anybody be so kind to make a PKGBUILD for it ?
Ps if you need the sge package from AUR, you probably need the download link I provided in the comments of that package.
With best regards,
Birkov
Offline
Compiles just fine. I might give PKGBUILD a try later today.
Offline
Thank you very much for the quick reply !
Looking forward to your PKGBUILD.
Edit: the compile errors that I get are:
/usr/bin/ld: cannot find -levent
/usr/bin/ld: cannot find -lrt
collect2: error: ld returned 1 exit status
Makefile:199: recipe for target 'infond' failed
make: *** [infond] Error 1Last edited by Birkov (2015-01-11 11:44:34)
Offline
https://github.com/dividuum/infon/
Requirements:
Server:
libevent (tested with 1.1a)
zlibClient:
libevent
zlib2D SDL based renderer:
SDL (tested with 1.2.8)
SDL_image
SDL_gfx
SGE3D OpenGL based renderer:
SDL
OpenGL
Make sure you have all of those installed before trying to build it.
Last edited by ▫ ▪ ▫ (2015-01-11 12:09:17)
Offline
pacman -Ss libevent
core/libevent 2.0.21-3 [installed]
pacman -Ss zlib
core/zlib 1.2.8-3 [installed]
pacman -Ss sdl
extra/sdl 1.2.15-7 [installed]
pacman -Ss sdl_image
extra/sdl_image 1.2.12-3 [installed]
pacman -Ss sdl_gfx
extra/sdl_gfx 2.0.25-1 [installed]
pacman -Qs sge
local/sge 030809-2
Not sure wich package provides OpenGl but I think infond is the server.
Both
pkgfile leventand
pkgfile lrtgive no result. So I have no clue what dependency I am missing. Could it be because I am running 64 bit ?
Oh, there is a libevent1 package in AUR but I didn't want to use that one because firefox depends on libevent. So I kept the official libevent package.
Edit: here the error compiling:
make
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ infond.c -c -o infond.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ server.c -c -o server.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ listener.c -c -o listener.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ map.c -c -o map.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ path.c -c -o path.o
path.c:130:22: warning: ‘finder_alloc’ defined but not used [-Wunused-function]
static pathfinder_t *finder_alloc() {
^
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ -fPIC misc.c -c -o misc.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ packet.c -c -o packet.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ player.c -c -o player.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ world.c -c -o world.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ creature.c -c -o creature.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ scroller.c -c -o scroller.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ game.c -c -o game.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ pinger.c -c -o pinger.o
cc infond.o server.o listener.o map.o path.o misc.o packet.o player.o world.o creature.o scroller.o game.o pinger.o lua-5.1.2/src/liblua.a -levent -lz -lm -o infond
cc infond.o server.o listener.o map.o path.o misc.o packet.o player.o world.o creature.o scroller.o game.o pinger.o lua-5.1.2/src/liblua.a -levent -lz -lm -lrt -static -o infond-static
/usr/bin/ld: cannot find -levent
/usr/bin/ld: cannot find -lrt
collect2: error: ld returned 1 exit status
Makefile:199: recipe for target 'infond' failed
make: *** [infond] Error 1levent and lrt are LDFLAGS found in the Makefile.
Last edited by Birkov (2015-01-11 13:16:07)
Offline
lua-zlib is needed for building it. I don't know why that hasn't been specified in the requirements list though.
Install it and try again. All errors should be gone.
Offline
Did some more googling, levent should be in libevent.so (part of libevent) and lrt should be in librt.so (part of glibc)
pacman -Ss glibc
core/glibc 2.20-6 (base) [installed]
multilib/lib32-glibc 2.20-6 [installed]
I hope that I am not wasting your time and that it is possible to compile infon on 64 bit.
Offline
I installed lua-zlib but it still doesn't want to compile:
make
echo "REVISION=1.0-`git rev-parse --short=6 HEAD`" > REVISION
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ infond.c -c -o infond.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ server.c -c -o server.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ listener.c -c -o listener.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ map.c -c -o map.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ path.c -c -o path.o
path.c:130:22: warning: ‘finder_alloc’ defined but not used [-Wunused-function]
static pathfinder_t *finder_alloc() {
^
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ -fPIC misc.c -c -o misc.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ packet.c -c -o packet.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ player.c -c -o player.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ world.c -c -o world.o
gperf --output-file=creature_config.h -c -C -t creature_config.gperf
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ creature.c -c -o creature.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ scroller.c -c -o scroller.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ game.c -c -o game.o
cc -pedantic -std=gnu99 -Wall -DREVISION="\"1.0-\"" -ggdb -DPREFIX=\"./\" -Ilua-5.1.2/src/ pinger.c -c -o pinger.o
make -C lua-5.1.2 debug
make[1]: Entering directory '/home/archie/Downloads/infon/infon-master/lua-5.1.2'
cd src && make debug
make[2]: Entering directory '/home/archie/Downloads/infon/infon-master/lua-5.1.2/src'
make all MYCFLAGS="-DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK" MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
make[3]: Entering directory '/home/archie/Downloads/infon/infon-master/lua-5.1.2/src'
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lapi.o lapi.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lcode.o lcode.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o ldebug.o ldebug.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o ldo.o ldo.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o ldump.o ldump.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lfunc.o lfunc.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lgc.o lgc.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o llex.o llex.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lmem.o lmem.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lobject.o lobject.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lopcodes.o lopcodes.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lparser.o lparser.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lstate.o lstate.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lstring.o lstring.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o ltable.o ltable.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o ltm.o ltm.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lundump.o lundump.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lvm.o lvm.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lzio.o lzio.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lauxlib.o lauxlib.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lbaselib.o lbaselib.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o ldblib.o ldblib.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o liolib.o liolib.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lmathlib.o lmathlib.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o loslib.o loslib.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o ltablib.o ltablib.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lstrlib.o lstrlib.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o loadlib.o loadlib.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o linit.o linit.c
ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o
ranlib liblua.a
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o lua.o lua.c
cc -o lua lua.o liblua.a -lm -Wl,-E -ldl -lreadline -lhistory -lncurses
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o luac.o luac.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK -c -o print.o print.c
cc -o luac luac.o print.o liblua.a -lm -Wl,-E -ldl -lreadline -lhistory -lncurses
make[3]: Leaving directory '/home/archie/Downloads/infon/infon-master/lua-5.1.2/src'
make[2]: Leaving directory '/home/archie/Downloads/infon/infon-master/lua-5.1.2/src'
make[1]: Leaving directory '/home/archie/Downloads/infon/infon-master/lua-5.1.2'
cc infond.o server.o listener.o map.o path.o misc.o packet.o player.o world.o creature.o scroller.o game.o pinger.o lua-5.1.2/src/liblua.a -levent -lz -lm -o infond
cc infond.o server.o listener.o map.o path.o misc.o packet.o player.o world.o creature.o scroller.o game.o pinger.o lua-5.1.2/src/liblua.a -levent -lz -lm -lrt -static -o infond-static
/usr/bin/ld: cannot find -levent
/usr/bin/ld: cannot find -lrt
collect2: error: ld returned 1 exit status
Makefile:199: recipe for target 'infond' failed
make: *** [infond] Error 1Offline
Triple post FTW:
I gave it another try and got the same error as earlier. But instead of
make cleanI accidently typed
make and my compiler made infon (viewer) withour errors.
And although my compiler quits with error when I do
make infond I got a working infond in my working directory.
Dowloaded infon-devel with subversion at http://infon.googlecode.com/svn/trunk/c … nfon-devel and installed pygtksourceview2 as its dependency. Booted infon-devel with
python2 infon-devel.pyand everything seems to work well.
Still got some issues:
infond doesn't quit after 'q'. Still need to press <ctrl>c to get back in my terminal.
infon-devel keeps spitting out the following error:
Traceback (most recent call last):
File "infon-devel.py", line 348, in set_bt_markers
self.bugbuf.create_source_mark(None, "bt", line)
TypeError: where should be a GtkTextIterinfon (viewer) uses a bit more CPU power then expected.
I will mail infon's developer about the errors later but now I am going to code me some bugs.
Ps lua-zlib is not needed at all and if somebody wants to make a PKGBUILD for infon, I think he/she should give the Debian binaries a try.
Offline
Birkov, where did you get sge? The AUR build seems to be broken.
Anyway, i'm stuck at:
sdl_video.c:24:17: fatal error: sge.h: No such file or directoryEDIT: I managed to build the sge package. After that, infon compiled just fine.
Last edited by MickeyKnox (2015-01-17 20:33:18)
Offline
Some download links to sge are provided in the comments of it's AUR page.
I got a reply from the developer of infon and he wants to know what compiler I am using ... gcc or clang. Mine is gcc-multilib 4.9.2-2 ... if u have (no) problems compiling infon, can you guys post which compiler you are using to give him some more feedback ?
EDIT: according to http://manpages.ubuntu.com/manpages/kar … ond.8.html the -d option runs the program daemonized. Requires root.
My infond doesn't daemonize with
./infond -d If you succesfully compiled infond, please post if you can or cannot daemonize infond, to give infon's developer some more feedback. He is looking into it at the moment.
And although he didn't make infon-devel, he is taking a look at that one too. So please post if your infon-devel.py with or without errors.
Last edited by Birkov (2015-01-18 15:51:44)
Offline