qt - Installing Shiboken (PySide) with MinGW-w64 -


config: windows 10 x64; python 3.4; qt 4.8.7; mingw-w64. added path environment variable. checking gcc --version return built mingw-w64 project.

i'm trying install shiboken using pip command pip install --global-option="--make-spec=mingw" shiboken , compile error:

c:\users\***\appdata\local\temp\pip-build-rkadq90f\shiboken\sources\shiboken\libshiboken\basewrapper.cpp: in function 'py_hash_t shiboken::object::hash(pyobject*)': c:\users\***\appdata\local\temp\pip-build-rkadq90f\shiboken\sources\shiboken\libshiboken\basewrapper.cpp:773:45: error: cast 'pyobject* {aka _object*}' 'py_hash_t {aka int}' loses precision [-fpermissive]  return reinterpret_cast<py_hash_t>(pyobj);                                    ^ error: error compiling shiboken 

i same error when shiboken compile inside pyside package:

c:\users\***\appdata\local\temp\pip-build-nni84yht\pyside\sources\shiboken\libshiboken\basewrapper.cpp: in function 'py_hash_t shiboken::object::hash(pyobject*)': c:\users\***\appdata\local\temp\pip-build-nni84yht\pyside\sources\shiboken\libshiboken\basewrapper.cpp:773:45: error: cast 'pyobject* {aka _object*}' 'py_hash_t {aka int}' loses precision [-fpermissive]      return reinterpret_cast<py_hash_t>(pyobj);                                              ^ libshiboken\cmakefiles\libshiboken.dir\build.make:62: recipe target 'libshiboken/cmakefiles/libshiboken.dir/basewrapper.cpp.obj' failed mingw32-make[2]: *** [libshiboken/cmakefiles/libshiboken.dir/basewrapper.cpp.obj] error 1 cmakefiles\makefile2:203: recipe target 'libshiboken/cmakefiles/libshiboken.dir/all' failed mingw32-make[1]: *** [libshiboken/cmakefiles/libshiboken.dir/all] error 2 makefile:126: recipe target 'all' failed mingw32-make: *** [all] error 2 error: error compiling shiboken 

i don' know how resolve problem.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -