Hi Chris,
I went to build the SVN-head VPB (on Windows) today, and discovered
it now needs
libSquish for DXT software compression.
I haven't been able to find such a file, even after building
libSquish. There are .cmake
files with generic names like CMakeCCompiler.cmake in libsquish/
CMakefilea, and a
cmake_install.cmake in libsquish, but I don't think these are what
it's looking for.
cmake_install.cmake and CMakefiles are generated during configuration,
so yes, that's not what you need.
I suspect something is amiss with the the VPB CMake setup, but my
CMake-fu is weak, and
I'm not yet sure how to fix it. Any suggestions?
The find_package macro must be supplied by VPB in its own CMakeModules
directory (not to mix up with the temp CMakeFiles dir), because there
is no pre-defined find_package module for libsquish provided by cmake.
So I suspect that the find_package module for libsquish was forgotten
to be checked into VPB or something related.
As a workaround, you can directly locate libsquish without using the
find_package macro:
FIND_LIBRARY(SQUISH_LIBRARY squish PATHS "${SQUISH_PATH} PATH_SUFFIXES
lib release minsizerel relwithdebinfo)
FIND_PATH(SQUISH_INCLUDE_DIR squish.h PATHS "${SQUISH_PATH}
PATH_SUFFIXES include)
INCLUDE_DIRECTORIES(${SQUISH_INCLUDE_DIR})
Point SQUISH_PATH to your installation directory of libsquish unless
you installed to a standard location like /usr or /usr/local. In that
case cmake will find it automatically without specifying the path.
The above cmake snippet is a simplified excerpt of the cmake config
file of libMini which also uses squish for dxt compression. You can
browse the full config file here:
http://code.google.com/p/libmini/source/browse/libmini/mini/libMini-config.cmake
Hope that helps,
Stefan
PS: I just recently contributed my own cmake support files to the
libsquish svn, so the libsquish cmake support is brand new. If it
turns out that it has some remaining issues, I'd be happy to get a bug
report and fix it.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org