open-mmlab / denseflow

Extracting optical flow and frames

Home Page:https://open-mmlab.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined reference to `GOMP_loop_dynamic_start'

rogercmq opened this issue · comments

I am wondering whether my opencv was installed successfully, is there any script to check it?

Anyway, i caught this following error while making denseflow:

denseflow will be installed in /home/caomengqi/app
Dependency: boost, opencv
downloads/denseflow.tar.gz exist
-- OpenCV library status:
--     config: /home/caomengqi/app/lib/cmake/opencv4
--     version: 4.3.0
--     libraries: opencv_calib3d;opencv_core;opencv_features2d;opencv_flann;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_stitching;opencv_video;opencv_videoio;opencv_cudaarithm;opencv_cudabgsegm;opencv_cudafeatures2d;opencv_cudafilters;opencv_cudaimgproc;opencv_cudalegacy;opencv_cudaobjdetect;opencv_cudaoptflow;opencv_cudastereo;opencv_cudawarping;opencv_cudev;opencv_fuzzy;opencv_hfs;opencv_img_hash;opencv_intensity_transform;opencv_line_descriptor;opencv_optflow;opencv_phase_unwrapping;opencv_plot;opencv_quality;opencv_rapid;opencv_shape;opencv_structured_light;opencv_superres;opencv_surface_matching;opencv_videostab;opencv_xfeatures2d;opencv_ximgproc;opencv_xobjdetect;opencv_xphoto
--     include path: /home/caomengqi/app/include/opencv4
-- Boost  found.
-- Found Boost components:
   date_time;filesystem;iostreams
-- Boost library status:
--     version: 1.76.0
--     libraries: Boost::date_time;Boost::filesystem;Boost::iostreams
--     include path: /home/caomengqi/app/include
-- Configuring done
-- Generating done
-- Build files have been written to: /home/caomengqi/app/src/denseflow/build
[ 66%] Built target zzdenseflow
[ 83%] Linking CXX executable denseflow
/home/caomengqi/app/lib/libopencv_core.a(parallel.cpp.o): In function `cv::parallel_for_impl(cv::Range const&, cv::ParallelLoopBody const&, double) [clone ._omp_fn.0]':
parallel.cpp:(.text._ZN2cvL17parallel_for_implERKNS_5RangeERKNS_16ParallelLoopBodyEd._omp_fn.0+0x56): undefined reference to `GOMP_loop_dynamic_start'
parallel.cpp:(.text._ZN2cvL17parallel_for_implERKNS_5RangeERKNS_16ParallelLoopBodyEd._omp_fn.0+0x1d3): undefined reference to `GOMP_loop_dynamic_next'
parallel.cpp:(.text._ZN2cvL17parallel_for_implERKNS_5RangeERKNS_16ParallelLoopBodyEd._omp_fn.0+0x1e0): undefined reference to `GOMP_loop_end_nowait'
/home/caomengqi/app/lib/libopencv_core.a(parallel.cpp.o): In function `cv::parallel_for_(cv::Range const&, cv::ParallelLoopBody const&, double)':
parallel.cpp:(.text._ZN2cv13parallel_for_ERKNS_5RangeERKNS_16ParallelLoopBodyEd+0x271): undefined reference to `GOMP_parallel'
/home/caomengqi/app/lib/libopencv_core.a(parallel.cpp.o): In function `cv::getThreadNum()':
parallel.cpp:(.text._ZN2cv12getThreadNumEv+0x1): undefined reference to `omp_get_thread_num'
/home/caomengqi/app/lib/libopencv_core.a(parallel.cpp.o): In function `cvGetThreadNum':
parallel.cpp:(.text.cvGetThreadNum+0x1): undefined reference to `omp_get_thread_num'
/home/caomengqi/app/lib/libopencv_core.a(parallel.cpp.o): In function `_GLOBAL__sub_I_parallel.cpp':
parallel.cpp:(.text.startup._GLOBAL__sub_I_parallel.cpp+0x28): undefined reference to `omp_get_max_threads'
parallel.cpp:(.text.startup._GLOBAL__sub_I_parallel.cpp+0x43): undefined reference to `omp_set_dynamic'
collect2: error: ld returned 1 exit status
CMakeFiles/denseflow.dir/build.make:145: recipe for target 'denseflow' failed
make[2]: *** [denseflow] Error 1
CMakeFiles/Makefile2:109: recipe for target 'CMakeFiles/denseflow.dir/all' failed
make[1]: *** [CMakeFiles/denseflow.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
denseflow installed on /home/caomengqi/app

Did you solve this problem? I also encountered this problem, I stopped at 83% as you did, and also reported 'undefined reference' error. I'm also not sure if my opencv is compiled completely and installed successfully.