Apologies for hijacking this thread, but here I am probably reaching exactly the right audience:
I have been trying for a while to build the Git version on Snow Leopard following the standard procedure that I successfully use on Ubuntu. My Qt is the regular Qt 4.7 installed under /Developer, i.e. no Mac Ports. My Python is the regular Apple Python 2.6.1. I have got ~/pyside/src containing apiextractor, ..., pyside. Inside these directories I create subdirs "build" in each of them, and there I go cmake -DCMAKE_INSTALL_PREFIX=~/pyside .. sudo make install apiextractor builds fine, but then generatorrunner does not find the header files from apiextractor. I have investigated a bit and found the following: In ~/pyside/src/generatorrunner/build/CMakeFiles/genrunner.dir/flags.make generated by cmake there is a bad CXX_FLAG: -I/tmp/pyside-osx/PYSIDE_TMP/install/usr/include/apiextractor I have not got the slightest idea where this path comes from. I am pretty sure, however, that it is not contained in the sources of apiextractor or generatorrunner. In ~/pyside/src/generatorrunner/CMakeLists.txt there is find_package(ApiExtractor 0.8.1 REQUIRED) which I suspect to be responsible for creating the CXX_FLAG. Maybe it finds a version of apiextractor installed with the binary distribution of PySide somewhere? Unfortunately, I have not got any experience with cmake to track this. Maybe these observations are helpful for the developers to get to a Mac Version that builds as smoothly as the Linux version. This would be really great! Thomas Am 28.10.2010 um 23:38 schrieb Hugo Parente Lima: > On Thursday 28 October 2010 19:17:16 Fabrizio Milo aka misto wrote: >> I am trying to follow the binding tutorial. I am on Macos Snow Leopard 64 >> bit. > > Be sure to have all pieces up to date. > > apiextractor, generator-runner, shiboken and pyside. > > Regards; > >> to make the generator work I had to apply the attached patch. >> To make the shiboken compile I had to apply this patch >> http://qt.gitorious.org/~hugopl/pyside/hugopl-generatorrunner/commit/be4399 >> f?diffmode=inline >> >> But then I get stopped by pyside with this error: >> >> /Users/fmilo/workspace/PYSIDE/pyside/plugins/customwidget.h:35: Error: >> Undefined interface >> >> What that means? I don't have clue about where that comes from. >> >> Attached the complete output. >> >> dhcp-172-16-193-252:build fmilo$ make -j8 >> [ 1%] [ 1%] Scanning dependencies of target pyside >> Generating moc_customwidgets.cxx >> Generating moc_customwidget.cxx >> /Users/fmilo/workspace/PYSIDE/pyside/plugins/customwidget.h:35: Error: >> Undefined interface >> make[2]: *** [plugins/moc_customwidget.cxx] Error 1 >> make[2]: *** Waiting for unfinished jobs.... >> /Users/fmilo/workspace/PYSIDE/pyside/plugins/customwidgets.h:38: >> Error: Undefined interface >> make[2]: *** [plugins/moc_customwidgets.cxx] Error 1 >> make[1]: *** [plugins/CMakeFiles/uiplugin.dir/all] Error 2 >> make[1]: *** Waiting for unfinished jobs.... >> [ 1%] [ 1%] [ 1%] [ 1%] [ 2%] [ 2%] [ 2%] Building CXX object >> libpyside/CMakeFiles/pyside.dir/globalreceiver.cpp.o >> Building CXX object libpyside/CMakeFiles/pyside.dir/pyside.cpp.o >> Building CXX object libpyside/CMakeFiles/pyside.dir/qsignal.cpp.o >> Building CXX object libpyside/CMakeFiles/pyside.dir/signalmanager.cpp.o >> Building CXX object libpyside/CMakeFiles/pyside.dir/qproperty.cpp.o >> Building CXX object libpyside/CMakeFiles/pyside.dir/qslot.cpp.o >> Building CXX object >> libpyside/CMakeFiles/pyside.dir/dynamicqmetaobject.cpp.o >> /Users/fmilo/workspace/PYSIDE/pyside/libpyside/signalmanager.cpp: In >> function ‘bool emitNormalSignal(QObject*, int, const char*, PyObject*, >> const QStringList&)’: >> /Users/fmilo/workspace/PYSIDE/pyside/libpyside/signalmanager.cpp:306: >> error: no matching function for call to >> ‘Shiboken::TypeResolver::toCpp(PyObject*&)’ >> /usr/local/include/shiboken/typeresolver.h:103: note: candidates are: >> void* Shiboken::TypeResolver::toCpp(PyObject*, void**, bool) >> /Users/fmilo/workspace/PYSIDE/pyside/libpyside/signalmanager.cpp: In >> static member function ‘static int >> PySide::SignalManager::qt_metacall(QObject*, QMetaObject::Call, int, >> void**)’: >> /Users/fmilo/workspace/PYSIDE/pyside/libpyside/signalmanager.cpp:381: >> error: no matching function for call to >> ‘Shiboken::TypeResolver::toCpp(PyObject*&)’ >> /usr/local/include/shiboken/typeresolver.h:103: note: candidates are: >> void* Shiboken::TypeResolver::toCpp(PyObject*, void**, bool) >> make[2]: *** [libpyside/CMakeFiles/pyside.dir/signalmanager.cpp.o] Error 1 >> make[2]: *** Waiting for unfinished jobs.... >> make[1]: *** [libpyside/CMakeFiles/pyside.dir/all] Error 2 >> make: *** [all] Error 2 > > -- > Hugo Parente Lima > INdT - Instituto Nokia de Tecnologia > _______________________________________________ > PySide mailing list > [email protected] > http://lists.openbossa.org/listinfo/pyside -- Dr. habil. Thomas Sturm Departamento de Matematicas, Estadistica y Computacion Universidad de Cantabria, Santander, Spain Avda. Los Castros s/n, Room 1072, +34 693 251058 http://personales.unican.es/sturmt/
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
