From f710595e44b099b5f3ab9bc8e2f4e24576d3b3a9 Mon Sep 17 00:00:00 2001 From: gggaa2152 <60614405+gggaa2152@users.noreply.github.com> Date: Mon, 6 Apr 2026 04:51:23 +0800 Subject: [PATCH] Update main.cpp --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 248b0826b..d9c254d8c 100644 --- a/main.cpp +++ b/main.cpp @@ -6,6 +6,7 @@ #include #include #include +#include // 新增:修复 dlsym 和 RTLD_DEFAULT 报错 #include #include #include "dobby.h" @@ -97,7 +98,6 @@ void* init_thread(void*) { LOGI("Found libEGL.so at: %p", (void*)egl_base); // 2. 查找 eglSwapBuffers 符号地址 - // 也可以直接用 dlsym(RTLD_NEXT, "eglSwapBuffers") void* sym_eglSwapBuffers = dlsym(RTLD_DEFAULT, "eglSwapBuffers"); if (!sym_eglSwapBuffers) { LOGE("Error: Cannot find eglSwapBuffers symbol!");