From 54d041701c5d47578dcd6977c9ecbd2e026d206c Mon Sep 17 00:00:00 2001 From: rustdesk Date: Mon, 29 Apr 2024 18:00:34 +0800 Subject: [PATCH] print dlopen error --- flutter/linux/main.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flutter/linux/main.cc b/flutter/linux/main.cc index aae79349a..f887e133d 100644 --- a/flutter/linux/main.cc +++ b/flutter/linux/main.cc @@ -9,7 +9,11 @@ bool gIsConnectionManager = false; bool flutter_rustdesk_core_main() { void* librustdesk = dlopen(RUSTDESK_LIB_PATH, RTLD_LAZY); if (!librustdesk) { - fprintf(stderr,"load librustdesk.so failed\n"); + fprintf(stderr,"load librustdesk.so failed\n"); + char* error; + if ((error = dlerror()) != nullptr) { + fprintf(stderr, "%s", error); + } return true; } auto core_main = (RustDeskCoreMain) dlsym(librustdesk,"rustdesk_core_main");