OS/2, eCS & ArcaOS - Technical > Programming

Request: Compile "Tower Topper" (aka Nebulus)

(1/4) > >>

Martin Iturbide:
Hello

Can someone please help me to compile "Tower Topper" 1.3 to AcaOS ?
It uses SDL 2 now. (Dependencies: SDL2_mixer  (with ogg support if you want music), sdl2 and zlib)

Here it is the source code: https://gitlab.com/roever/toppler/

Here it is the old one, just in case: https://www.os2world.com/games/index.php/native-games/strategy/301-tower-toppler

I will like to understand better the makefile to see if I can do it by myself as an exercise.

Regards

Dave Yeo:
Seems to have a dependency on gimp.
Here's the diff to build the executable,

--- Code: ---diff --git a/Makefile b/Makefile
index a6a140f..57fd6e6 100644
--- a/Makefile
+++ b/Makefile
@@ -18,10 +18,10 @@
 # along with this program; if not, write to the Free Software
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
 
-PREFIX = /usr
+PREFIX = /@unixroot/usr/local
 BINDIR = $(PREFIX)/bin
 DATADIR = $(PREFIX)/share
-STATEDIR = /var/toppler
+STATEDIR = /@unixroot/var/toppler
 LOCALEDIR = $(DATADIR)/locale
 MANDIR =  $(DATADIR)/man
 PKGDATADIR = $(DATADIR)/toppler
@@ -32,9 +32,10 @@ CONVERT = convert
 CXX = $(CROSS)$(CXX_NATIVE)
 CXX_NATIVE = g++
 CXXFLAGS = -Wall -Wextra -g -O2 -std=c++17
-EXEEXT = $(if $(filter %-w64-mingw32.static-,$(CROSS)),.exe,)
+# EXEEXT = $(if $(filter %-w64-mingw32.static-,$(CROSS)),.exe,)
+EXEEXT = .exe
 INSTALL = install
-LDFLAGS =
+LDFLAGS = -Zomf -Zhigh-mem -lintl
 MSGFMT = msgfmt
 MSGMERGE = msgmerge
 PKG_CONFIG = $(CROSS)$(PKG_CONFIG_NATIVE)

--- End code ---

Which crashes without being installed with the data I think,

--- Code: ---H:\tmp\toppler>toppler.exe

Killed by SIGSEGV
pid=0x01a8 ppid=0x0065 tid=0x0001 slot=0x00d3 pri=0x0200 mc=0x0001 ps=0x0010
H:\TMP\TOPPLER\TOPPLER.EXE
TOPPLER 2:000fff20
cs:eip=0000:0018ff20      ss:esp=0000:fffefdfc      ebp=00100053
 ds=6f6cd5d4      es=0000      fs=d3d2d1d0      gs=0000     efl=fbfaf9f8
eax=0018fd78 ebx=1ffc9d7c ecx=0018fd8c edx=0018fdb0 edi=656c6163 esi=0018ff8c
Creating 01A8_01.TRP
Moved 01a8_01.TRP to W:\var\log\app\6820c3a0-01a8_01-TOPPLER-exceptq.txt

--- End code ---

Have to think on the data problem

Dave Yeo:
You can probably download the data, perhaps from a release and manually install. It does want gimp and povray?

Martin Iturbide:
Thanks Dave for helping out.

I'm looking for the compiled data (since it uses gimp) and see if it can run. Can you share your compiled binaries?

Checking:
- https://gitlab.com/roever/toppler/uploads/06111021dffe64f3bd5f5a22c87e9426/toppler-windows-1.3-r2.zip
Will it be "toppler.dat" or the data files are being integrated with the .exe?

Regards

Dave Yeo:
OK, I seem to have misunderstood how it works. Have to look closer. Here's my binary.

Navigation

[0] Message Index

[#] Next page

Go to full version