Skip to content

Running raylib examples in termux #517

@softkot

Description

@softkot

Tyting to code some ideas with raylib inside termux but at first it fails to compile:

$ git clone https://github.com/gen2brain/raylib-go.git && go -C raylib-go/examples/games/life run .


# github.com/gen2brain/raylib-go/raylib
In file included from raudio.c:221:
./external/stb_vorbis.c:1404:75: warning: pointer comparison always evaluates to false [-Wtautological-compare]
# github.com/gen2brain/raylib-go/raylib
In file included from rcore.c:561:
./platforms/rcore_android.c:940:81: error: incompatible pointer to integer conversion passing 'ANativeWindow *' (aka 'struct ANativeWindow *') to parameter of type 'EGLNativeWindowType' (aka 'unsigned long') [-Wint-conversion]
../../../../../usr/bin/../../usr/include/EGL/egl.h:136:109: note: passing argument to parameter 'win' here
In file included from rcore.c:561:
./platforms/rcore_android.c:1004:97: error: incompatible pointer to integer conversion passing 'ANativeWindow *' (aka 'struct ANativeWindow *') to parameter of type 'EGLNativeWindowType' (aka 'unsigned long') [-Wint-conversion]
../../../../../usr/bin/../../usr/include/EGL/egl.h:136:109: note: passing argument to parameter 'win' here

It is possible to overcome this error turning it to warning but it fails to start with segfault

CGO_CFLAGS="-Wno-int-conversion -Wno-tautological-compare"  go -C raylib-go/examples/games/life run .

signal: segmentation fault

Did i miss something simple to make it run?

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