PDA

View Full Version : HELP! problem about QLibrary::load() on Linux. It is stuck



yuzhouzhiwai
29th November 2013, 10:13
hi~
I have a program which loads dynamic library . Also, the dynamic library depends on some other dynamic libraries.
But when I use the QLibrary::load() function, the program is dead or stuck.

I think the load function should return something if there is something wrong. But it just stuck

so , I wonder what the load() function do, and why it is stuck.
My Compile and run environment is Linux (red hat)

Thanks very much, I will wait for your answer on line.

anda_skoa
30th November 2013, 00:33
You could see if you get any further hints when you run your application after exporting the following environment variable


export QT_DEBUG_PLUGINS=1


Cheers,
_

ChrisW67
30th November 2013, 20:58
QLibrary::load() returns a bool to indicate success. If the return is false then QLibrary::errorString() is supposed to give some clue as to why the load failed.