You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have followed the instructions to compile and build the project to obtain .so files.
But unfortunately I couldn't succeed linking the shared library libOpenFaceWrapper.so
I have already installed OpenFace and it is verified as well. Now I continued this step by downloading the project and running make -D OPENFACE_DIR='Open-Face-Path' -D CMAKE_CXX_COMPILER=g++-8 -D CMAKE_C_COMPILER=gcc-8 -D CMAKE_BUILD_TYPE=RELEASE .. -D COMPILE_FLAGS=-fPIC
-- Found OpenBLAS libraries: /usr/lib/x86_64-linux-gnu/libopenblas.so
-- Found OpenBLAS include: /usr/include/x86_64-linux-gnu
OpenBLAS information:
OpenBLAS_LIBRARIES: /usr/lib/x86_64-linux-gnu/libopenblas.so
OpenBLAS_INCLUDE: /usr/include/x86_64-linux-gnu
-- Found OpenCV: /usr/local (found suitable version "4.1.0", minimum required is "4.1") found components: core imgproc calib3d highgui objdetect
OpenCV information:
OpenCV_INCLUDE_DIRS: /usr/local/include/opencv4
OpenCV_LIBRARIES: opencv_core;opencv_imgproc;opencv_calib3d;opencv_highgui;opencv_objdetect
OpenCV_LIBRARY_DIRS:
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR filesystem system) (Required is at least version "1.5.9")
Boost not found in the system.
-- Found OpenBLAS libraries: /usr/lib/x86_64-linux-gnu/libopenblas.so
-- Found OpenBLAS include: /usr/include/x86_64-linux-gnu
OpenBLAS information:
OpenBLAS_LIBRARIES: /usr/lib/x86_64-linux-gnu/libopenblas.so
OpenBLAS_INCLUDE: /usr/include/x86_64-linux-gnu
-- Found OpenCV: /usr/local (found suitable version "4.1.0", minimum required is "4.0") found components: core imgproc calib3d highgui objdetect
OpenCV information:
OpenCV_INCLUDE_DIRS: /usr/local/include/opencv4
OpenCV_LIBRARIES: opencv_core;opencv_imgproc;opencv_calib3d;opencv_highgui;opencv_objdetect;opencv_core;opencv_imgproc;opencv_calib3d;opencv_highgui;opencv_objdetect
OpenCV_LIBRARY_DIRS:
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR filesystem system) (Required is at least version "1.5.9")
Boost not found in the system.
dlib information:
dlib version: 19.13.0
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
COMPILE_FLAGS
-- Build files have been written to: /build
But in the next step cmake --build . --target OpenFaceWrapper -j 4
Scanning dependencies of target LandmarkDetector
Scanning dependencies of target FaceAnalyser
[ 11%] Building CXX object build/lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/Face_utils.cpp.o
[ 11%] Building CXX object build/lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/FaceAnalyserParameters.cpp.o
[ 11%] Building CXX object build/lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/FaceAnalyser.cpp.o
[ 14%] Building CXX object build/lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/CCNF_patch_expert.cpp.o
[ 18%] Building CXX object build/lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/stdafx_fa.cpp.o
[ 22%] Building CXX object build/lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/CEN_patch_expert.cpp.o
[ 25%] Building CXX object build/lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/CNN_utils.cpp.o
[ 29%] Building CXX object build/lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/SVM_dynamic_lin.cpp.o
[ 33%] Building CXX object build/lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/SVM_static_lin.cpp.o
[ 37%] Building CXX object build/lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/FaceDetectorMTCNN.cpp.o
[ 40%] Building CXX object build/lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/SVR_dynamic_lin_regressors.cpp.o
[ 44%] Building CXX object build/lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectionValidator.cpp.o
[ 48%] Building CXX object build/lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/SVR_static_lin_regressors.cpp.o
[ 51%] Building CXX object build/lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorFunc.cpp.o
[ 55%] Linking CXX static library libFaceAnalyser.a
[ 59%] Building CXX object build/lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorModel.cpp.o
[ 59%] Built target FaceAnalyser
[ 62%] Building CXX object build/lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorUtils.cpp.o
[ 66%] Building CXX object build/lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorParameters.cpp.o
[ 70%] Building CXX object build/lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/Patch_experts.cpp.o
[ 74%] Building CXX object build/lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/PAW.cpp.o
[ 77%] Building CXX object build/lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/PDM.cpp.o
[ 81%] Building CXX object build/lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/SVR_patch_expert.cpp.o
[ 85%] Building CXX object build/lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/stdafx.cpp.o
[ 88%] Linking CXX static library libLandmarkDetector.a
[ 88%] Built target LandmarkDetector
Scanning dependencies of target OpenFaceWrapper
[ 96%] Building CXX object CMakeFiles/OpenFaceWrapper.dir/OpenFaceWrapper.cpp.o
[ 96%] Building CXX object CMakeFiles/OpenFaceWrapper.dir/OpenFaceDLL.cpp.o
[100%] Linking CXX shared library libOpenFaceWrapper.so
/usr/bin/ld: /usr/local/lib/libdlib.a(base64_kernel_1.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN4dlib6base64E' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/OpenFaceWrapper.dir/build.make:129: libOpenFaceWrapper.so] Error 1
make[2]: *** [CMakeFiles/Makefile2:262: CMakeFiles/OpenFaceWrapper.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:269: CMakeFiles/OpenFaceWrapper.dir/rule] Error 2
make: *** [Makefile:164: OpenFaceWrapper] Error 2
I am not sure whats the reason. Can someone help me fix this ?
The text was updated successfully, but these errors were encountered:
I have followed the instructions to compile and build the project to obtain .so files.
But unfortunately I couldn't succeed linking the shared library libOpenFaceWrapper.so
I have already installed OpenFace and it is verified as well. Now I continued this step by downloading the project and running
make -D OPENFACE_DIR='Open-Face-Path' -D CMAKE_CXX_COMPILER=g++-8 -D CMAKE_C_COMPILER=gcc-8 -D CMAKE_BUILD_TYPE=RELEASE .. -D COMPILE_FLAGS=-fPIC
But in the next step
cmake --build . --target OpenFaceWrapper -j 4
I am not sure whats the reason. Can someone help me fix this ?
The text was updated successfully, but these errors were encountered: