OS/2, eCS & ArcaOS - Technical > Programming
Request: Compile "Tower Topper" (aka Nebulus)
Martin Iturbide:
Thanks Dave.
Just a question here. I checked the Toppler.exe with pmdll.exe and it reference "SDL2MIX0.dll".
Is that correct? because our SDL2Mixer is called "SDL2M200.dll" as far as I know.
--- Quote ---[C:\HOME\MARTIN\DOWNLOADS\TOPPLER]toppler
SYS1804: The system cannot find the file SDL2MIX0.
--- End quote ---
If I grab our "SDL2M200.dll" and rename it to "SDL2MIX0.dll" I get:
--- Quote ---[C:\HOME\MARTIN\DOWNLOADS\TOPPLER]toppler
SYS1059: The system cannot execute the specified program.
--- End quote ---
Regards
Dave Yeo:
Whoops, it found the one in usr/local. I updated the zip above with the right sdl_mixer dll. Still crashes
Dave Yeo:
OK, looked at the crash closer, seems to be crashing looking for the translations. Here is an updated makefile.diff,
--- Code: ---diff --git a/Makefile b/Makefile
index a6a140f..8a65621 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)
@@ -68,7 +69,7 @@ PKG_LIBS_NATIVE = $$($(PKG_CONFIG_NATIVE) --libs $(PKGS_NATIVE))
DEFS += -DVERSION='"$(VERSION)"'
DEFS += -DTOP_DATADIR='"$(PKGDATADIR)"'
DEFS += -DHISCOREDIR='"$(STATEDIR)"'
-DEFS += -DENABLE_NLS=1
+# DEFS += -DENABLE_NLS=1
DEFS += -DLOCALEDIR='"$(LOCALEDIR)"'
FILES_H := $(wildcard src/*.h)
@@ -487,7 +488,7 @@ toppler.dat: _build/tools/crearc $(DATFILES)
.PHONY: clean
clean:
rm -rf _build
- rm toppler
+ rm toppler$(EXEEXT)
.PHONY: distclean
--- End code ---
And a working binary, only lightly tested.
David McKenna:
Dave,
With this one I'm getting:
[C:\junk\dl\toppler]toppler
SYS1804: The system cannot find the file SDL2MIX0.
I do have all the SDL2 files installed. BTW - which version of SDL2 are you using? I have 2.0.18.
Regards,
Dave Yeo:
Hmm, have to do more cleanup. For now here's SDLmix0.dll. Seems I built version 2.6.0 at some point
Added toppler.dat and toppler.ogg to put in the same directory as toppler.exe
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version