On 2009-09-08, at 1:39 PM, Hugo Parente Lima wrote:

====================================================================
apiextractor
====================================================================
A few modifications are needed to the CMakeList.txt file for apiextractor
to build on OSX.

1)
If you trying building apiextractor, cmake complains it can't find modules
libxslt and libxml2.
These libraries are system libraries in OSX and can be found in
/usr/include and /usr/lib.
libxslt 1.1.22 (>= 1.1.19 needed by apiextractor)
libxml2 2.7.3 (>= 2.6.32 needed by apiextractor)

I don't know how to get cmake to recognize the system version of these
libraries, so I just
commented out the requires from the CMake file.  E

Edit CMakeLists.txt and comment out the pkg_check_modules lines for those
libraries:
#pkg_check_modules(LIBXML2 REQUIRED libxml-2.0>=2.6.32)
#pkg_check_modules(LIBXSLT REQUIRED libxslt>=1.1.19)

The link errors you found later are due to this two lines comented out. You need to find why these libs were not found by cmake. pkg_check_module uses
pkg_config, so check if pkg_config is installed in your system.

I dont remenber why we are using pkg_check_modules to find libXSLT and libXML
instead of using the usual cmake commands to find libXML and libXSLT.

pkg_config is not standard on OS X. You can get it via MacPorts or Fink, but that's not ideal because it will find the MacPorts and Fink versions of those libraries. So, for OS X, we should probably look into using the standard cmake commands on OS X...

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

Reply via email to