But there are still a couple of issues:
* Qt headers still need to be found, which I fixed by adding
set(QT_INCLUDE_DIR "/usr/local/Trolltech/Qt-4.5.2/include")
to CMakeLists.txt. I'm not sure what the best way of dealing with this is.

FindQt4 defines QT_INCLUDE_DIR as far as I know.
http://www.cmake.org/cmake/help/cmake2.6docs.html#module:FindQt4

My knowledge about Mac OS is zero, but is /usr/local/Trolltech the default
install dir? Any chance FindQt4 is looking in /usr/Trolltech?

Actually Qt on the Mac is more complicated that. Brendan, did you build your own copy of Qt? I installed the binary package from the Qt web site and it has a /usr/local/Qt4.5 directory, but there's nothing of interest in there (i.e. no headers or libraries). There aren't any Trolltech directories anywhere that I can see.

OS X has the concept of "Frameworks" and that is how Qt is packaged by default on the Mac. Frameworks are actually kind of nice. They are a packaging up of headers and libraries into a bundle. And, the bundles have versioning in them, so they can contain multiple versions.

> ls -d /Library/Frameworks/Qt*
/Library/Frameworks/Qt3Support.framework/ /Library/Frameworks/ QtOpenGL.framework/ /Library/Frameworks/QtAssistant.framework/ /Library/Frameworks/ QtScript.framework/ /Library/Frameworks/QtCore.framework/ /Library/Frameworks/ QtScriptTools.framework/ /Library/Frameworks/QtDBus.framework/ /Library/Frameworks/ QtSql.framework/ /Library/Frameworks/QtDesigner.framework/ /Library/Frameworks/ QtSvg.framework/ /Library/Frameworks/QtDesignerComponents.framework/ /Library/ Frameworks/QtTest.framework/ /Library/Frameworks/QtGui.framework/ /Library/Frameworks/ QtWebKit.framework/ /Library/Frameworks/QtHelp.framework/ /Library/Frameworks/ QtXml.framework/ /Library/Frameworks/QtNetwork.framework/ /Library/Frameworks/ QtXmlPatterns.framework/

Those are the standard frameworks installed by Qt.

You can use the includes from a framework or link to it by using the - framework flag on gcc (e.g. -framework QtCore). /Library/Framework is part of the standard framework path, so those frameworks will be found by the compiler.

My quick glimpse of the CMake docs does indicate that it knows about OS X frameworks. But I'm not very familiar with the workings of CMake.

I hope that helps. I hope I can scrape together some time to give building Pyslide a shot myself. I'm very excited about the project.

/\/\ike
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to