testgles2.c testdraw2.c 编译出来的:
/opt/A133/buildroot/buildroot-20240501-Qt-sunxi/output/host/bin/aarch64-linux-gcc -o /mnt/hgfs/D/testgles2 /opt/A133/buildroot/buildroot-20240501-Qt-sunxi/output/build/sdl2-2.30.3/test/testgles2.c -I/opt/A133/buildroot/buildroot-20240501-Qt-sunxi/output/build/sdl2-2.30.3/include -lSDL2 /opt/A133/buildroot/buildroot-20240501-Qt-sunxi/output/build/sdl2-2.30.3/src/test/SDL_test_common.c /opt/A133/buildroot/buildroot-20240501-Qt-sunxi/output/build/sdl2-2.30.3/src/test/SDL_test_memory.c /opt/A133/buildroot/buildroot-20240501-Qt-sunxi/output/build/sdl2-2.30.3/src/test/SDL_test_crc32.c /opt/A133/buildroot/buildroot-20240501-Qt-sunxi/output/build/sdl2-2.30.3/src/test/SDL_test_font.c
/opt/A133/buildroot/buildroot-20240501-Qt-sunxi/output/host/bin/aarch64-linux-gcc -o /mnt/hgfs/D/testdraw2 /opt/A133/buildroot/buildroot-20240501-Qt-sunxi/output/build/sdl2-2.30.3/test/testdraw2.c -I/opt/A133/buildroot/buildroot-20240501-Qt-sunxi/output/build/sdl2-2.30.3/include -lSDL2 /opt/A133/buildroot/buildroot-20240501-Qt-sunxi/output/build/sdl2-2.30.3/src/test/SDL_test_common.c /opt/A133/buildroot/buildroot-20240501-Qt-sunxi/output/build/sdl2-2.30.3/src/test/SDL_test_memory.c /opt/A133/buildroot/buildroot-20240501-Qt-sunxi/output/build/sdl2-2.30.3/src/test/SDL_test_crc32.c /opt/A133/buildroot/buildroot-20240501-Qt-sunxi/output/build/sdl2-2.30.3/src/test/SDL_test_font.c
testgles2 运行失败:
# chmod +x /usr/bin/testgles2 && /usr/bin/testgles2
commandline read: test1
(*) Direct/Thread: Started 'SigHandler' (1204) [CRITICAL - OTHER/0] <8388608>...
~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.7.7 |~~~~~~~~~~~~~~~~~~~~~~~~~~
(c) 2012-2015 DirectFB integrated media GmbH
(c) 2001-2015 The world wide DirectFB Open Source Community
(c) 2000-2004 Convergence (integrated media) GmbH
----------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2024-07-31 13:00)
(*) Direct/Memcpy: Using Generic 64bit memcpy()
(*) Direct/Thread: Started 'Fusion Dispatch' (1205) [MESSAGING - OTHER/0] <8388608>...
(*) Direct/Thread: Started 'VT Switcher' (1206) [CRITICAL - OTHER/0] <8388608>...
(*) Direct/Thread: Started 'VT Flusher' (1207) [DEFAULT - OTHER/0] <8388608>...
(*) DirectFB/FBDev: Found '' (ID 0) with frame buffer at 0xff800000, 8100k (MMIO 0x00000000, 0k)
(*) Direct/Thread: Started 'Linux Input' (1208) [INPUT - OTHER/0] <8388608>...
(*) DirectFB/Input: sunxi-keyboard (1) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (1209) [INPUT - OTHER/0] <8388608>...
(*) DirectFB/Input: sunxi-gpadc0 (2) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (1210) [INPUT - OTHER/0] <8388608>...
(*) DirectFB/Input: sun50iw10-codec sunxi Audio Jac (3) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Hotplug with Linux Input' (1211) [INPUT - OTHER/0] <8388608>...
(*) DirectFB/Input: Hot-plug detection enabled with Linux Input Driver
(*) Direct/Thread: Started 'Keyboard Input' (1212) [INPUT - OTHER/0] <8388608>...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) DirectFB/Graphics: Generic Software Rasterizer 0.7 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(*) Direct/Thread: Started 'Genefx' (1213) [DEFAULT - OTHER/0] <8388608>...
(*) FBDev/Mode: Setting 720x1440 RGB32
(*) FBDev/Mode: Switched to 720x1440 (virtual 720x1440) at 32 bit (RGB32), pitch 2880
(*) FBDev/Mode: Setting 720x1440 RGB32
(*) FBDev/Mode: Switched to 720x1440 (virtual 720x1440) at 32 bit (RGB32), pitch 2880
INFO: Couldn't create window: OpenGL support is either not configured in SDL or not available in current SDL video driver (directfb) or platform
(*) FBDev/Mode: Setting 720x1440 RGB32
(*) FBDev/Mode: Switched to 720x1440 (virtual 720x1440) at 32 bit (RGB32), pitch 2880
(!!!) *** UNIMPLEMENTED [fusion_dispatch] *** [fusion.c:3937]
#
#
testdraw2 运行正常:
# chmod +x /usr/bin/test2 && /usr/bin/test2
commandline read: test2
(*) Direct/Thread: Started 'SigHandler' (1217) [CRITICAL - OTHER/0] <8388608>...
~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.7.7 |~~~~~~~~~~~~~~~~~~~~~~~~~~
(c) 2012-2015 DirectFB integrated media GmbH
(c) 2001-2015 The world wide DirectFB Open Source Community
(c) 2000-2004 Convergence (integrated media) GmbH
----------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2024-07-31 13:00)
(*) Direct/Memcpy: Using Generic 64bit memcpy()
(*) Direct/Thread: Started 'Fusion Dispatch' (1218) [MESSAGING - OTHER/0] <8388608>...
(*) Direct/Thread: Started 'VT Switcher' (1219) [CRITICAL - OTHER/0] <8388608>...
(*) Direct/Thread: Started 'VT Flusher' (1220) [DEFAULT - OTHER/0] <8388608>...
(*) DirectFB/FBDev: Found '' (ID 0) with frame buffer at 0xff800000, 8100k (MMIO 0x00000000, 0k)
(*) Direct/Thread: Started 'Linux Input' (1221) [INPUT - OTHER/0] <8388608>...
(*) DirectFB/Input: sunxi-keyboard (1) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (1222) [INPUT - OTHER/0] <8388608>...
(*) DirectFB/Input: sunxi-gpadc0 (2) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (1223) [INPUT - OTHER/0] <8388608>...
(*) DirectFB/Input: sun50iw10-codec sunxi Audio Jac (3) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Hotplug with Linux Input' (1224) [INPUT - OTHER/0] <8388608>...
(*) DirectFB/Input: Hot-plug detection enabled with Linux Input Driver
(*) Direct/Thread: Started 'Keyboard Input' (1225) [INPUT - OTHER/0] <8388608>...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) DirectFB/Graphics: Generic Software Rasterizer 0.7 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(*) Direct/Thread: Started 'Genefx' (1226) [DEFAULT - OTHER/0] <8388608>...
(*) FBDev/Mode: Setting 720x1440 RGB32
(*) FBDev/Mode: Switched to 720x1440 (virtual 720x1440) at 32 bit (RGB32), pitch 2880
(*) FBDev/Mode: Setting 720x1440 RGB32
(*) FBDev/Mode: Switched to 720x1440 (virtual 720x1440) at 32 bit (RGB32), pitch 2880
(!!!) *** UNIMPLEMENTED [fusion_get_fusionee_pid] *** [fusion.c:4147]
(*) FBDev/Mode: Setting 720x1440 RGB32
(*) FBDev/Mode: Switched to 720x1440 (virtual 720x1440) at 32 bit (RGB32), pitch 2880
INFO: 19.09 frames per second
INFO: 18.60 frames per second
INFO: 19.14 frames per second
离线