Skip to content

Still not running.. #1

@tommybee-dev

Description

@tommybee-dev

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions