Ask Your Question

Cmake 2.4.4 with vc11 x86 on Win7 64bits

asked 2013-04-10 04:53:17 -0500

Yggdrazil gravatar image

updated 2013-04-10 05:06:23 -0500

Hi everyone,

I'm trying to build OpenCV 2.4.4 with VC11 x86 (VS2012) on Win7 64bits, in order to get the .pdb files that i need for my project to work.

However, Cmake gives me the following error :

"CMake fails to deterimine the bitness of target platform."

Do you have any idea ?

I've been struggling with this for days. I'm a total newbie (it's for a school project) with CMake and all that stuff. I understand there's something to do with a toolchain file, is that right ?

Note : If anyone just had the .pdb files to provide, i would greatly appreciate :)

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2015-01-26 14:17:12 -0500

I got the above error when tried to configure the opencv with CMake under Windows7. Turned out that my AVAST anti-virus was blocking the generation and deleted the temporarly created binaries immediately.. just add the opencv folder (build, sources, etc - recursively) to exclusion list in settings.

Same applies to eclipse projects when you create a C or C++ project make sure that the folder is added to the exlcusion list otherwise you will get execution error (when running the binary from eclipse menu).

Hope it helps.

edit flag offensive delete link more

answered 2013-04-10 06:10:35 -0500

Same answer as the topic beneath you, it seems that OpenCV and VS2012 have problems in getting to compile correctly, so VS2010 is suggested. However, some nice guy wrote a guide on how to get everything compiled with VS2012:

Please see that topic for more guidance :)

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-04-10 04:53:17 -0500

Seen: 1,469 times

Last updated: Jan 26 '15