wip/fs-uae and PySide
Rhialto <[email protected]> Fri, 8 Nov 2013 16:52:33 +0100
| Newsgroups | gmane.os.netbsd.devel.pkgsrc.wip.general |
|---|---|
| Message-ID | <[email protected]> |
--===============6537195790382340255==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="jy6Sn24JjFx/iggw"
Content-Disposition: inline
--jy6Sn24JjFx/iggw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
I have committed wip/fs-uae: finally we again have an Amiga emulator
that actually works! (emulators/uae and emulators/e-uae don't actually
work...)
I've done the stable release, but there is a development version that
has different prerequisites. In fact it has been split in 2, the
emulator itself, and the GUI frontend. And with the prerequisites for
the frontent (PySide: Qt4 bindings for Python) I have an issue.
PySide comes in several parts, including a code generator. For some
reason it forgets at some point that a pointer is const and g++ doesn't
like it. However on other platforms (Linux...) there is seemingly no
such problem.
My build proceeds this far:
[ 91%] Building CXX object tests/samplebinding/CMakeFiles/sample.dir/sa=
mple/samplenamespace_someclass_someinnerclass_okthisisrecursiveenough_wrapp=
er.cpp.o
[ 91%] Building CXX object tests/samplebinding/CMakeFiles/sample.dir/sa=
mple/samplenamespace_someclass_someinnerclass_wrapper.cpp.o
[ 92%] Building CXX object tests/samplebinding/CMakeFiles/sample.dir/sa=
mple/samplenamespace_someclass_someotherinnerclass_wrapper.cpp.o
[ 92%] Building CXX object tests/samplebinding/CMakeFiles/sample.dir/sa=
mple/samplenamespace_someclass_wrapper.cpp.o
[ 92%] Building CXX object tests/samplebinding/CMakeFiles/sample.dir/sa=
mple/samplenamespace_derivedfromnamespace_wrapper.cpp.o
[ 93%] Building CXX object tests/samplebinding/CMakeFiles/sample.dir/sa=
mple/simplefile_wrapper.cpp.o
/home/tmp/wip/py-pyside-shiboken/work.x86_64/shiboken-1.2.1/build/tests=
/samplebinding/sample/simplefile_wrapper.cpp: In function 'PyObject* Sbk_Si=
mpleFileFunc_filename(PyObject*)':
/home/tmp/wip/py-pyside-shiboken/work.x86_64/shiboken-1.2.1/build/tests=
/samplebinding/sample/simplefile_wrapper.cpp:228:50: error: invalid convers=
ion from 'const char*' to 'char*'
gmake[2]: *** [tests/samplebinding/CMakeFiles/sample.dir/sample/simplef=
ile_wrapper.cpp.o] Error 1
gmake[1]: *** [tests/samplebinding/CMakeFiles/sample.dir/all] Error 2
gmake: *** [all] Error 2
*** Error code 2
=20
Stop.
make: stopped in /mnt/vol1/rhialto/cvs/pkgsrc/wip/py-pyside-shiboken
*** Error code 1
=20
Stop.
make: stopped in /mnt/vol1/rhialto/cvs/pkgsrc/wip/py-pyside-shiboken
Looking at the code at that place, I see
if (!PyErr_Occurred()) {
// filename()
PyThreadState* _save =3D PyEval_SaveThread(); // Py_BEGIN_A=
LLOW_THREADS
char * cppResult =3D cppSelf->filename();
PyEval_RestoreThread(_save); // Py_END_ALLOW_THREADS
pyResult =3D Shiboken::Conversions::copyToPython(Shiboken::=
Conversions::PrimitiveTypeConverter<const char*>(), cppResult);
}
where the compiler complains about the
char * cppResult =3D cppSelf->filename();
in the middle.
As far as I can see, g++ (gcc version 4.5.3 (NetBSD nb2 20110806) ) is corr=
ect. The filename() method returns a const char *. That seems to match what=
?s in ?./tests/libsample/simplefile.h
It seems incorrect code generation that this is assigned to a plain char *.
Does anyone have an idea why I'd see this, and others apparently succeed
here?
I have started a forum thread at
http://qt-project.org/forums/viewthread/34477/ but so far there are no
reactions.
Here is my wip/py-pyside-shiboken/Makefile:
# $NetBSD$
VERSION=3D 1.2.1
DISTNAME=3D shiboken-${VERSION}
PKGNAME=3D ${PYPKGPREFIX}-shiboken-${VERSION}
MASTER_SITES=3D http://download.qt-project.org/official_releases/pyside/
EXTRACT_SUFX=3D .tar.bz2
CATEGORIES=3D devel
MAINTAINER=3D [email protected]
HOMEPAGE=3D http://qt-project.org/wiki/Get-PySide
COMMENT=3D pyside (shiboken prerequisite)
LICENSE=3D gnu-gpl-v2
USE_TOOLS+=3D gmake cmake pkg-config
USE_LANGUAGES+=3D c c++
USE_CMAKE=3D yes
=2Einclude "../../x11/qt4-libs/buildlink3.mk"
=2Einclude "../../textproc/libxml2/buildlink3.mk"
=2Einclude "../../textproc/libxslt/buildlink3.mk"
=2Einclude "../../lang/python/extension.mk"
pre-configure:
cd ${WRKSRC} && ${MKDIR} build
do-configure:
cd ${WRKSRC}/build && ${SETENV} ${CONFIGURE_ENV} ${CMAKE} ..
do-build:
cd ${WRKSRC}/build && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
do-install:
cd ${WRKSRC}/build && ${SETENV} ${INSTALL_ENV} ${MAKE_PROGRAM} ${INSTALL_T=
ARGET}
=2Einclude "../../mk/bsd.pkg.mk"
-Olaf.
--=20
___ Olaf 'Rhialto' Seibert -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl -- 'this bath is too hot.'
--jy6Sn24JjFx/iggw
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (NetBSD)
iQEcBAEBAgAGBQJSfQjBAAoJEJmJxkVhw/vTEPQH/RzjBlmN+OxSpTLSZMrS6O99
hd59DUQ6EkDOGpcvDWj91WdqLpHWLTR9pXVI6fDPgYS+q5ijfk5rtZzoNp7eoJtY
+nNe6PM3ZzmMAnhiZbSm9oP0A86Wp9KDSaPSxN79MswV5Q5Ngtmrxud1zLqltitc
QCrt/9FnwHd+0SfMWlK0ghEwCuKhr8+h6IUw5FC19QG0pw/K9hptDjqniwZ+cGrD
I1PiYSa6JXIqP8cc4Vb6w7D4BDkFViG+ooLffrXrgZnF+qiNqHK54tPyKLMG1jCk
EIiXdolVeIE1cCe4e9TaymcEaNPgTVsqwcAFS9gmuGWtpQzUi5os8jHZYbR8aIc=
=HeYP
-----END PGP SIGNATURE-----
--jy6Sn24JjFx/iggw--
--===============6537195790382340255==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
--===============6537195790382340255==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
pkgsrc-wip-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss
--===============6537195790382340255==--