타임스 오류 cvNamed Window 문제
error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function ‘cvNamedWindow’
원인:
Linux 플랫폼에서 opencv 소스 코드 라이브러리를 컴파일할 때./configure가 설정할 때ltk2.0의 개발 라이브러리가 검출되지 않았기 때문에make 명령을 실행할 때 UI 지원 없이 이 라이브러리를 컴파일합니다.시스템에ltk 실행 라이브러리가 있어야 할 뿐만 아니라ltk 개발 라이브러리가 있어야ui 지원하에opencv를 성공적으로 컴파일할 수 있습니다.
해결 방법: Opencv 라이브러리를 삭제하고 GTK+2를 설치합니다.x,opencv를 다시 컴파일합니다.
apt-get install libgtk2.0-dev pkg-config
apt-get install pkg-config
명령 보기 GTK+ 2.x 버전:
pkg-config --modversion gtk+-2.0
cmake 설치:
현재 cmake 버전 보기: cmake --version 다운로드 cmake 설치 패키지: wgethttps://cmake.org/files/v3.9/cmake-3.9.2.tar.gz
cd cmake-3.9.2
./configure
sudo make && make install
버전 번호를 보고 검증: cmake --version이 없으면 사용자의 PATH 경로를 수정하고 cmake 경로를 사용자 환경 변수에 추가하여 다음 명령을 실행할 수 있습니다.
$ echo "export PATH=$PATH:/usr/local/bin" >> ~/.bashrc
opencv 소스 다운로드:
git clone https://github.com/opencv/opencv.git
git clone https://github.com/opencv/opencv_contrib.git
컴파일하기 위해 cmake 열기:
cmake-gui
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.