machinelearninguru.com/computer_vision/installation/opencv/opencv.html
i followed the above link to configure the opencv for ubuntu .....after generating i am compiling(make -j8) it shows the error like as follows
[ 28%] Linking CXX executable ../../bin/opencv_test_video
/usr/bin/ld: warning: libpcre.so.1, needed by //home/usuf/anaconda3/envs/py36/lib/libglib-2.0.so.0, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libswresample.so.2, needed by //home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libiconv.so.2, needed by //home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libx264.so.138, needed by //home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57, not found (try using -rpath or -rpath-link)
//home/usuf/anaconda3/envs/py36/lib/libglib-2.0.so.0: undefined reference to pcre_fullinfo'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to
swr_init@LIBSWRESAMPLE_2'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to x264_param_default'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to
x264_param_apply_profile'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to libiconv'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to
x264_encoder_headers'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to swr_close@LIBSWRESAMPLE_2'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to
x264_encoder_encode'
//home/usuf/anaconda3/envs/py36/lib/libglib-2.0.so.0: undefined reference to pcre_get_stringtable_entries'
//home/usuf/anaconda3/envs/py36/lib/libglib-2.0.so.0: undefined reference to
pcre_get_stringnumber'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to x264_encoder_open_138'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to
swr_is_initialized@LIBSWRESAMPLE_2'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to x264_encoder_reconfig'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to
x264_param_apply_fastfirstpass'
//home/usuf/anaconda3/envs/py36/lib/libglib-2.0.so.0: undefined reference to pcre_config'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to
libiconv_close'
//home/usuf/anaconda3/envs/py36/lib/libglib-2.0.so.0: undefined reference to pcre_compile2'
//home/usuf/anaconda3/envs/py36/lib/libglib-2.0.so.0: undefined reference to
pcre_free'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to swr_convert@LIBSWRESAMPLE_2'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to
x264_encoder_delayed_frames'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to x264_param_parse'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to
x264_bit_depth'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to x264_levels'
//home/usuf/anaconda3/envs/py36/lib/libglib-2.0.so.0: undefined reference to
pcre_exec'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to libiconv_open'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to
x264_picture_init'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to x264_encoder_close'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to
swr_free@LIBSWRESAMPLE_2'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to swr_alloc@LIBSWRESAMPLE_2'
//home/usuf/anaconda3/envs/py36/lib/libglib-2.0.so.0: undefined reference to
pcre_study'
//home/usuf/anaconda3/envs/py36/lib/libavcodec.so.57: undefined reference to x264_param_default_preset'
//home/usuf/anaconda3/envs/py36/lib/libglib-2.0.so.0: undefined reference to
pcre_dfa_exec'
collect2: error: ld returned 1 exit status
modules/video/CMakeFiles/opencv_test_video.dir/build.make:388: recipe for target 'bin/opencv_test_video' failed
make[2]: * [bin/opencv_test_video] Error 1
CMakeFiles/Makefile2:4761: recipe for target 'modules/video/CMakeFiles/opencv_test_video.dir/all' failed
make[1]: [modules/video/CMakeFiles/opencv_test_video.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: ** [all] Error 2