Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Problem #9

Closed
YuhaoYeSteve opened this issue Oct 14, 2019 · 0 comments
Closed

Make Problem #9

YuhaoYeSteve opened this issue Oct 14, 2019 · 0 comments

Comments

@YuhaoYeSteve
Copy link

$ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant