[Bf-committers] Building OpenCollada OpenSuSE 11.4
Richard Shaw
hobbes1069 at gmail.com
Mon Sep 26 04:44:19 CEST 2011
On Sun, Sep 25, 2011 at 4:50 PM, Daniel Salazar - 3Developer.com
<zanqdo at gmail.com> wrote:
> OK, i did this change but I still get the same error
>
> --- build_files/cmake/Modules/FindOpenCOLLADA.cmake (revision
> 40541)
> +++ build_files/cmake/Modules/FindOpenCOLLADA.cmake (working copy)
> @@ -61,6 +61,8 @@
>
> SET(_opencollada_SEARCH_DIRS
> ${OPENCOLLADA_ROOT_DIR}
> + /usr/lib64
> + /usr/include
> /usr/local
> /sw # Fink
> /opt/local # DarwinPorts
That's not going to do it because the cmake code is still trying to
append the library names as sub-directories to whatever is in
_opencollada_SEARCH_DIRS.
The best thing would be to get a hold of a package that puts it in
subdirectories. Who's package are you using? I know Dave Platter is
one of the packagers of blender and openCOLLADA for OpenSUSE but as
I'm not really all that familiar with the inner workings of SUSE I
guess there could be others.
I'm not a cmake expert but perhaps changing:
SET(_opencollada_INCLUDES)
FOREACH(COMPONENT ${_opencollada_FIND_INCLUDES})
STRING(TOUPPER ${COMPONENT} UPPERCOMPONENT)
# need to use this even thouh we are looking for a dir
FIND_FILE(OPENCOLLADA_${UPPERCOMPONENT}_INCLUDE_DIR
NAMES
${COMPONENT}/include
${COMPONENT}
# Ubuntu ppa needs this.
# Alternative would be to suffix all members of search path
# but this is less trouble, just looks strange.
include/opencollada/${COMPONENT}
HINTS
${_opencollada_SEARCH_DIRS}
)
MARK_AS_ADVANCED(OPENCOLLADA_${UPPERCOMPONENT}_INCLUDE_DIR)
LIST(APPEND _opencollada_INCLUDES
"${OPENCOLLADA_${UPPERCOMPONENT}_INCLUDE_DIR}")
ENDFOREACH()
to something like:
SET(_opencollada_INCLUDES)
FOREACH(COMPONENT ${_opencollada_FIND_INCLUDES})
STRING(TOUPPER ${COMPONENT} UPPERCOMPONENT)
SET(OPENCOLLADA_${UPPERCOMPONENT}_INCLUDE_DIR
/usr/include)
MARK_AS_ADVANCED(OPENCOLLADA_${UPPERCOMPONENT}_INCLUDE_DIR)
LIST(APPEND _opencollada_INCLUDES
"${OPENCOLLADA_${UPPERCOMPONENT}_INCLUDE_DIR}")
ENDFOREACH()
would work...
Richard
More information about the Bf-committers
mailing list