需要添加头文件 #include <dlfcn.h> 参考:https://stackoverflow.com/questions/50770755/rtld-now-and-dlopen-not-declared-in-this-scope-qt-creator-vulkan-dlopen