golunovas / mtcnn-cpp

C++ implementation of MTCNN
29 stars 20 forks source link

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

Open rajhlinux opened 2 years ago

rajhlinux commented 2 years ago
$ 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.

golunovas commented 2 years ago

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