View Single Post
Posts: 190 | Thanked: 129 times | Joined on Mar 2010 @ Bavaria, Germany
#2
Small update on this.

I found out funny things about the following lines of code:
Code:
Py_Initialize();

PyRun_SimpleString("from PyQt4 import QtCore, QtGui");
if ( PyErr_Occurred() )
  PyErr_Print();  

Py_Finalize();
Run these lines in the main program: works.
Run these lines in a shared library which the main program loads at startup: works.
Run these lines in a shared library which is loaded using QLibraryLoader at runtime: the error described in the first post

So what now? Is there anything magic I don't know when using shared library runtime loading?