Hello,<div><br></div><div>I'm very new to cmake and I'm attempting to build the webcamtools package. While I've been able to get CMake to work properly on the host I'm working on I really need it to configure for cross-compiling to a embedded ARM TS-7800 board. In reading through various documentation I've created my Toolchain.cmake file but the error I'm up against is "CMake Error: Error Processing file:". The host I'm running on is a fully patched intel debian 5.0.3 running as a VM session inside Virtual Box on a intel Mac. I'm using cmake 2.8.4. Below is a typescript of the session that gives the error. I'm also including the Toolchain-ts7800-arm.cmake file that I've created for this. I have not been able to find a way to get cmake to be more forthcoming about what the error is about much less fix it. the --debug-out didn't provide any info about the error either.</div>
<div><br></div><div>Thanks in advance,</div><div> -Steve</div><div><br></div><div><div>---begin typescript of cmake run---</div><div><div>Script started on Sun 27 Feb 2011 01:19:09 PM CST</div><div>[1]debian> cmake --version</div>
<div>cmake version 2.8.4</div><div>[2]debian> cmake -CMAKE_TOOLCHAIN_FILE=/home/swt/work/Toolchain-ts7800-arm.cmake -DUVCVIDEO_INCLUDE_PATH=~/work/linux-2.6.34/drivers/media/video/uvc/ ..</div><div>loading initial cache file MAKE_TOOLCHAIN_FILE=/home/swt/work/Toolchain-ts7800-arm.cmake</div>
<div>CMake Error: Error processing file:MAKE_TOOLCHAIN_FILE=/home/swt/work/Toolchain-ts7800-arm.cmake</div><div>** Checking for uvcvideo ...</div><div>** Overriding uvcvideo.h search path: ~/work/linux-2.6.34/drivers/media/video/uvc/</div>
<div>** Found Linux UVC Driver include file in: /home/swt/work/linux-2.6.34/drivers/media/video/uvc</div><div>** Using old-style uvcvideo.h from uvcvideo sources instead of public linux/uvcvideo.h.</div><div>** Checking for V4L2 ...</div>
<div>** Found V4L2 include file in: /usr/include</div><div>** Your V4L2 does NOT have V4L2_CTRL_TYPE_STRING support. Compiling WITHOUT raw control support.</div><div>** Installation directory for libwebcam: /usr/local/lib</div>
<div>** Debian package architecture: i386</div><div>** Creating CPack configuration file for libwebcam ...</div><div>** Installation directory for uvcdynctrl: /usr/local/bin</div><div>** Debian package architecture: i386</div>
<div>** Creating CPack configuration file for uvcdynctrl ...</div><div>-- Configuring incomplete, errors occurred!</div><div>[2]debian> exit</div><div>exit</div><div><br></div><div>Script done on Sun 27 Feb 2011 01:19:30 PM CST</div>
</div><div>---end typescript of cmake run---</div><div><br></div><div>---begin Toolchain-ts7800-arm.cmake---</div><div>##</div><div>## See www.vtk.orig/Wiki/CMake_Cross_Compiling for details</div><div>##</div><div><br></div>
<div># System name: Linux or Windows</div><div>#</div><div>set(CMAKE_SYSTEM_NAME Linux)</div><div><br></div><div># Indicate that we are cross compiling</div><div>#</div><div>set(CMAKE_CROSSCOMPILING TRUE)</div><div><br></div>
<div># Set the the processor</div><div>#</div><div>set(CMAKE_SYSTEM_PROCESSOR ARM)</div><div><br></div><div># Set the compilers</div><div>#</div><div>set(CMAKE_C_COMPILER /home/swt/work/toolchains/arm-2010.09/bin/arm-none-eabi-gcc)</div>
<div>set(CMAKE_CXX_COMPILER /home/swt/work/toolchains/arm-2010.09/bin/arm-none-eabi-g++)</div><div><br></div><div># Set the root path to search for includes and libraries</div><div>#</div><div>set(CMAKE_FIND_ROOT_PATH /home/swt/work/linux-2.6.34/)</div>
<div><br></div><div>#set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)</div><div>set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)</div><div>set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)</div><div>set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)</div>
<div><br></div><div>set(BUILD /home/swt)</div></div><div>---end Toolchain-ts7800-arm.cmake---</div>