OS/2, eCS & ArcaOS - Technical > Programming

Compile a Game Weekend

(1/3) > >>

Martin Iturbide:
Hello

Here in Ecuador there is a long holiday coming (Monday and Tuesday), and there is no money to go on vacations  ;D ;D, so instead I want to see if I can compile some SDL games.

I want to try to compile Barrage 1.0.7
- http://prdownloads.sourceforge.net/lgames/barrage-1.0.7.tar.gz

- I can not understand the makefile of it. Dave, since you compiled before, can you please explain me the procedure?
- Can it be compiled with our SDL2_Mixer, or I would need to use the SDL_1-2-15_2020-10-05 ?

Regards

Paul Smedley:
you need to run the configure script...

--- Code: ---sh ./configure
--- End code ---

Martin Iturbide:
Thanks for the feedback.

I did first the "yum install automake" in my dev VM.

I got this:


--- Quote ---[E:\DEV\5TRYING\BARRAGE\BARRAGE-1.0.7]sh ./configure
configure: error: cannot run /bin/sh ./config.sub

--- End quote ---

I think I may be missing something on the DEVEnviroment, since I just recreated the environment with ArcaOS 5.1.1. .

Regards

Martin Iturbide:
I chekced the "configure" file and removed the ref to "/bin/sh".

I got:

--- Quote ---checking build system type... i386-pc-os2-emx
checking host system type... i386-pc-os2-emx
checking target system type... i386-pc-os2-emx
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
E:/DEV/5TRYING/BARRAGE-1.0.7/missing: Unknown `--is-lightweight' option
Try `E:/DEV/5TRYING/BARRAGE-1.0.7/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a race-free mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... no
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... yes
checking whether make supports the include directive... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
checking for clang... no
configure: error: in `E:/DEV/5TRYING/BARRAGE-1.0.7':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
--- End quote ---

Dave Yeo:
Best to run autoreconf,

--- Code: ---sh c:/usr/bin/autoreconf -sfi
--- End code ---
then

--- Code: ---configure --prefix=H:/tmp/barrage LDFLAGS=-Zomf LIBS=-lcx
--- End code ---
then

--- Code: ---make 2>&1 | tee build.log
--- End code ---
then

--- Code: ---make install
--- End code ---

Adjust the prefix how you like.
This results in a barrage.exe that crashes,

--- Code: ---H:\tmp\barrage\bin>barrage.exe
BARRAGE v1.0.7
Copyright 2003-2022 Michael Speck (http://lgames.sf.net)
Released under GNU GPL
---
main loop delay: 0 ms
Display resolution: 0 x 0
Available modes: 1920 x 1200,
Killed by SIGSEGV
pid=0x1665 ppid=0x0064 tid=0x0001 slot=0x008b pri=0x0200 mc=0x0001 ps=0x0010
H:\TMP\BARRAGE\BIN\BARRAGE.EXE
LIBCN0 ffffffff:ffffffff
cs:eip=0000:200304e8      ss:esp=0000:00000401      ebp=00000053
 ds=0000      es=0000      fs=06000044      gs=0000     efl=00000000
eax=0025fd78 ebx=1ffc9d7c ecx=0025fd8c edx=0025fdb0 edi=00000000 esi=0025ff8c
Creating 1665_01.TRP
Moved 1665_01.TRP to W:\var\log\app\67c1d976-1665_01-BARRAGE-exceptq.txt

--- End code ---

Tried a couple of things that didn't help, doesn't seem to like current libc.
Edit: it uses SDL, also I don't have SDL_mixer or its development files, perhaps creating the crash

--- Code: ---checking for sdl-config... /@unixroot/usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for main in -lSDL_mixer... no
lib SDL mixer missing: audio disabled

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version