clancylian / retinaface

Reimplement RetinaFace use C++ and TensorRT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make Problem

YuhaoYeSteve opened this issue · comments

$ mkdir build
$ cd build/
$ cmake ../
cmake的输出:
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.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
-- Project: retinaFaceReImp
-- Project Directory: /data/yyh/RetinaFace_c++
-- Build Option: -std=c++11 -O2 -fomit-frame-pointer -g -Wall
-- Found OpenCV: /usr/local (found version "4.1.2")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- 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-10.1 (found version "10.1")
-- Build Option: -DUSE_TENSORRT
-- Build Option: -DUSE_NPP
-- Configuring done
-- Generating done
-- Build files have been written to: /data/yyh/RetinaFace_c++/build

这三步是成功了,但是make的时候出错了,错误如下:

[ 16%] Building NVCC (Device) object CMakeFiles/retinaface.dir/retinaface/retinaface_generated_resizeconvertion.cu.o
/data/yyh/RetinaFace_c++/./retinaface/resizeconvertion.cu(39): error: identifier "printf" is undefined

/data/yyh/RetinaFace_c++/./retinaface/resizeconvertion.cu(97): error: identifier "printf" is undefined

/data/yyh/RetinaFace_c++/./retinaface/resizeconvertion.cu(133): error: identifier "printf" is undefined

3 errors detected in the compilation of "/tmp/tmpxft_0002ba00_00000000-4_resizeconvertion.cpp4.ii".
CMake Error at retinaface_generated_resizeconvertion.cu.o.cmake:266 (message):
Error generating file
/data/yyh/RetinaFace_c++/build/CMakeFiles/retinaface.dir/retinaface/./retinaface_generated_resizeconvertion.cu.o

CMakeFiles/retinaface.dir/build.make:63: recipe for target 'CMakeFiles/retinaface.dir/retinaface/retinaface_generated_resizeconvertion.cu.o' failed
make[2]: *** [CMakeFiles/retinaface.dir/retinaface/retinaface_generated_resizeconvertion.cu.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/retinaface.dir/all' failed
make[1]: *** [CMakeFiles/retinaface.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2