के साथ सीएमके मैं विंडोज 7 (64-बिट) पर सीएमके के साथ ओपनसीवी संकलित करने की कोशिश कर रहा हूं। इसका उपयोग ग्रहण और सीडीटी के साथ किया जाना है, जिसके लिए मैंने कहीं कहीं पढ़ा है कि आप संकलक के बावजूद यूनिक्स मेकफ़ाइल निर्दिष्ट करना चाहते हैं। अब, मेरे पास साइगविन भी है (एंड्रॉइड एनडीके सामान के लिए), मैंने पहले अपने कंपाइलर्स का उपयोग करने की कोशिश की, और मैंने सफलतापूर्वक सीएमके को कॉन्फ़िगर किया और मेकफ़ाइल जेनरेट किया, लेकिन केवल 63% संकलन प्राप्त हुआ, जब ओपनसीवी एक त्रुटि थूकता है (ffmpeg के बारे में और HMODULE)। इसलिए मैंने मिनीजीडब्लू पर स्विच किया (हैलोवर्ल्ड इसके साथ भी दर्द था, मुझे पीएटीएच वैरिएबल सेटिंग के बावजूद मिनजीडब्ल्यू जी ++ के लिए एक पूर्ण पथ निर्दिष्ट करना था), लेकिन अब मैं सीएमके को भी कॉन्फ़िगर नहीं कर सकता।मिनगेडब्ल्यू और ग्रहण सीडीटी
The C compiler identification is GNU
The CXX compiler identification is GNU
CMake Error: your RC compiler: "CMAKE_RC_COMPILER-NOTFOUND" was not found. Please set CMAKE_RC_COMPILER to a valid compiler path or name.
Check for working C compiler: C:/MinGW/bin/gcc.exe
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeRCInformation.cmake:22 (GET_FILENAME_COMPONENT):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/Platform/Windows-GNU.cmake:59 (enable_language)
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/Platform/Windows-GNU-C.cmake:1 (include)
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:56 (INCLUDE)
CMakeLists.txt:2 (PROJECT)
CMake Error: CMAKE_RC_COMPILER not set, after EnableLanguage
CMake Error: Internal CMake error, TryCompile configure of cmake failed
Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "C:/MinGW/bin/gcc.exe" is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:47 (project)
Configuring incomplete, errors occurred!
किसी को भी किसी भी विचार क्या एक समस्या (? Cygwin खोल के साथ संघर्ष) हो सकता है है, तो मैं किसी भी इनपुट सराहना करेंगे: मैं निम्नलिखित त्रुटि मिलती है। अग्रिम में धन्यवाद!
धन्यवाद, यह किया था! मुझे लगता है कि ग्रहण सीडीटी के साथ यूनिक्स मेकफ़ाइल के बारे में मिली जानकारी पुरानी थी, साथ ही मुझे उपलब्ध सीडीटी विकल्पों से गुमराह किया गया था और विकल्पों पर विचार नहीं किया गया था। ओपनसीवी संकलित, उम्मीद है कि यह अब ग्रहण के भीतर काम करेगा। चीयर्स! – vkotor