mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-12 19:06:13 +02:00
print dlopen error
This commit is contained in:
parent
496eec17a1
commit
54d041701c
1 changed files with 5 additions and 1 deletions
|
@ -10,6 +10,10 @@ bool flutter_rustdesk_core_main() {
|
||||||
void* librustdesk = dlopen(RUSTDESK_LIB_PATH, RTLD_LAZY);
|
void* librustdesk = dlopen(RUSTDESK_LIB_PATH, RTLD_LAZY);
|
||||||
if (!librustdesk) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
auto core_main = (RustDeskCoreMain) dlsym(librustdesk,"rustdesk_core_main");
|
auto core_main = (RustDeskCoreMain) dlsym(librustdesk,"rustdesk_core_main");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue