Skip to content

Trouble with building the files in the docker container. #16

@Rubyx3

Description

@Rubyx3

I had follow the steps for building and executing the docker container through CLI. The trouble comes when I tried to cmake the EasyOCR-cpp directory, this is the output:

-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.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
-- Found CUDA: /usr/local/cuda (found version "11.8")
-- The CUDA compiler identification is NVIDIA 11.8.89
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Found CUDAToolkit: /usr/local/cuda/include (found version "11.8.89")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Caffe2: CUDA detected: 11.8
-- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc
-- Caffe2: CUDA toolkit directory: /usr/local/cuda
-- Caffe2: Header version is: 11.8
CMake Warning at /workspaces/ocr-c++/thirdparty/libtorch/share/cmake/Caffe2/public/cuda.cmake:185 (message):
  Failed to compute shorthash for libnvrtc.so
Call Stack (most recent call first):
  /workspaces/ocr-c++/thirdparty/libtorch/share/cmake/Caffe2/Caffe2Config.cmake:87 (include)
  /workspaces/ocr-c++/thirdparty/libtorch/share/cmake/Torch/TorchConfig.cmake:68 (find_package)
  CMakeLists.txt:12 (find_package)


-- USE_CUDNN is set to 0. Compiling without cuDNN support
-- USE_CUSPARSELT is set to 0. Compiling without cuSPARSELt support
CMake Error in /workspaces/ocr-c++/EasyOCR-cpp/build/CMakeFiles/CMakeTmp/CMakeLists.txt:
  Target "cmTC_dc22f" requires the language dialect "CUDA20" (with compiler
  extensions), but CMake does not know the compile flags to use to enable it.


CMake Error at /workspaces/ocr-c++/thirdparty/libtorch/share/cmake/Caffe2/Modules_CUDA_fix/upstream/FindCUDA/select_compute_arch.cmake:106 (try_run):
  Failed to generate test project build system.
Call Stack (most recent call first):
  /workspaces/ocr-c++/thirdparty/libtorch/share/cmake/Caffe2/Modules_CUDA_fix/upstream/FindCUDA/select_compute_arch.cmake:166 (CUDA_DETECT_INSTALLED_GPUS)
  /workspaces/ocr-c++/thirdparty/libtorch/share/cmake/Caffe2/public/utils.cmake:401 (cuda_select_nvcc_arch_flags)
  /workspaces/ocr-c++/thirdparty/libtorch/share/cmake/Caffe2/public/cuda.cmake:343 (torch_cuda_get_nvcc_gencode_flag)
  /workspaces/ocr-c++/thirdparty/libtorch/share/cmake/Caffe2/Caffe2Config.cmake:87 (include)
  /workspaces/ocr-c++/thirdparty/libtorch/share/cmake/Torch/TorchConfig.cmake:68 (find_package)
  CMakeLists.txt:12 (find_package)


-- Configuring incomplete, errors occurred!
See also "/workspaces/ocr-c++/EasyOCR-cpp/build/CMakeFiles/CMakeOutput.log".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions