Unsuccessful in installing OPenCV 2.4.10-Python in Windows from source
Hi,
I tried installing OpenCV-2.4.10 for Python-3.4.1 (Anaconda distribution) for Windows-7, 64-bit from the source.
I used CMake and Visual Studio 2012. The whole process went well with no errors in building ALL-BUILD and INSTALL projects. However, I don't see the cv2 module working in Python yet. Is there something more I need to do before I can import the cv2 module in Python? Any help is highly appreciated.
The log file CMakeErrors.log is attached for troubleshooting. I can't attach a log file, so I am cutting and pasting the content of the CMakeError.log:
*Determining if the system is big endian passed with the following output:
Change Dir: C:/Users/Desri/Downloads/opencv-2.4.10/opencv-2.4.10/build/CMakeFiles/CMakeTmp
Run Build Command:C:\PROGRA~2\MICROS~1.0\Common7\IDE\devenv.com CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec408104936
Microsoft (R) Microsoft Visual Studio 2012 Version 11.0.50727.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: cmTryCompileExec408104936, Configuration: Debug Win32 ------
1> Microsoft (R) C/C++ Optimizing Compiler Version 17.00.50727.1 for x86
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> cl /c /Zi /W3 /WX- /Od /Ob0 /Oi /Oy- /D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /Gy /arch:SSE2 /fp:fast /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec408104936.dir\Debug\\" /Fd"C:/Users/Desri/Downloads/opencv-2.4.10/opencv-2.4.10/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec408104936.pdb" /Gd /TC /analyze- /errorReport:prompt /bigobj TestEndianess.c
1>
1> TestEndianess.c
1> cmTryCompileExec408104936.vcxproj -> C:\Users\Desri\Downloads\opencv-2.4.10\opencv-2.4.10\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec408104936.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
TestEndianess.c:
/* A 16 bit integer is required. */
typedef unsigned short cmakeint16;
/* On a little endian machine, these 16bit ints will give "THIS IS LITTLE ENDIAN."
On a big endian machine the characters will be exchanged pairwise. */
const cmakeint16 info_little[] = {0x4854, 0x5349, 0x4920, 0x2053, 0x494c, 0x5454, 0x454c, 0x4520, 0x444e, 0x4149, 0x2e4e, 0x0000};
/* on a big endian machine, these 16bit ints will give "THIS IS BIG ENDIAN."
On a little endian machine the characters will be exchanged pairwise. */
const cmakeint16 info_big[] = {0x5448, 0x4953, 0x2049, 0x5320, 0x4249, 0x4720, 0x454e, 0x4449, 0x414e, 0x2e2e, 0x0000};
#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_little[argc];
require += info_big[argc];
(void)argv;
return require;
}
Determining if the function fseeko exists failed with the following output:
Change Dir: C:/Users/Desri/Downloads/opencv-2.4.10/opencv-2.4.10/build/CMakeFiles/CMakeTmp
Run Build Command:C:\PROGRA~2\MICROS~1.0\Common7\IDE\devenv.com CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec2303162215
Microsoft (R) Microsoft Visual Studio 2012 Version 11.0.50727.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: cmTryCompileExec2303162215, Configuration: Debug Win32 ------
1> Microsoft (R) C/C++ Optimizing Compiler Version 17 ...
can you check the cmake-output again ? maybe it got disabled for one or the other reason.
just edit your question, paste it there, and then let's throw out the parts unnessecary, i guess.
"Could the errors in these builds be the reason for this problem" - yes, most likely.
i.e, if it does not find a valid numpy install, it will just disable the python bindings, and everything will compile and install without any visible error
I am attaching the CMakeErrors.log file. Could you please take a look at it and tell me what is missing? I am attaching the file under my main question above
Did anybody get a chance to diagnose what the problem might be? Could somebody please suggest who might be the right person to clarify this issue I am facing?