OS2 World Community Forum
OS/2, eCS & ArcaOS - Technical => Programming => Topic started by: Martin Iturbide on February 28, 2025, 06:45:48 pm
-
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
-
you need to run the configure script...
sh ./configure
-
Thanks for the feedback.
I did first the "yum install automake" in my dev VM.
I got this:
[E:\DEV\5TRYING\BARRAGE\BARRAGE-1.0.7]sh ./configure
configure: error: cannot run /bin/sh ./config.sub
I think I may be missing something on the DEVEnviroment, since I just recreated the environment with ArcaOS 5.1.1. .
Regards
-
I chekced the "configure" file and removed the ref to "/bin/sh".
I got:
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
-
Best to run autoreconf,
sh c:/usr/bin/autoreconf -sfithen
configure --prefix=H:/tmp/barrage LDFLAGS=-Zomf LIBS=-lcxthen
make 2>&1 | tee build.logthen
make install
Adjust the prefix how you like.
This results in a barrage.exe that crashes,
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
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
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
-
Hello
sh c:/usr/bin/autoreconfig -sfi
Is not working for me, it says:
[E:\DEV\5TRYING\barrage]sh c:/usr/bin/autoreconfig -sfi
sh: 0: Can't open c:/usr/bin/autoreconfig
SDLMixer is here:
https://hobbesarchive.com/Home/Download?path=/Hobbes/pub/os2/dev/libraries/graphics/SDL_1-2-15_2020-10-05.zip
Regards
-
Sorry, should be autoreconf.
-
Thanks Dave
When I run:
- sh c:/usr/bin/autoreconf -sfi
I get:
aclocal: warning: couldn't open directory 'm4': No such file or directory
cannot remove directory for C:/var/temp/arEbCtwP/am4tgemIWV: Resource busy at /@unixroot/usr/share/perl5/File/Temp.pm line 902.
cannot remove directory for C:/var/temp/arEbCtwP/am4t79W0mD: Resource busy at /@unixroot/usr/share/perl5/File/Temp.pm line 902.
configure.ac:19: warning: The macro 'AC_TRY_RUN' is obsolete.
configure.ac:19: You should run autoupdate.
./lib/autoconf/general.m4:3047: AC_TRY_RUN is expanded from...
acinclude.m4:11: AM_PATH_SDL is expanded from...
configure.ac:19: the top level
configure.ac:19: warning: The macro 'AC_TRY_LINK' is obsolete.
configure.ac:19: You should run autoupdate.
./lib/autoconf/general.m4:2970: AC_TRY_LINK is expanded from...
acinclude.m4:11: AM_PATH_SDL is expanded from...
configure.ac:19: the top level
configure.ac:61: warning: AC_OUTPUT should be used without arguments.
configure.ac:61: You should run autoupdate.
cannot remove directory for C:/var/temp/arEbCtwP/am4tw5beKm: Resource busy at /@unixroot/usr/share/perl5/File/Temp.pm line 902.
cannot remove directory for C:/var/temp/arEbCtwP/am4t5NY0pL: Resource busy at /@unixroot/usr/share/perl5/File/Temp.pm line 902.
cannot remove directory for C:/var/temp/arEbCtwP/ahZmLaXF: Resource busy at /@unixroot/usr/share/perl5/File/Temp.pm line 902.
cannot remove directory for C:/var/temp/arEbCtwP/am4tufGBwI: Resource busy at /@unixroot/usr/share/perl5/File/Temp.pm line 902.
cannot remove directory for C:/var/temp/arEbCtwP: Resource busy at /@unixroot/usr/share/perl5/File/Temp.pm line 902.
Is it something I'm missing to configure?
And later I run:
[E:\DEV\5TRYING\barrage]sh configure --prefix=e:/dev/5trying/barrage/src LDFLAGS
=-Zomf LIBS=-lcx
configure: error: cannot run /bin/sh ./config.sub
But the config.sub is there. I think I may no know "sh" enough.
Regards
-
Hi Marrtin,
Did you install latest perl, libtool etc. from Netlabs exp ?
With kind regards,Tellie
-
Hi Martin, I got most of those warnings excepting the resource busy ones. They're due to our autotools being newer then expected. Not sure about the resource busy ones.
While sh should work even though it is not in /bin, it doesn't lately, so copy sh.exe to /bin or creating a symlink might be good enough.
-
Hi all,
cannot remove directory for C:/var/temp/arEbCtwP/am4tgemIWV: Resource busy at /@unixroot/usr/share/perl5/File/Temp.pm line 902.
cannot remove directory for C:/var/temp/arEbCtwP/am4t79W0mD: Resource busy at /@unixroot/usr/share/perl5/File/Temp.pm line 902.
Those errors are fixed in the newer tools on Exp
Kind regards, Tellie