File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,8 @@ sharedLibExtension = "*.so*";
88
88
std::cout << " PLUGIN MANAGER:" << std::endl;
89
89
for (unsigned i = 0 ; i < pluginDir.count (); i++)
90
90
{
91
+ QString lib = QString (" %1/%2" ).arg (txtPluginDir->text ()).arg (pluginDir[i]);
92
+
91
93
#ifdef TESTLIB
92
94
// This doesn't work on WIN32 and causes problems with plugins
93
95
// on OS X (the code doesn't cause a problem but including dlfcn.h
@@ -97,7 +99,7 @@ sharedLibExtension = "*.so*";
97
99
// This doesn't work on WIN32 and causes problems with plugins
98
100
// on OS X (the code doesn't cause a problem but including dlfcn.h
99
101
// renders plugins unloadable)
100
- QString lib = QString ( " %1/%2 " ). arg (txtPluginDir-> text ()). arg (pluginDir[i]);
102
+
101
103
// void *handle = dlopen((const char *) lib, RTLD_LAZY);
102
104
void *handle = dlopen (lib.toLocal8Bit ().data (), RTLD_LAZY | RTLD_GLOBAL);
103
105
if (!handle)
You can’t perform that action at this time.
0 commit comments