OpenCV installation
===

HI i downloaded the tar archive for open CV and extracted it and then in a new folder used cmake i get this error every time while its processing the system.cpp.o file i am new to open cv and installation on linux from source please help. The error is:

The tar file is in /home/abir directory


    In file included from /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp:460:
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:37:1: warning: missing terminating " character
    In file included from /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp:460:
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:37: error: missing terminating " character
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:38:11: error: too many decimal points in number
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:38:29: error: invalid suffix "st" on integer constant
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:42:29: warning: character constant too long for its type
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:59: error: stray ‘@’ in program
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:59: error: stray ‘@’ in program
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:70:10: error: #include expects "FILENAME" or <FILENAME>
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:73: error: stray ‘\’ in program
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:73:9: warning: missing terminating " character
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:73: error: missing terminating " character
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:76:23: warning: missing terminating " character
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:1482:32: warning: "_FILE_OFFSET_BITS" is not defined
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:1517: error: stray ‘\’ in program
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:1517:4: warning: missing terminating " character
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:1517: error: missing terminating " character
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc: In function ‘const std::string& cv::getBuildInformation()’:
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:38: error: expected ‘,’ or ‘;’ before ‘version’
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:140: error: ‘z_stream’ was not declared in this scope
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:142: error: expected ‘;’ before ‘typedef’
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:163: error: ‘gz_header’ was not declared in this scope
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:165: error: expected ‘;’ before ‘typedef’
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:1507: error: ‘ZEXTERN’ was not declared in this scope
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:1507: error: expected ‘;’ before ‘const’
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:1513: error: no return statement in function returning non-void [-Wreturn-type]
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc: At global scope:
    /home/abir/disertation/OpenCV-2.4.2/build/modules/core/version_string.inc:1517: error: expected unqualified-id before ‘)’ token
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp:462: error: expected unqualified-id before ‘return’
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp:465: error: ‘string’ does not name a type
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp:474: error: ‘string’ does not name a type
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp: In function ‘bool setBreakOnError(bool)’:
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp:535: warning: no previous declaration for ‘bool setBreakOnError(bool)’ [-Wmissing-declarations]
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp: At global scope:
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp:542: error: ISO C++ forbids declaration of ‘Exception’ with no type [-fpermissive]
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp:542: error: expected ‘,’ or ‘...’ before ‘&’ token
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp: In function ‘void error(int)’:
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp:542: warning: no previous declaration for ‘void error(int)’ [-Wmissing-declarations]
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp:545: error: ‘exc’ was not declared in this scope
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp:549: error: ‘exc’ was not declared in this scope
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp:565: error: ‘exc’ was not declared in this scope
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp: At global scope:
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp:542: warning: unused parameter ‘Exception’ [-Wunused-parameter]
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp: In function ‘int (* redirectError(int (*)(int, const char*, const char*, const char*, int, void*), void*, void**))(int, const char*, const char*, const char*, int, void*)’:
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp:569: warning: no previous declaration for ‘int (* redirectError(int (*)(int, const char*, const char*, const char*, int, void*), void*, void**))(int, const char*, const char*, const char*, int, void*)’ [-Wmissing-declarations]
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp: At global scope:
    /home/abir/disertation/OpenCV-2.4.2/modules/core/src/system.cpp:582: error: expected declaration before ‘}’ token
    make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o] Error 1
    make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
    make: *** [all] Error 2

