>
>
> Nice workaround ;-), the official place is using the include_directories
> command. But the better way to solve this is find why Qt can't be foudn on
> your system or why cmake found Qt in a wrong directory.
>
> > Modify the CMAKE_CXX_FLAGS line to include the Qt include directory:
> > set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall
> > -DAPIEXTRACTOR_ENABLE_DUPLICATE_ENUM_VALUES
> > -I/usr/local/Trolltech/Qt-4.5.2/include")
>Adding set(QT_INCLUDE_DIR "/usr/local/Trolltech/Qt-4.5.2/include") to the top of the CMakeLists.txt seems to be a more general solution than adding the -I flags. In PySide, data/global.h: #define Q_WS_X11 should be commented out for OSX. A couple of errors come up when compiling PySide: * The scanner is including incorrect qatomic_* platform headers. I want to limit it to qatomic_x86_64.h. Since I don't know how to do that right now, I just deleted the qatomic_* platform headers that I wasn't interested in. * There's a boost error on qthreads_wrapper.cpp. .../invoke.hpp:75: error: no match for call to '(const boost::python::detail::specify_a_return_value_policy_to_wrap_functions_returning<void*>) (void*)' I'm not sure which function is returning void*, or how to add a boost::python return policy. If I have PySide ignore the qthread class, it'll compile fine but get tripped on another class in qtgui...so it would be better to create a return policy to generally fix the problem.
_______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
