Failed to generate VS solution for windows, anyone can help on?

Hi All,

I get the latest sample implementation, and while I use the python to generate VS solution, it is failed.
My system is Win7, and I install VS 2008, VS 2010, and VS2012. I am not familiar with cmake, anyone can help?
Thanks!

c:\Users\wchen31\Desktop\MyWork\OpenVX\openvx_sample>
c:\Users\wchen31\Desktop\MyWork\OpenVX\openvx_sample>python Build.py --os=Window
s
cmake c:\Users\wchen31\Desktop\MyWork\OpenVX\openvx_sample -DCMAKE_BUILD_TYPE=Re
lease -DCMAKE_INSTALL_PREFIX=c:\Users\wchen31\Desktop\MyWork\OpenVX\openvx_sampl
e\install\Win\x64${BUILD_TYPE} -DBUILD_X64=1 -G “Visual Studio 12 Win64”
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDet
ermineCompilerId.cmake:446 (execute_process):
execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompile
rId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompil
er.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
cmake_utils/CMake_windows_tools.cmake:50 (enable_language)
CMakeLists.txt:38 (include)

– The C compiler identification is unknown
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDet
ermineCompilerId.cmake:446 (execute_process):
execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompile
rId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXComp
iler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID)
cmake_utils/CMake_windows_tools.cmake:51 (enable_language)
CMakeLists.txt:38 (include)

– The CXX compiler identification is unknown
CMake Error at cmake_utils/CMake_windows_tools.cmake:58 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
CMakeLists.txt:38 (include)

CMake Error at cmake_utils/CMake_windows_tools.cmake:59 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
CMakeLists.txt:38 (include)

CMake Error at cmake_utils/CMake_windows_tools.cmake:60 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
CMakeLists.txt:38 (include)

CMake Error at cmake_utils/CMake_windows_tools.cmake:61 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
CMakeLists.txt:38 (include)

CMake Error at cmake_utils/CMake_windows_tools.cmake:64 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
CMakeLists.txt:38 (include)

CMake Error at cmake_utils/CMake_windows_tools.cmake:65 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
CMakeLists.txt:38 (include)

– Configuring incomplete, errors occurred!
See also “C:/Users/wchen31/Desktop/MyWork/OpenVX/openvx_sample/build/Win/x64/CMa
keFiles/CMakeOutput.log”.
See also “C:/Users/wchen31/Desktop/MyWork/OpenVX/openvx_sample/build/Win/x64/CMa
keFiles/CMakeError.log”.
DEVENV OpenVX.sln /build Release /project INSTALL

Microsoft ® Microsoft Visual Studio 2012 Version 11.0.50727.1.
Copyright © Microsoft Corp. All rights reserved.

The following files were specified on the command line:

    OpenVX.sln

These files could not be found and will not be loaded.
c:\Users\wchen31\Desktop\MyWork\OpenVX\openvx_sample>

I double check, cl runs well in VS command prompt.

Some interesting, If use the command ‘Build.py --os=Linux’, I find ‘OpenVX.sln’ is generated in ‘build/Linux/x64/Release’. Open it with VS 12, but it failed to compile the solution.

I have a similar problem:
I tried to build it for Android, the VS solution is generated, but the python script says that there is no target “install”:
[ATTACH=CONFIG]69[/ATTACH]

when i try to build the solution in VS2013 i get the following errors:
[ATTACH=CONFIG]70[/ATTACH]

i guess the cmake generation is not working properly for me.
did anyone have the same problem and came up with a solution?

side notes:
I am using Windows 7 32-Bit, Cygwin, Python 2.7.9, cmake 2.8.12
The same problem occours when building for environments other than Android

I managed to build the VS Solution, i just turned off the EXPERIMENTAL_USE_DOT off
it’s in the CMakeLists.txt in the sample’s root directory:
[ATTACH=CONFIG]71[/ATTACH]

Hope that helps in your case too.

BR,
ch1989

[QUOTE=loveidle;30905]I get the latest sample implementation, and while I use the python to generate VS solution, it is failed.
My system is Win7, and I install VS 2008, VS 2010, and VS2012.[/QUOTE]

As per the README, VS2013 or higher is required. VS2012 is not supported.

Yes, actually, I have installed VS12(2013). From the error message, it is “-- The C compiler identification is unknown:”.
I google for it, but haven’t got the solution.

Anyone build it for Windows correctly?