Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Dave Yeo

Pages: [1] 2 3 ... 377
1
Internet / Re: Mypal68: A possible alternative browser?
« on: Today at 07:38:58 pm »
Yes, cross-compiling is possible.
Currently OpenWatcom runs on Linux and Windows and can build OS/2 programs fine. The official OW is still 32 bit, but running on a 64 bit platform gives a full 4GB address range rather then the (if lucky) 3.5 GB or so on real hardware.
There is also Jiri's 64bit fork of OpenWatcom which should also work. I'm not sure if he has ported the latest OS/2 OW fixes to his fork so possibly it might not work quite as well as the official OW but will give endless memory for building.
The problem with GCC is we use a fork of GCC so that would have to be ported and we also use various OS/2 binaries when building, which would also need to be ported. And the whole build environment needs to exist on the 64 bit platform. Both Windows and Linux should be possible with Linux perhaps the best choice.
So in theory with some work, GCC and the EMX tools can be rebuilt on Linux etc with some work. These would still be 32 bit but have access to the full 4GB's of address range.
Porting to 64bit could also be done but would likely turn out harder, perhaps much harder as all the basic types double in size.
Power is getting shut off so I'll continue
Edit: Hydro is finished doing whatever they did at the pole and I've lost my train of thought.
Basically, an OS/2 developer environment needs to be ported, things arranged and such. Possible that perhaps OS/2 in a virtualbox or such and using Samba could work with the host system.
Big job that is possible if a knowledgeable developer spent a bunch of time.

2
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 12, 2026, 04:55:48 am »
Is all the data there? I had to add a bunch to the git repository.
Here's the full install which seems to work here. Note the bin and data directory.

3
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 12, 2026, 03:59:24 am »
Hmm, built easily as it didn't screw around trying to make sure sdlmixer etc works.
I built it with --disable-install and it seems to look for its data in ..\data. Complete data directory uploaded to the repository.
Problem, it crashes if you choose full screen from the menu. ALT-HOME works fine to switch to full screen and back.
Very lightly tested. Might need the sdlzombies.dat file in the same directory as sdlzombies.exe, I haven't tested but will include it in the zip.
Edit: Actually I think the sdlzombies.dat file is generated when sdlzombies.exe is run so unneeded, should test.
Edit2: The F key is supposed to also switch to full screen. Using it, the full screen version is broken and I had to close the program as it stopped taking commands.

4
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 11, 2026, 05:01:56 am »
Please create a clone of sdlZombies in OS2World so I can push my work as I go

5
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 11, 2026, 04:42:49 am »
Looking at sdlZombies, some stuff seems to be missing.
Code: [Select]
configure.in:80: error: required file 'data/sounds/Makefile.in' not found
configure.in:80: error: required file 'data/zombies/Makefile.in' not found
configure.in:80: error: required file 'data/environ/Makefile.in' not found
configure.in:80: error: required file 'data/menu/Makefile.in' not found
configure.in:80: error: required file 'data/menu_opt/Makefile.in' not found
data/Makefile.am:1: error: required directory data/sounds does not exist
data/Makefile.am:1: error: required directory data/zombies does not exist
data/Makefile.am:1: error: required directory data/environ does not exist
data/Makefile.am:1: error: required directory data/menu does not exist
data/Makefile.am:1: error: required directory data/menu_opt does not exist

This seems to be complete, http://hocwp.free.fr/sdlzombies-1.0.0.tar.gz
Now to start over :)

6
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 10, 2026, 06:06:44 pm »
SDLroids looks good. I'll look at the sdlZombies later

7
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 10, 2026, 04:03:10 pm »
Sure. There's no SDLIMAGE requirement, and perhaps a link to the OS2world repository.
Edit: Pushed my changes

8
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 10, 2026, 03:56:19 am »
So removed the inline statements on the functions that were missing. All errors are gone except,
Code: [Select]
sdl.c: In function 'Pause':
sdl.c:892:9: warning: variable 'Pt' set but not used [-Wunused-but-set-variable]

  892 |   POINT Pt;
         |             ^~

Which causes errors related to Pt.x and Pt.y if commented out.
I did have those other warnings previously even though the build succeeded so I figure good to fix the warnings anyways and removing some inlines shouldn't matter on most all hardware.
Here's the current binary. Martin, if no one comments with a better way fix, should use this binary as it corresponds to the source changes I'll push tomorrow after renewing my password token.

9
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 10, 2026, 03:33:42 am »
Well, I cleaned up all the warnings related to static and still get the same missing symbols.
Guess put them back and remove the inline statements.

10
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 10, 2026, 12:36:52 am »
OK, there are warnings like,
Code: [Select]
sdl.c: At top level:
sdl.c:548:3: warning: 'current_y' is static but used in inline function 'LineTo' which is not static
  548 |   current_y=y;
      |   ^~~~~~~~~
sdl.c:547:3: warning: 'current_x' is static but used in inline function 'LineTo' which is not static
  547 |   current_x=x;
      |   ^~~~~~~~~
sdl.c:546:22: warning: 'current_y' is static but used in inline function 'LineTo' which is not static
  546 |   drawline(current_x,current_y,x,y);
      |                      ^~~~~~~~~
sdl.c:546:12: warning: 'current_x' is static but used in inline function 'LineTo' which is not static
  546 |   drawline(current_x,current_y,x,y);

But I can not see where the static comes from,
Code: [Select]
static int is_poly=0;
inline void LineTo(int x,int y)
{
  x = convx(x); y = convy(y);
  drawline(current_x,current_y,x,y);
  current_x=x;
  current_y=y;
}

11
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 09, 2026, 11:41:22 pm »
I don't like editing generated makefiles so trying to build just by passing arguments to configure, like so.
Code: [Select]
configure CFLAGS=-DHAVE_LIBSDL_MIXER 'LDFLAGS=-Zomf -Zhigh-mem -Zmap' 'LIBS=-lSDL_mixer'
Doesn't make a difference if I use -Zhigh-mem and/or -Zmap.
This results in this when running make,
...
Code: [Select]
gcc  -DHAVE_LIBSDL_MIXER -Ih:/tmp/SDL/h -Ih:/tmp/SDL/h/SDL  -Zomf -Zhigh-mem -Zmap -o sdlroids.exe hyperoid.o roidsupp.o sdlsound.o sdl.o petopt.o getargs.o rand.o  -lm -lSDL_mixer -Lh:/tmp/SDL/lib -Zomf -lsdl12
...
Code: [Select]
Error! E2028: _ifloor is an undefined reference
Error! E2028: _SDL_GetPixel is an undefined reference
Error! E2028: _iceil is an undefined reference
Error! E2028: _MoveTo is an undefined reference
Error! E2028: _LineTo is an undefined reference
Error! E2028: _drawline is an undefined reference

These symbols are all in sdl.o and in common are all inline in sdl.c. Weird, especially that without the CFLAGS entry the build succeeds, though without sound.

12
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 09, 2026, 10:24:33 pm »
Ok, edited the makefile's LDFLAGS instead of trying to pass the libs in the environment and seems to work, almost gave the wife a heart attack as I had the volume up :) You'll need to use exehdr to make it a PM program though I could add a def.

13
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 09, 2026, 06:01:10 am »
I enabled sound but,
Code: [Select]
[H:\tmp\GAME-SDL-ACTION-SDLRoids]sdlroids

Killed by SIGFPE
pid=0x3627 ppid=0x029e tid=0x0001 slot=0x00c4 pri=0x0200 mc=0x0001 ps=0x0010
H:\TMP\GAME-SDL-ACTION-SDLROIDS\SDLROIDS.EXE
cs:eip=0003:00000008      ss:esp=0000:20000000      ebp=1f380053
 ds=2003013c      es=0000      fs=0013fc14      gs=0000     efl=20000218
eax=0013fd28 ebx=1ffc9d7c ecx=0013fd3c edx=0013fd60 edi=00000000 esi=0013ff9c
Creating 3627_01.TRP
Moved 3627_01.TRP to W:\var\log\app\69601a22-3627_01-SDLROIDS-exceptq.txt

And I can't see why it crashes.
Did sound work on the original? I had to add #define HAVE_LIBSDL_MIXER 1 to config.h. It seems it was dead code before I added it as it was only in sdlsound.c while I would expect it to get defined by configure.

14
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 09, 2026, 04:50:18 am »
Try,
Code: [Select]
exehdr /PMTYPE:PM sdlroids.exe

15
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 09, 2026, 12:37:13 am »
First try attached. Can't seem to get it to use sdlmixer, I'll look more. It is supposed to fall back to SDL for sound but may be *nix centered.

Pages: [1] 2 3 ... 377