1
我已經下載了OpenCV 2.4(我認爲它是2.4.3)的源代碼,在它上面運行Cmake並且我生成了一個VS2010解決方案文件。OpenCV 2.4.3構建在Visual Studio 2010上失敗,在gen_java.py中發生錯誤
在編譯時通過cmake的產生的解決方案文件,構建失敗,並出現以下錯誤信息:
2>------ Build started: Project: opencv_java, Configuration: Debug Win32 ------
2> Building Custom Rule C:/temp/opencv-2.4/software/src/modules/java/CMakeLists.txt
2> CMake does not need to re-run because C:\temp\opencv-2.4\software\src\Release\modules\java\CMakeFiles\generate.stamp is up-to-date.
2> Generating core.cpp
2> File "C:/temp/opencv-2.4/software/src/modules/java/generator/gen_java.py", line 1285
2> epilogue = " ".join(c_epilogue) + ("\n " if c_epilogue else ""), \
2> ^
2> SyntaxError: invalid syntax
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 1.
有人知道是怎麼回事,如何解決這一問題?
謝謝。