Hi everyone.
I'm doing my best to get through the build on the mac, and I have some fixes...
First off, I'm using a clone of the master of each of the git subrepositories,
so I'm assuming that's the latest and greatest merged stuff.
I am an absolute beginner in git, don't know how to check in, and I don't want
to mess anything up by checking things randomly in where I'm not supposed to,
so I thought I'd list the fixes here.
======================== FIX #1:
in pyside/PySide/CMakeLists.txt, line 82
set(GENERATOR_EXTRA_FLAGS --generatorSet=shiboken
--enable-parent-ctor-heuristic --enable-pyside-extensions
--enable-return-value-heuristic)
the flags need quotes around them, otherwise they come out semi-colon-separated
on the mac, which breaks what should be a single line command into multiple
commands... so it needs to be changed to:
set(GENERATOR_EXTRA_FLAGS "--generatorSet=shiboken
--enable-parent-ctor-heuristic --enable-pyside-extensions
--enable-return-value-heuristic" )
note, the addition of quotes in the fixed version.
======================= WORKAROUND FIX #2
in pyside/CMakeLists.txt, line 7 there is a section that looks like this:
COMMAND ${GENERATOR} ${GENERATOR_EXTRA_FLAGS}
${CMAKE_BINARY_DIR}/PySide/global.h
--include-paths=${pyside_SOURCE_DIR}:${QT_INCLUDE_DIR}
--typesystem-paths=${pyside_SOURCE_DIR}:${typesystem_path}
--output-directory=${CMAKE_CURRENT_BINARY_DIR}
--license-file=${CMAKE_CURRENT_SOURCE_DIR}/../licensecomment.txt
${CMAKE_CURRENT_SOURCE_DIR}/typesystem_${module}.xml
--api-version=${SUPPORTED_QT_VERSION}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Running generator for ${module}..."
This command has been where things have been breaking on me, so I've put an
extra comment in there to print the actual command being used. In doing so, I
was able to come up with FIX#1 (see above), but there is another issue, as
well...
QT_INCLUDE_DIR seems to be defined as:
/usr/include;/Library/Frameworks/QtCore.framework
The semicolon between /usr/include and /Library/Frameworks/QtCore.framework
should probably be a colon. I can't figure out where QT_INCLUDE_DIR is getting
defined... the only place I can find it is in various CMakeCache.txt files, but
I don't know where those are coming from. To work around it I changed line 9
from:
--include-paths=${pyside_SOURCE_DIR}:${QT_INCLUDE_DIR}
to
--include-paths=${pyside_SOURCE_DIR}:/usr/include:/Library/Frameworks/QtCore.framework
which seems to help. Again, this is a workaround, really wherever
QT_INCLUDE_DIR is defined, is where a proper fix should go.
========================= MAC BUILD IS STILL BREAKING WITH THE FOLLOWING ERROR
But, I'm still running into some roadblocks, that I wonder if someone on the
pyside core crew can help me with?
Here's the error I'm getting:
Building qt bindings...
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonLibs: -framework Python
-- Found PythonInterp: /usr/bin/python2.6
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt-Version 4.6.2 (using /usr/bin/qmake)
-- Detected OS: MAC
-- Testing support to GtkStyle -- disabled
-- Testing support to SystemTray -- enabled
-- Testing support to PrintDialog Support -- enabled
-- Testing support to PrintPreview Support -- enabled
-- Testing support to PrintPreviewDialog Support -- enabled
-- Testing support to Printer Support -- enabled
-- Testing support to SizeGrip Support -- enabled
-- Testing support to SessionManager Support -- enabled
-- Testing support to Network OPENSSL -- enabled
-- QtMaemo5 NOT found. QtMaemo5 support disabled.
-- QtDeclarative NOT found. QtDeclarative support disabled.
-- Missing graphviz tool (dot), apidoc generation targets disabled.
-- Configuring done
-- Generating done
-- Build files have been written to:
/Top/daves/devel/3rdparty/pyside/vgit-master/pyside/build
Scanning dependencies of target pyside
[ 0%] Building CXX object
libpyside/CMakeFiles/pyside.dir/dynamicqmetaobject.cpp.o
[ 0%] Building CXX object libpyside/CMakeFiles/pyside.dir/signalmanager.cpp.o
[ 0%] Building CXX object libpyside/CMakeFiles/pyside.dir/globalreceiver.cpp.o
[ 0%] Building CXX object libpyside/CMakeFiles/pyside.dir/qsignal.cpp.o
[ 0%] Building CXX object libpyside/CMakeFiles/pyside.dir/qslot.cpp.o
[ 1%] Building CXX object libpyside/CMakeFiles/pyside.dir/pyside.cpp.o
Linking CXX shared library libpyside.dylib
[ 1%] Built target pyside
[ 1%] Running generator for core...
Command is:
/Top/daves/devel/infra/install/pyside/vgit-master/generatorrunner/bin/generatorrunner
--generatorSet=shiboken --enable-parent-ctor-heuristic
--enable-pyside-extensions --enable-return-value-heuristic
/Top/daves/devel/3rdparty/pyside/vgit-master/pyside/PySide/global.h
--include-paths=/Top/daves/devel/3rdparty/pyside/vgit-master/pyside/PySide:/usr/include;/Library/Frameworks/QtCore.framework
--typesystem-paths=/Top/daves/devel/3rdparty/pyside/vgit-master/pyside/PySide:/Top/daves/devel/3rdparty/pyside/vgit-master/pyside/build/PySide/QtCore
--output-directory=/Top/daves/devel/3rdparty/pyside/vgit-master/pyside/build/PySide/QtCore
--license-file=/Top/daves/devel/3rdparty/pyside/vgit-master/pyside/PySide/QtCore/../licensecomment.txt
/Top/daves/devel/3rdparty/pyside/vgit-master/pyside/PySide/QtCore/typesystem_core.xml
/Top/daves/devel/infra/install/pyside/vgit-master/generatorrunner/bin/generatorrunner:
Error loading generatorset plugin: Cannot load library
/Top/daves/devel/infra/install/pyside/vgit-master/generatorrunner-git-master_Darwin_10.3.0_i386/lib/generatorrunner/libshiboken
--enable-parent-ctor-heuristic --enable-pyside-extensions
--enable-return-value-heuristic_generator: (image not already loaded)
make[2]: *** [PySide/QtCore/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp]
Error 1
make[1]: *** [PySide/QtCore/CMakeFiles/QtCore.dir/all] Error 2
make: *** [all] Error 2
It seems to be looking for libshiboken and in the place its looking, a library
named libshiboken_generator exists. Does that help?
Does anyone know how the generatorrunner finds/loads its libraries? Or, why it
can't find the one its erroring out on?
Thank you very much!
Cheers,
Dave
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside