• verigle

    编译时遇到了如下错误

    ./build_all.sh
    -- The C compiler identification is GNU 7.4.0
    -- The CXX compiler identification is GNU 7.4.0
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Looking for pthread.h
    -- Looking for pthread.h - found
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - found
    -- Found Threads: TRUE
    -- Found CUDA: /usr/local/cuda (found version "10.1")
    -- Found Protobuf: /usr/local/lib/libprotobuf.so;pthread (found version "3.8.0")
    -- Found OpenCV: /opt/intel/openvino_2019.3.376/opencv (found version "4.1.2")
    -- Found Boost: /usr/include (found version "1.65.1") found components: system python regex filesystem
    CMake Error at CMakeLists.txt:23 (find_package):
    By not providing "Findgflags.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "gflags", but
    CMake did not find one.

    Could not find a package configuration file provided by "gflags" with any
    of the following names:

    gflagsConfig.cmake
    gflags-config.cmake
    

    Add the installation prefix of "gflags" to CMAKE_PREFIX_PATH or set
    "gflags_DIR" to a directory containing one of the above files. If "gflags"
    provides a separate development package or SDK, be sure it has been
    installed.

    -- Configuring incomplete, errors occurred!
    See also "/home/verigle/Projects/GitLab/tensorrt_retinaface/build/CMakeFiles/CMakeOutput.log".
    See also "/home/verigle/Projects/GitLab/tensorrt_retinaface/build/CMakeFiles/CMakeError.log".
    make: *** 没有指明目标并且找不到 makefile。 停止。

    CmakeError.log 文件如下:

    Run Build Command(s):/usr/bin/make cmTC_e321f/fast && /usr/bin/make -f CMakeFiles/cmTC_e321f.dir/build.make CMakeFiles/cmTC_e321f.dir/build
    make[1]: 进入目录“/home/verigle/Projects/GitLab/tensorrt_retinaface/build/CMakeFiles/CMakeTmp”
    Building C object CMakeFiles/cmTC_e321f.dir/CheckFunctionExists.c.o
    /usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create -fPIE -o CMakeFiles/cmTC_e321f.dir/CheckFunctionExists.c.o -c /home/verigle/softwares/cmake-3.16.0-Linux-x86_64/share/cmake-3.16/Modules/CheckFunctionExists.c
    Linking C executable cmTC_e321f
    /home/verigle/softwares/cmake-3.16.0-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e321f.dir/link.txt --verbose=1
    /usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_e321f.dir/CheckFunctionExists.c.o -o cmTC_e321f -lpthreads
    /usr/bin/ld: 找不到 -lpthreads
    collect2: error: ld returned 1 exit status
    CMakeFiles/cmTC_e321f.dir/build.make:86: recipe for target 'cmTC_e321f' failed
    make[1]: *** [cmTC_e321f] Error 1
    make[1]: 离开目录“/home/verigle/Projects/GitLab/tensorrt_retinaface/build/CMakeFiles/CMakeTmp”
    Makefile:121: recipe for target 'cmTC_e321f/fast' failed
    make: *** [cmTC_e321f/fast] Error 2

    发布在 社区求助区(SOS!!) 阅读更多
  • verigle

    编译 onnx-tensorrt 时出现未定义的引用错误

    发布在 原创分享专区 阅读更多

与 ManaAI社区 的连接断开,我们正在尝试重连,请耐心等待