Ho installato OpenCV seguendo questi passaggi(). Dopo aver provato a compilare un esempio, ho ottenuto questo errore:OpenCV GTK + 2.x errore
OpenCV Error: 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 cvNamedWindow, file /home/nick/.Apps/opencv/modules/highgui/src/window.cpp, line 516
terminate called after throwing an instance of 'cv::Exception'
what(): /home/nick/.Apps/opencv/modules/highgui/src/window.cpp:516: error: (-2) 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
CMakeLists.txt
cmake_minimum_required(VERSION 2.8.4)
project(threadTest)
find_package(OpenCV REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -pthread")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "/home/nick/ClionProjects/threadTest")
set(SOURCE_FILES main.cpp)
add_executable(threadTest ${SOURCE_FILES})
target_link_libraries(threadTest ${OpenCV_LIBS})
come risolverlo?
Basta leggere il messaggio di errore? Dichiara: _La funzione non è implementata. Ricostruisci la libreria con [..] supporto GTK + 2.x [..]. Se sei su Ubuntu o Debian, installa libgtk2.0-dev e pkg-config, quindi esegui di nuovo cmake o configura script_ Se non stai usando Ubuntu o Debian, prova a capire come viene chiamato e installato il pacchetto di sviluppo GTK 2.0 insieme a pkg-config. – usr1234567
avevo installato libgtk2.0-dev e non aiuta :( –
CMke lo trova? Dai un'occhiata nell'output Forse devi seguire il percorso da Gtk a CMake. – usr1234567