2017-10-25 26 views
0

linux mintにopencvをインストールしようとしていました。 opencvフォルダでcmakeコマンドを実行します。OPENCVのインストールでエラーが発生する

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. 

しかし、私は、リリースフォルダ内のコマンドを作る実行中のPangoに関連するいくつかのエラーを取得:

//usr/lib/x86_64-linux-gnu/libgtk-3.so.0: undefined reference to `pango_attr_font_features_new' 
//usr/lib/x86_64-linux-gnu/libgtk-3.so.0: undefined reference to `pango_renderer_set_alpha' 
//usr/lib/x86_64-linux-gnu/libgtk-3.so.0: undefined reference to `pango_layout_get_serial' 
//usr/lib/x86_64-linux-gnu/libgtk-3.so.0: undefined reference to `pango_attr_background_alpha_new' 
//usr/lib/x86_64-linux-gnu/libgtk-3.so.0: undefined reference to `pango_layout_get_log_attrs_readonly' 
//usr/lib/x86_64-linux-gnu/libgtk-3.so.0: undefined reference to `pango_fc_font_map_config_changed' 
//usr/lib/x86_64-linux-gnu/libgtk-3.so.0: undefined reference to `pango_renderer_get_alpha' 
//usr/lib/x86_64-linux-gnu/libgtk-3.so.0: undefined reference to `pango_attr_foreground_alpha_new' 
collect2: error: ld returned 1 exit status 
modules/highgui/CMakeFiles/opencv_test_highgui.dir/build.make:129: recipe for target 'bin/opencv_test_highgui' failed 
make[2]: *** [bin/opencv_test_highgui] Error 1 
CMakeFiles/Makefile2:7412: recipe for target 'modules/highgui/CMakeFiles/opencv_test_highgui.dir/all' failed 
make[1]: *** [modules/highgui/CMakeFiles/opencv_test_highgui.dir/all] Error 2 
Makefile:160: recipe for target 'all' failed 
make: *** [all] Error 2 

答えて

0

あなたは$ mkvirtualenv CV -p python2

+0

で仮想的環境の再起動で作業する必要があります私はvirtualenvとvirtualenvwrapperをpipを使ってインストールしましたが、mkvirtualenvコマンドが見つかりませんでした。 –

+0

あなたのガイドはわかりませんが、この[チュートリアル](https://www.pyimagesearch.com/2016/10/24/ubuntu- 16-04-how-to-install-opencv /) –

+0

i tはうまく働いた....私もセットアップvirtutal環境CVを持っています。しかし、問題は依然として残っていますが、make -j4を実行すると同じエラーが発生します。 –

関連する問題