OpenCV GTK+2.x error

前端 未结 14 2186
轮回少年
轮回少年 2020-12-03 07:16

I had installed OpenCV following these steps (). After trying to compile one examples,i got this error :

OpenCV Error: Unspecified error (The function is no         


        
14条回答
  •  北荒
    北荒 (楼主)
    2020-12-03 08:08

    @oxydron/Elliott Miller: I have Ubuntu 16.04 LTS environment with gtk 3 pre installed. I got the same error for Caffe build (master branch), Try the following steps, may be it should work for you.

    sudo apt-get install libgtk-3-dev
    cmake .. (WITH_GTK=ON and other settings), 
    make
    

    And bingo the error was gone... in my python caffe code

    Please note:

    The CMAKE configuration should reflect GTK+ 3.x instead of GTK+ 2.x

           GUI: 
    --     QT:                          NO
    --     GTK+ 3.x:                    YES (ver 3.18.9)
    --     GThread :                    YES (ver 2.48.2)
    --     GtkGlExt:                    NO
    --     OpenGL support:              NO
    --     VTK support:                 NO
    

提交回复
热议问题