JohnnyonFlame / SDL-ge2d

An experimental implementation with Pixmap surfaces on Mali blobs.
zlib License
0 stars 1 forks source link

how to build this? #1

Open trngaje opened 1 year ago

trngaje commented 1 year ago

i am using a ogu. and i am interesting in your solution.

i tried to build your source but i can see error message below.

./configure make -j4

and got error messages

In file included from /home/odroid/export/SDL-ge2d/src/video/mali-fbdev/SDL_malivideo.c:17: /home/odroid/export/SDL-ge2d/src/video/mali-fbdev/SDL_malivideo.h:28:25: error: field 'native_display' has incomplete type 28 | struct fbdev_window native_display; | ^~~~~~ /home/odroid/export/SDL-ge2d/src/video/mali-fbdev/SDL_malivideo.c: In function 'MALI_SetTTYCursor': /home/odroid/export/SDL-ge2d/src/video/mali-fbdev/SDL_malivideo.c:29:9: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] 29 | system("setterm -cursor on"); | ^~~~~~~~ /home/odroid/export/SDL-ge2d/src/video/mali-fbdev/SDL_malivideo.c:31:9: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] 31 | system("setterm -cursor off"); | ^~~~~~~~~ make: [Makefile:796: build/SDL_malivideo.lo] Error 1 In file included from /home/odroid/export/SDL-ge2d/src/video/mali-fbdev/SDL_maliopengles.c:8: /home/odroid/export/SDL-ge2d/src/video/mali-fbdev/SDL_malivideo.h:28:25: error: field 'native_display' has incomplete type 28 | struct fbdev_window native_display; | ^~~~~~ make: [Makefile:793: build/SDL_maliopengles.lo] Error 1

how can i build this ?

JohnnyonFlame commented 1 year ago

Get headers from https://codeload.github.com/CoreELEC/opengl-meson/tar.gz/7bddce621a0c1e0cc12cfc8b707e93eb37fc0f82

Fix up them with: cp include/EGL_platform/platform_fbdev/* include/EGL

I usually build with

#!/bin/bash

cmake -B build \
    -DCMAKE_C_FLAGS=-I\ /home/johnny/opengl-meson/include \
    -DCMAKE_TOOLCHAIN_FILE=~/aarch64.cmake \
    -DSDL_STATIC=OFF \
        -DSDL_LIBC=ON \
        -DSDL_GCC_ATOMICS=ON \
        -DSDL_ALTIVEC=OFF \
        -DSDL_OSS=OFF \
        -DSDL_ALSA=ON \
        -DSDL_ALSA_SHARED=ON \
        -DSDL_JACK=OFF \
        -DSDL_JACK_SHARED=OFF \
        -DSDL_ESD=OFF \
        -DSDL_ESD_SHARED=OFF \
        -DSDL_ARTS=OFF \
        -DSDL_ARTS_SHARED=OFF \
        -DSDL_NAS=OFF \
        -DSDL_NAS_SHARED=OFF \
        -DSDL_LIBSAMPLERATE=OFF \
        -DSDL_LIBSAMPLERATE_SHARED=OFF \
        -DSDL_SNDIO=OFF \
        -DSDL_DISKAUDIO=OFF \
        -DSDL_DUMMYAUDIO=OFF \
        -DSDL_DUMMYVIDEO=OFF \
        -DSDL_WAYLAND=OFF \
        -DSDL_WAYLAND_QT_TOUCH=ON \
        -DSDL_WAYLAND_SHARED=OFF \
        -DSDL_COCOA=OFF \
        -DSDL_DIRECTFB=OFF \
        -DSDL_VIVANTE=OFF \
        -DSDL_DIRECTFB_SHARED=OFF \
        -DSDL_FUSIONSOUND=OFF \
        -DSDL_FUSIONSOUND_SHARED=OFF \
        -DSDL_PTHREADS=ON \
        -DSDL_PTHREADS_SEM=ON \
        -DSDL_DIRECTX=OFF \
        -DSDL_CLOCK_GETTIME=OFF \
        -DSDL_RPATH=OFF \
        -DSDL_RENDER_D3D=OFF \
        -DSDL_X11=OFF \
        -DSDL_OPENGLES=ON \
        -DSDL_OPENGL=OFF \
        -DSDL_VULKAN=OFF \
        -DSDL_PULSEAUDIO=ON \
        -DSDL_HIDAPI_JOYSTICK=OFF \
        -DSDL_MALI=ON \
    -DSDL_KMSDRM=OFF