On Mon, Nov 1, 2010 at 1:13 PM, Stefan Krastanov
<[email protected]> wrote:
> Thanks, that was stupid mistake.
> But now I have "ImportError: dynamic module does not define init function
> (initlibqtmmlwidget)"
> Any ideas?
Which GCC version are you using? I had a similar problem on systems
with GCC 3.x, because of this snippet generated by the PySide
generator:
#if defined _WIN32 || defined __CYGWIN__
#define SBK_EXPORT_MODULE __declspec(dllexport)
#elif __GNUC__ >= 4
#define SBK_EXPORT_MODULE __attribute__ ((visibility("default")))
#else
#define SBK_EXPORT_MODULE
#endif
I changed ">= 4" to ">= 3" and it fixed the problem.
If you are using GCC 4.x grep the generated files for
"initlibqtmmlwidget" and check which file contains it (should be
something like "libqtmmlwidget_module_wrapper.cpp"). Then make sure
this file is in your CMakeLists.txt (or .pro, if you are using
qmake).
Regards,
--
Anderson Lizardo
OpenBossa Labs - INdT
Manaus - Brazil
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside