Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15.0
-
None
Description
I followed all of the documentation page instructions for QLibrary and its load() method.
However all attempts to load() failed. After debugging the Qt library code, i found that it was not resolving some symbols that WERE in the the main application.
In order for the QLibrary::load() to work, I had to link the main application on Linux, Fedora version 32, 64-bit, g++ with:
unix:
{ QMAKE_LFLAGS += "-Wl,--export-dynamic"}Once I did that, QLibrary::load() worked and my plugin worked. This is my first run-time plug-in application.
I looked for something I missed in the documentation and did not find any.
I would suggest that the documentation ADD the above information to the QLibrary:load() documentation. Or document any generic way to specify that need.
I have NO idea if this effects other build platforms. I would suspect it effects Android.