DoubangoTelecom / ultimateMRZ-SDK

Machine-readable zone/travel document (MRZ / MRTD) detector and recognizer using deep learning
https://www.doubango.org/webapps/mrz/
Other
174 stars 49 forks source link

CMake build Failure #80

Closed pikasTech closed 2 years ago

pikasTech commented 2 years ago
ubuntu@DESKTOP-22HUFS6:~/ultimateMRZ-SDK$ mkdir build
ubuntu@DESKTOP-22HUFS6:~/ultimateMRZ-SDK$ cd build
ubuntu@DESKTOP-22HUFS6:~/ultimateMRZ-SDK/build$ cmake ..
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - 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/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at samples/c++/benchmark/CMakeLists.txt:6 (add_subdirectory):
  add_subdirectory given source
  "/home/ubuntu/ultimateMRZ-SDK/samples/c++/benchmark/../../../../SDK_dev/lib"
  which is not an existing directory.

CMake Error at samples/c++/parser/CMakeLists.txt:6 (add_subdirectory):
  add_subdirectory given source
  "/home/ubuntu/ultimateMRZ-SDK/samples/c++/parser/../../../../SDK_dev/lib"
  which is not an existing directory.

CMake Error at samples/c++/recognizer/CMakeLists.txt:6 (add_subdirectory):
  add_subdirectory given source
  "/home/ubuntu/ultimateMRZ-SDK/samples/c++/recognizer/../../../../SDK_dev/lib"
  which is not an existing directory.

CMake Error at samples/c++/runtimeKey/CMakeLists.txt:6 (add_subdirectory):
  add_subdirectory given source
  "/home/ubuntu/ultimateMRZ-SDK/samples/c++/runtimeKey/../../../../SDK_dev/lib"
  which is not an existing directory.

CMake Error at samples/c++/validation/CMakeLists.txt:6 (add_subdirectory):
  add_subdirectory given source
  "/home/ubuntu/ultimateMRZ-SDK/samples/c++/validation/../../../../SDK_dev/lib"
  which is not an existing directory.

-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/ultimateMRZ-SDK/build/CMakeFiles/CMakeOutput.log". 

How can I find SDK_dev/lib? Thanks.

DoubangoTelecom commented 2 years ago

Don't use CMake, follow the guide. Also, no need to rebuild anything, all binaries are already provided.