OS/2, eCS & ArcaOS - Technical > Programming

Compiling a SDL Game (2023)

<< < (6/6)

Martin Iturbide:

--- Quote from: Martin Iturbide on August 22, 2023, 06:43:40 pm ---
--- Quote from: Dave Yeo on August 22, 2023, 05:45:17 pm ---OK built it with

--- Code: ---sh configure --prefix=h:/tmp/lbreakouthd 'LDFLAGS=-Zomf -Zmap -Zbin-files -Zhigh-mem' LIBS=-lcx
make 2>&1 | tee make.log
make install

--- End code ---

It got confused by my aspect ratio, see https://sourceforge.net/p/lgames/bugs/102/ and also the title was above my screen. Biggest problem is that it is slow, much slower then lbreakout2 and not fun to play. Probably expects accelerated 3D support.

--- End quote ---

--- End quote ---

Thanks Dave.

I'm getting this:


--- Quote ---[C:\DEV\5TRYING\LBREAKOUTHD-1.1.3]sh configure --prefix=C:/tmp/lbreakouthd 'LDFLAGS=-Zomf -Zmap -Zbin-files -Zhigh-mem' LIBS=-lcx
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
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)... yes
checking whether make supports nested variables... yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... no
checking for cc... no
checking for cl.exe... no
checking for clang... no

[C:\DEV\5TRYING\LBREAKOUTHD-1.1.3]make   2>&1  | tee make.log
make: *** No targets specified and no makefile found.  Stop.

[C:\DEV\5TRYING\LBREAKOUTHD-1.1.3]make install
make: Nothing to be done for `install'.

--- End quote ---

I don't know why it says that can not find gcc, it is on my path.
It is like make does not find the makefile.

Regards

Dave Yeo:
You did do the autoreconf part first? It looks like you didn't and exeext=.exe is not set.
Edit: or you're missing something in the autotools department. autoconf, automake, libtool, libtool-ltdl-dev m4 and whatever I'm forgetting. Or possibly you are pulling in utilities from \os2 instead of @unixroot\usr.

Martin Iturbide:
My mistake, I forgot this:

--- Quote from: Dave Yeo on August 22, 2023, 05:22:11 pm ---edit: changing the AC_PREREQ line from 2.71 to 2.69 seems all that is required to run autoconf successfully

--- End quote ---

Martin Iturbide:
Hello Dave

It compiled and runs. Yes, I have the same issue, it is unplayable because it is very slow. But I think it had been a good learning experience with automake.

Regards

Dave Yeo:
I tried building lbreakout2, something I've done before. No joy, configure didn't add some libs (png, intl and SDL) and the level stuff is screwed up.

--- Code: ---H:\tmp\lbreakout2-2.6.5\client>lbreakout2.exe
LBreakout2 2.6.5
Copyright 2001-2011 Michael Speck
Published under GNU GPL
---
Looking up data in: .
Looking up highscores in: .
Looking up custom levels in: W:\Home/.lgames/lbreakout2-levels
Compiled without sound and music
W:\Home/.lgames/lbreakout2.conf: file not found
Loading theme 'AbsoluteB'
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/bricks.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/bricks.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/paddle.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/paddle.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/weapon.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/weapon.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/shot.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/shot.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/extras.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/extras.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/fr_left.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/fr_left.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/fr_top.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/fr_top.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/fr_right.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/fr_right.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/life.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/life.png
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/back0.png
Fatal STK Error!
Couldn't open ./gfx/H:/tmp/lbreakout2-2.6.5/client/gfx/AbsoluteB/back0.png
GUI finalized
STK finalized
SDL finalized

--- End code ---

Note the PATHS start with .gfx/H:
LBreakout2 is quite playable, lots of additional levels available, likely the same levels as LBreakout_hd uses.

Navigation

[0] Message Index

[*] Previous page

Go to full version