Hi Jim,

Thanks for the extra feedback.  Could you post the values that
PKG_CONFIG aquires for XRANDR?

Given the install uses LIB_PUBLIC_HEADERS, I wonder if the following
line in the XRANDR setup code in src/osgViewer/CMakeLists.txt is the
source of the problem:

            SET(LIB_PUBLIC_HEADERS ${LIB_PUBLIC_HEADERS} ${XRANDR_INCLUDE_DIRS})

Perhaps moving the XRANDR_INCLUDE_DIRS to ADD_LIBRARY entry rather
than LIB_PUBLIC_HEADERS would work around this.

Robert.

On Sun, Jan 25, 2009 at 8:12 PM, Jim Brooks <[email protected]> wrote:
>>I've just reviewed your change and feel that it perhaps isn't solving
>>the problem, rather just hacking around it.
>>
>>Which version of CMake are you using?
>
>
> Haven't uncovered the real problem yet, sorry.
>
> cmake 2.6.1 (and tried 2.6.2)
>
>
>>The original code block that you are disabling shouldn't produce
>>errors, as checks are in place to not enable the XRANDR support if
>>PKG_COFNIG is not supported or that XRANDR is not available.  The code
>>block is:
>
>
> If this line is commented-out, then cmake will succeed:
>
>  # PKG_CHECK_MODULES(XRANDR xrandr)
>
>
>>Is it that FreeBSD does support XRANDR?
>
>
> Yes, FreeBSD has XRANDR.
>
>
>> Is it an issue with the LIB_PUBLIC_HEADERS?
>
>
> Don't think so. That seems to be defined ok.
>
> Rather, if PKG_CHECK_MODULES() isn't commented-out,
> it breaks INCLUDE() and INSTALL() in the last section (don't know why):
>
> ...............................................
> INCLUDE(ModuleInstall OPTIONAL)
>
> FOREACH( INCLUDEFILE ${LIB_PUBLIC_HEADERS} )
>   FILE(RELATIVE_PATH REL_INCLUDEFILE ${HEADER_PATH} ${INCLUDEFILE})
>   GET_FILENAME_COMPONENT(REL_INCLUDE_PATH ${REL_INCLUDEFILE} PATH)
>   INSTALL(
>   FILES        ${INCLUDEFILE}
>   DESTINATION ${INSTALL_INCDIR}/${LIB_NAME}/${REL_INCLUDE_PATH}
>   COMPONENT libopenscenegraph-dev
>   )
> ENDFOREACH( INCLUDEFILE)
> ...............................................
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to