Ask Your Question

Revision history [back]

Cmake + openCV2.4.5 + Windows 7 x64 not finding the cmake configuration parameters ...

So basically I am following the guide to compile openCV myself.

I have installed all necessary libraries like TBB and CUDA in order to compile openCV with support for these.

Next I have fired up CMAKE added the source code folder and the binaries destination folder, then hitted the configure button.

The following result is popping up, have looked around the internet for solutions for hours now, not finding any good guiding...

image description

It seems to me that my CMAKE doesn't succeed in retrieving all correct parameters from the CMakeLists.txt file.

Did anyone experienced this problem before?

Tried applying it both on the latest stable version 2.4.5 as on the github trunk. No success with either of them.

Cmake + openCV2.4.5 + Windows 7 x64 not finding the cmake configuration parameters ...

So basically I am following the guide to compile openCV myself.

I have installed all necessary libraries like TBB and CUDA in order to compile openCV with support for these.these, since this is exactly why I am going through the tutorial.

Next I have fired up CMAKE added the source code folder and the binaries destination folder, then hitted the configure button.

The following result button. This is popping up, have looked around the internet for solutions for hours now, not finding any good guiding...

image description

when the problems come alive:

  1. Like this topic, my C & CXX compiler cannot be defined.
  2. It doesn't seem to find the correct cmake settings to start the configuration progress.

It seems to me that my CMAKE doesn't succeed in retrieving all correct parameters from the CMakeLists.txt file.

Did anyone experienced this problem before?file and that my compilers aren't that easy to find. A reason for this could be that I am not using the standard locations to store my Visual Studio installation.

Tried applying it both on the latest stable version 2.4.5 as on the github trunk. No success with either of them.


UPDATE 1 :

I have found some settings needed to be configured correctly. I have progress and will update this topic as I am advancing in compiling OpenCV2.4.5 myself.

--> Solution to the first problem: when hitting configure, select Visual Studio 10 WIN64, but manually select your compilers, NOT automatically. Then go to your Visual Studio installation folder and look for VC/bin/cl.exe. Add this for both C and C++ compiler. It takes me further down the CMAKE process now, giving me the ability to configure all add-on libraries.

Will add illustrations here later.

--> Just be patient, since I first will see how much further I get, not needing to update this topic 100 times.

Cmake + openCV2.4.5 + Windows 7 x64 not finding the cmake configuration parameters ...

So basically I am following the guide to compile openCV myself.

I have installed all necessary libraries like TBB and CUDA in order to compile openCV with support for these, since this is exactly why I am going through the tutorial.

Next I have fired up CMAKE added the source code folder and the binaries destination folder, then hitted the configure button. This is when the problems come alive:

  1. Like this topic, my C & CXX compiler cannot be defined.
  2. It doesn't seem to find the correct cmake settings to start the configuration progress.

It seems to me that my CMAKE doesn't succeed in retrieving all correct parameters from the CMakeLists.txt file and that my compilers aren't that easy to find. A reason for this could be that I am not using the standard locations to store my Visual Studio installation.

Tried applying it both on the latest stable version 2.4.5 as on the github trunk. No success with either of them.


UPDATE 1 :

I have found some settings needed to be configured correctly. I have progress and will update this topic as I am advancing in compiling OpenCV2.4.5 myself.

--> Solution to the first problem: when problem:

When hitting configure, select Visual Studio 10 WIN64, but manually select your compilers, NOT automatically. Then go to your Visual Studio installation folder and look for VC/bin/cl.exe. Add this for both C and C++ compiler. It takes me further down the CMAKE process now, giving me the ability to configure all add-on libraries.

Configure your folder first and do not to forget to select both the grouping and advanced option.

image description

Hit configure and fill in the desired target system and compilers! Be sure to manually set the compilers for compilation.

image description

image description

Solution to the second problem

Hitting the above configurations helps to get to a configuration that can be adapted, like seen here. Go over each option and fill in all the options that you require:

image description

Be prepared to get returned multiple red lines after a new configuration hit. It will keep asking for more parameters if you for example select the TBB optionality.

When all red lines are removed, hit the generate button which will creare the solution, which is building on my system now. Will add illustrations here later.

--> Just be patient, since I first will see how much further I get, not needing to update this topic 100 times.report back if it was successful.

Cmake + openCV2.4.5 + Windows 7 x64 not finding the cmake configuration parameters ...

So basically I am following the guide to compile openCV myself.

I have installed all necessary libraries like TBB and CUDA in order to compile openCV with support for these, since this is exactly why I am going through the tutorial.

Next I have fired up CMAKE added the source code folder and the binaries destination folder, then hitted the configure button. This is when the problems come alive:

  1. Like this topic, my C & CXX compiler cannot be defined.
  2. It doesn't seem to find the correct cmake settings to start the configuration progress.

It seems to me that my CMAKE doesn't succeed in retrieving all correct parameters from the CMakeLists.txt file and that my compilers aren't that easy to find. A reason for this could be that I am not using the standard locations to store my Visual Studio installation.

Tried applying it both on the latest stable version 2.4.5 as on the github trunk. No success with either of them.


UPDATE 1 :

I have found some settings needed to be configured correctly. I have progress and will update this topic as I am advancing in compiling OpenCV2.4.5 myself.

Solution to the first problem:

When hitting configure, select Visual Studio 10 WIN64, but manually select your compilers, NOT automatically. Then go to your Visual Studio installation folder and look for VC/bin/cl.exe. Add this for both C and C++ compiler. It takes me further down the CMAKE process now, giving me the ability to configure all add-on libraries.

Configure your folder first and do not to forget to select both the grouping and advanced option.

image description

Hit configure and fill in the desired target system and compilers! Be sure to manually set the compilers for compilation.

image description

image description

Solution to the second problem

Hitting the above configurations helps to get to a configuration that can be adapted, like seen here. Go over each option and fill in all the options that you require:

image description

Be prepared to get returned multiple red lines after a new configuration hit. It will keep asking for more parameters if you for example select the TBB optionality.

When all red lines are removed, hit the generate button which will creare the solution, which is building on my system now. Will report back if it was successful.


UPDATE 2 :

As far as CMAKE, everything worked out fine. Seems however that once the visual studio project didn't succeed in compiling everything correctly.

  • Only 24 project builds succeeded, 200+ project builds failed
  • No build folder was found finally
  • During build, VS2010 reports frequently that project files have been changed, wondering if this is normal actually?

I am trying to go at it a second time, still compiling, wondering how long it will take now.

Cmake + openCV2.4.5 + Windows 7 x64 not finding the cmake configuration parameters ...

So basically I am following the guide to compile openCV myself.

I have installed all necessary libraries like TBB and CUDA in order to compile openCV with support for these, since this is exactly why I am going through the tutorial.

Next I have fired up CMAKE added the source code folder and the binaries destination folder, then hitted the configure button. This is when the problems come alive:

  1. Like this topic, my C & CXX compiler cannot be defined.
  2. It doesn't seem to find the correct cmake settings to start the configuration progress.

It seems to me that my CMAKE doesn't succeed in retrieving all correct parameters from the CMakeLists.txt file and that my compilers aren't that easy to find. A reason for this could be that I am not using the standard locations to store my Visual Studio installation.

Tried applying it both on the latest stable version 2.4.5 as on the github trunk. No success with either of them.


UPDATE 1 :

I have found some settings needed to be configured correctly. I have progress and will update this topic as I am advancing in compiling OpenCV2.4.5 myself.

Solution to the first problem:

DO NOT FORGET TO STARTUP CMAKE WITH ADMIN SUPPORT/RIGHTS, ELSE THE TOOL CANNOT RETRIEVE ALL NEEDED DETAILS

When hitting configure, select Visual Studio 10 WIN64, but manually select your compilers, NOT automatically. Then go to your Visual Studio installation folder and look for VC/bin/cl.exe. Add this for both C and C++ compiler. It takes me further down the CMAKE process now, giving me the ability to configure all add-on libraries.

Configure your folder first and do not to forget to select both the grouping and advanced option.

image description

Hit configure and fill in the desired target system and compilers! Be sure to manually set the compilers for compilation.

image description

image description

Solution to the second problem

Hitting the above configurations helps to get to a configuration that can be adapted, like seen here. Go over each option and fill in all the options that you require:

image description

Be prepared to get returned multiple red lines after a new configuration hit. It will keep asking for more parameters if you for example select the TBB optionality.

When all red lines are removed, hit the generate button which will creare the solution, which is building on my system now. Will report back if it was successful.


UPDATE 2 :

As far as CMAKE, everything worked out fine. Seems however that once the visual studio project didn't succeed in compiling everything correctly.

  • Only 24 project builds succeeded, 200+ project builds failed
  • No build folder was found finally
  • During build, VS2010 reports frequently that project files have been changed, wondering if this is normal actually?

I am trying to go at it a second time, still compiling, wondering how long it will take now.

Cmake + openCV2.4.5 + Windows 7 x64 not finding the cmake configuration parameters ...

So basically I am following the guide to compile openCV myself.

I have installed all necessary libraries like TBB and CUDA in order to compile openCV with support for these, since this is exactly why I am going through the tutorial.

Next I have fired up CMAKE added the source code folder and the binaries destination folder, then hitted the configure button. This is when the problems come alive:

  1. Like this topic, my C & CXX compiler cannot be defined.
  2. It doesn't seem to find the correct cmake settings to start the configuration progress.

It seems to me that my CMAKE doesn't succeed in retrieving all correct parameters from the CMakeLists.txt file and that my compilers aren't that easy to find. A reason for this could be that I am not using the standard locations to store my Visual Studio installation.

Tried applying it both on the latest stable version 2.4.5 as on the github trunk. No success with either of them.


UPDATE 1 :WILL POST AS SOLUTION OF COMBINED UPDATES!

I have found some settings needed to be configured correctly. I have progress and will update this topic as I am advancing in compiling OpenCV2.4.5 myself.

Solution to the first problem:

DO NOT FORGET TO STARTUP CMAKE WITH ADMIN SUPPORT/RIGHTS, ELSE THE TOOL CANNOT RETRIEVE ALL NEEDED DETAILS

When hitting configure, select Visual Studio 10 WIN64, but manually select your compilers, NOT automatically. Then go to your Visual Studio installation folder and look for VC/bin/cl.exe. Add this for both C and C++ compiler. It takes me further down the CMAKE process now, giving me the ability to configure all add-on libraries.

Configure your folder first and do not to forget to select both the grouping and advanced option.

image description

Hit configure and fill in the desired target system and compilers! Be sure to manually set the compilers for compilation.

image description

image description

Solution to the second problem

Hitting the above configurations helps to get to a configuration that can be adapted, like seen here. Go over each option and fill in all the options that you require:

image description

Be prepared to get returned multiple red lines after a new configuration hit. It will keep asking for more parameters if you for example select the TBB optionality.

When all red lines are removed, hit the generate button which will creare the solution, which is building on my system now. Will report back if it was successful.


UPDATE 2 :

As far as CMAKE, everything worked out fine. Seems however that once the visual studio project didn't succeed in compiling everything correctly.

  • Only 24 project builds succeeded, 200+ project builds failed
  • No build folder was found finally
  • During build, VS2010 reports frequently that project files have been changed, wondering if this is normal actually?

I am trying to go at it a second time, still compiling, wondering how long it will take now.

Cmake + openCV2.4.5 openCV2.4.9 (master branch) + Windows 7 x64 not finding the cmake configuration parameters ...building steps and problems solved

So basically I am following the guide to compile openCV myself.

I have installed all necessary libraries like TBB and CUDA in order to compile openCV with support for these, since this is exactly why I am going through the tutorial.

Next I have fired up CMAKE added the source code folder and the binaries destination folder, then hitted the configure button. This is when the problems come alive:

  1. Like this topic, my C & CXX compiler cannot be defined.
  2. It doesn't seem to find the correct cmake settings to start the configuration progress.

It seems to me that my CMAKE doesn't succeed in retrieving all correct parameters from the CMakeLists.txt file and that my compilers aren't that easy to find. A reason for this could be that I am not using the standard locations to store my Visual Studio installation.

Tried applying it both on the latest stable version 2.4.5 as on the github trunk. No success with either of them.


WILL POST AS SOLUTION OF COMBINED UPDATES!

Cmake + openCV2.4.9 (master openCV2.4.5 (GIT repository - 2.4 branch) + Windows 7 x64 building steps and problems solvedsolved (zip with dll's available)

So basically I am following the guide to compile openCV myself.

I have installed all necessary libraries like TBB and CUDA in order to compile openCV with support for these, since this is exactly why I am going through the tutorial.

Next I have fired up CMAKE added the source code folder and the binaries destination folder, then hitted the configure button. This is when the problems come alive:

  1. Like this topic, my C & CXX compiler cannot be defined.
  2. It doesn't seem to find the correct cmake settings to start the configuration progress.

It seems to me that my CMAKE doesn't succeed in retrieving all correct parameters from the CMakeLists.txt file and that my compilers aren't that easy to find. A reason for this could be that I am not using the standard locations to store my Visual Studio installation.

Tried applying it both on the latest stable version 2.4.5 as on the github trunk. No success with either of them.


WILL POST AS SOLUTION OF COMBINED UPDATES!