[PySide] [Shiboken] Can't generate

Yann Lanthony yann.lanthony at gmail.com
Mon Sep 3 11:24:04 CEST 2012


Hi,

If you don't have those files, it generally means that Shiboken couldn't
find the definition of your Math class.
You probably have some errors or warnings when launching your command line,
it could be useful to report them.
If you have something like "class 'Math' is specified in typesystem but not
defined", make sure that the header of your original Math class is in the
include path and that your global.h includes it.

Also, you will find in the output directory some log files that can help
you understand why Shiboken fails generating a wrapper for your call.
Don't hesitate to send a zipped version of your project if you can't make
it work.

Regards,
Yann

2012/9/3 ZHONG Zhu <Zhu.Zhong at alcatel-sbell.com.cn>

>  Hi All,
>
> Iā€™m trying to follow the Shiboken tutorial at *
> http://qt-project.org/wiki/Category:LanguageBindings::PySide::Shiboken::PySide_Binding_Generation_Tutorial
> *<http://qt-project.org/wiki/Category:LanguageBindings::PySide::Shiboken::PySide_Binding_Generation_Tutorial>to build the foo project on Windows XP. My understanding is that after I
> called
> ā€œ
> generatorrunner --generatorSet=shiboken global.h
> --include-paths="D:\workspace\Shiboken\binding-tutorial\libfoo;D:\Qt\4.8.1\include\Qt;D:/Qt/4.8.1/include/QtCore;D:/Qt/4.8.1/include/QtGui;D:\workspace\Shiboken\pyside-pyside-archive\PySide\QtCore"
> --typesystem-paths=".;D:/workspace/Shiboken/pyside-pyside-archive/PySide;D:/workspace/Shiboken/pyside-pyside-archive/PySide/QtCore"
> --output-directory=. typesystem_foo.xml
> ā€œ
> I should have 4 files like below
> foo/foo_python.h
> foo/foo_module_wrapper.cpp
> foo/math_wrapper.h
> foo/math_wrapper.cpp
>
> but actually, only 2 files got generated. Anyone has any idea? Thanks in
> advance!
> foo/foo_python.h
> foo/foo_module_wrapper.cpp
>
> BR,
>
> Zhu
>
>
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20120903/fa2a1c6b/attachment.html>


More information about the PySide mailing list