Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 1.1.0 - deallocData compilation error #64

Open
fabiencastan opened this issue Apr 17, 2012 · 3 comments
Open

version 1.1.0 - deallocData compilation error #64

fabiencastan opened this issue Apr 17, 2012 · 3 comments

Comments

@fabiencastan
Copy link

Hi,
I try to build pyside using pyside packaging setuptools (https://github.com/PySide/packaging/tree/master/setuptools).
There is a compilation error with the fonction deallocData. This function is declared with one parameter into the header "basewrapper_p.h" but used with 1 and 2 parameters into the cpp file.

$ grep -nri deallocData .
./libshiboken/basewrapper.cpp:220: Shiboken::Object::deallocData(sbkObj, true);
./libshiboken/basewrapper.cpp:228: Shiboken::Object::deallocData(sbkObj, true);
./libshiboken/basewrapper.cpp:239: Shiboken::Object::deallocData(sbkObj);
./libshiboken/basewrapper.cpp:461: Shiboken::Object::deallocData(m_pyObj, true);
./libshiboken/basewrapper.cpp:1206:void deallocData(SbkObject* self, bool cleanup)
./libshiboken/basewrapper_p.h:262:void deallocData(SbkObject* self);

https://github.com/PySide/Shiboken/blob/1.1.0/libshiboken/basewrapper_p.h#L262
namespace Shiboken
{
namespace Object
{
/**

  • Destroy internal data
    */
    void deallocData(SbkObject
    self);
    } // namespace Object

} // namespace Shiboken

https://github.com/PySide/Shiboken/blob/1.1.0/libshiboken/basewrapper.cpp#L220
Shiboken::Object::deallocData(sbkObj, true);

The error message:
2012-04-17 15:05:05,736 - setuptools - INFO - C:\pyside_packaging\setuptools\modules\Shiboken\libshiboken\basewrapper.cpp(220) : error C2660: 'Shiboken::Object:
:deallocData' : function does not take 2 arguments
2012-04-17 15:05:05,736 - setuptools - INFO - C:\pyside_packaging\setuptools\modules\Shiboken\libshiboken\basewrapper.cpp(228) : error C2660: 'Shiboken::Object:
:deallocData' : function does not take 2 arguments
2012-04-17 15:05:05,737 - setuptools - INFO - C:\pyside_packaging\setuptools\modules\Shiboken\libshiboken\basewrapper.cpp(461) : error C2660: 'Shiboken::Object:
:deallocData' : function does not take 2 arguments
2012-04-17 15:05:05,740 - setuptools - INFO - NMAKE : fatal error U1077: 'c:\PROGRA2\MICROS1.0\VC\bin\amd64\cl.exe' : return code '0x2'

I use visual c++ 2008.

The code seems to be fixed into the master branch. But I would like to use a release version.
Regards,
Fabien

@fabiencastan
Copy link
Author

In the version 1.1.0, that we can download here: http://qt-project.org/wiki/PySideDownloads, the header file "basewrapper_p.h" is not the same than the version tagged 1.1.0 on github:

/**

  • Destroy internal data
    */
    void deallocData(SbkObject
    self, bool doCleanup);

So using this version we don't have the same compilation error.
Maybe the tag is not at the right place...

@lck
Copy link
Contributor

lck commented Apr 18, 2012

Hi Fabien,

I will try to rebuild version 1.1.0, but if You want to use stable version why You don't download the binaries from PySide webside, is there something missing in official binaries?

Best regards
Roman

@fabiencastan
Copy link
Author

Hi,
To answer your question : I need to recompile PySide because my goal is to do a python binding of my C++ project. I can’t use the binary executable since I need my PySide to match the exact Qt version I am using (4.7.2 against 4.7.4 for the binary installer) and above all, I need to have some development files (PySide headers like pyside_global.h and typesystem xml files) to bind custom classes that inherit Qt using Shiboken.
Those files are not available when installing PySide using the executable. Maybe there is another way to get those files and avoid manual compilation ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants