[CMake] CMake Error: Error processing file

Eric Noulard eric.noulard at gmail.com
Mon Feb 28 00:43:04 EST 2011


2011/2/28 Stephen Thomas <sthomasgoo at gmail.com>:
> Hello,
> 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:".

[...]

> ---begin typescript of cmake run---
> Script started on Sun 27 Feb 2011 01:19:09 PM CST
> [1]debian> cmake --version
> cmake version 2.8.4
> [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/ ..
> loading initial cache file

You have a typo on your command line:

-CMAKE_TOOLCHAIN_FILE=/home/swt/work/Toolchain-ts7800-arm.cmake
should be
-DCMAKE_TOOLCHAIN_FILE=/home/swt/work/Toolchain-ts7800-arm.cmake

Thus the error:
> MAKE_TOOLCHAIN_FILE=/home/swt/work/Toolchain-ts7800-arm.cmake
> CMake Error: Error processing

-C option is for preloading cache

-D for defining some var value.


-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list