mtcnn-cpp icon indicating copy to clipboard operation
mtcnn-cpp copied to clipboard

error: /home/user/caffe/build/lib/libcaffe.so.1.0.0: file not recognized: file format not recognized

Open rajhlinux opened this issue 3 years ago • 1 comments

$ cmake ..

-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/bin/gcc11 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/g++11 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Caffe: using OpenCV config from /usr/local/lib/cmake/opencv4
CMake Warning (dev) at /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (OpenCV)
$ make -j 8

[ 33%] Building CXX object CMakeFiles/mtcnn-cpp.dir/face_detector.cpp.o
[ 66%] Building CXX object CMakeFiles/mtcnn-cpp.dir/main.cpp.o
[100%] Linking CXX executable mtcnn-cpp
/home/user/caffe/build/lib/libcaffe.so.1.0.0: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
--- mtcnn-cpp ---
*** [mtcnn-cpp] Error code 1

Thanks.

rajhlinux avatar Oct 17 '22 07:10 rajhlinux

I assume there is something wrong with your caffe library. please check if caffe was built and installed correctly.

golunovas avatar Oct 19 '22 08:10 golunovas