Author Topic: Compile a Game Weekend  (Read 2691 times)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5255
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Compile a Game Weekend
« 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
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2513
  • Karma: +190/-0
    • View Profile
Re: Compile a Game Weekend
« Reply #1 on: February 28, 2025, 10:42:26 pm »
you need to run the configure script...
Code: [Select]
sh ./configure

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5255
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Compile a Game Weekend
« Reply #2 on: February 28, 2025, 11:23:11 pm »
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

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

Regards
« Last Edit: February 28, 2025, 11:30:46 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5255
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Compile a Game Weekend
« Reply #3 on: February 28, 2025, 11:36:10 pm »
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
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5355
  • Karma: +127/-1
    • View Profile
Re: Compile a Game Weekend
« Reply #4 on: March 01, 2025, 12:48:43 am »
Best to run autoreconf,
Code: [Select]
sh c:/usr/bin/autoreconf -sfithen
Code: [Select]
configure --prefix=H:/tmp/barrage LDFLAGS=-Zomf LIBS=-lcxthen
Code: [Select]
make 2>&1 | tee build.logthen
Code: [Select]
make install
Adjust the prefix how you like.
This results in a barrage.exe that crashes,
Code: [Select]
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
Code: [Select]
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
« Last Edit: March 01, 2025, 02:45:43 am by Dave Yeo »

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5255
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Compile a Game Weekend
« Reply #5 on: March 01, 2025, 02:10:13 am »
Hello

 sh c:/usr/bin/autoreconfig -sfi

Is not working for me, it says:

Quote
[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
« Last Edit: March 01, 2025, 02:12:51 am by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5355
  • Karma: +127/-1
    • View Profile
Re: Compile a Game Weekend
« Reply #6 on: March 01, 2025, 02:44:55 am »
Sorry, should be autoreconf.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5255
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Compile a Game Weekend
« Reply #7 on: March 05, 2025, 09:55:40 pm »
Thanks Dave

When I run:
- sh c:/usr/bin/autoreconf -sfi

I get:

Code: [Select]
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:
Quote
[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
« Last Edit: March 05, 2025, 10:02:00 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

TeLLie

  • Sr. Member
  • ****
  • Posts: 278
  • Karma: +16/-0
    • View Profile
Re: Compile a Game Weekend
« Reply #8 on: March 05, 2025, 11:15:11 pm »
Hi Marrtin,

Did you install latest perl, libtool etc. from  Netlabs exp ?

With kind regards,Tellie

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5355
  • Karma: +127/-1
    • View Profile
Re: Compile a Game Weekend
« Reply #9 on: March 06, 2025, 12:06:34 am »
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.

TeLLie

  • Sr. Member
  • ****
  • Posts: 278
  • Karma: +16/-0
    • View Profile
Re: Compile a Game Weekend
« Reply #10 on: March 06, 2025, 03:57:24 pm »
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