goblinhack-game
goblinhack-game copied to clipboard
Still not running..
Hi. Building this game is not that so easy with mingw32 on Windows I am still stuck with running the game.
Here is what I did...
gh_sys.h `
ifdef MINGW32
#define int64 int_least64_t
else
#define int64 long long
endif
**updater.cpp**
ifdef MINGW32
char *c_save_file_as = const_cast<char *>(save_file_as.c_str());
char *c_download_file_as = const_cast<char *>(download_file_as.c_str());
char * const curl_args[] = {
"-g",
"-L",
"--output",
c_save_file_as,
"--url",
c_download_file_as,
0,
};
else
char * const curl_args[] = {
"-g",
"-L",
"--output",
save_file_as.c_str(),
"--url",
download_file_as.c_str(),
0,
};
endif
`
ifdef MINGW32
char * const no_args[] = {
0,
};
execve(c_save_file_as, no_args, NULL);
else
const char *no_args[] = {
0,
};
execve(save_file_as.c_str(), no_args, NULL);
endif
rand.cpp, hacklib.cpp `#ifdef MINGW32
include <time.h>
endif
`
configure.in
*-*-cygwin* | *-*-mingw32*) MATHLIB="" SYS_GL_LIBS="-lopengl32 -lglu32" SYSLIBS="${SYSLIBS} -lSDL_image -lSDL_mixer -lvorbis -lvorbisfile" ;;
I got a segmentation fault message from the game After make it. I also got an warning message while 'make install' process
build/sh/install.sh . /mingw32/games/ghack cp: cannot stat './ghack': No such file or directory chmod: cannot access '/mingw32/games/ghack/resources/levels/random/hiscores*': No such file or directory
All done! You can execute the following /mingw32/games/ghack/ghack
Even it didn't copy ghack executable to the location /mingw32/games/ghack
What is 'game.gz' ? and how i can find it?
Thanks...
Hey - been so long since I looked at this - but the install stuff you can probably just ignore - looks like it built tho - you tried running it in gdb to see where it died ?
game.gz was probably just making a zip ball for the installer - you wouldn't need it for just running the game