TadasBaltrusaitis / OpenFace

OpenFace – a state-of-the art tool intended for facial landmark detection, head pose estimation, facial action unit recognition, and eye-gaze estimation.
Other
6.86k stars 1.84k forks source link

recipe for target 'bin/FaceLandmarkImg' failed #981

Open hch1017 opened 3 years ago

hch1017 commented 3 years ago

[ 84%] Linking CXX executable ../../bin/FaceLandmarkImg /usr/bin/ld: cannot find -lcusolver-NOTFOUND collect2: error: ld returned 1 exit status exe/FaceLandmarkImg/CMakeFiles/FaceLandmarkImg.dir/build.make:126: recipe for target 'bin/FaceLandmarkImg' failed make[2]: [bin/FaceLandmarkImg] Error 1 CMakeFiles/Makefile2:330: recipe for target 'exe/FaceLandmarkImg/CMakeFiles/FaceLandmarkImg.dir/all' failed make[1]: [exe/FaceLandmarkImg/CMakeFiles/FaceLandmarkImg.dir/all] Error 2 Makefile:135: recipe for target 'all' failed make: *** [all] Error 2

deluxerootit commented 2 years ago

@hch211 Did you manage to solve the error?

yaleimeng commented 2 years ago

@deluxerootit Try using a higher version of cmake may help. I met a similar problem with cmake 3.10 , too . When I use cmake 3.22 , I succeed.

danyow-cheung commented 3 months ago

damm, My cmake version is 3.27.4 but still failed

danyow-cheung commented 3 months ago

update : the 3.27.4 is workable , just making sure the command is correct

cmake -D CMAKE_CXX_COMPILER=/usr/bin/g++  -D CMAKE_C_COMPILER=/usr/bin/gcc  -D CMAKE_BUILD_TYPE=RELEASE ..