Well the generated files are almost empty. The only .cpp files that is generated has the name "_module_wrapper.cpp". I suppose the problem is in typesystem.xml.
The definition of the class that I want to wrap has some macros. Is it possible that they are causing the problem? gcc is 4.x Regards Stefan On 1 November 2010 19:33, Anderson Lizardo <[email protected]>wrote: > 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
