Skip to content

building Issue #14

@RichardBaoRepo

Description

@RichardBaoRepo

I run into problems while exexuting ./install.sh
the default installed protobuf version seems to be 25.3 and the lib version was 3.6.1,
so i tried to manually build protobuf 3.6.x from source, then everything look fine
-- GCC detected, adding compile flags -- GCC detected, adding compile flags -- Building with CUDA. -- CUDA detected: 11.8 -- Added CUDA NVCC flags for: sm_89 -- cuDNN not found -- Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so) -- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so) -- Caffe will be downloaded from source now. NOTE: This process might take several minutes depending on your internet connection. -- Caffe has already been downloaded. HEAD is now at 1807aada Added Ampere arch's (CUDA11) M CMakeLists.txt -- Caffe will be built from source now. -- Download the models. -- Downloading BODY_25 model... -- Model already exists. -- Not downloading body (COCO) model -- Not downloading body (MPI) model -- Downloading face model... -- Model already exists. -- Downloading hand model... -- Model already exists. -- Models Downloaded. -- Configuring done -- Generating done -- Build files have been written to: /home/nio/projects/GaussianHaircut/ext/openpose/build

then i tried
make -j8, i kept getting this error

error: #error "C++ versions less than C++14 are not supported." 79 | #error "C++ versions less than C++14 are not supported." | ^~~~~

I tried add the following lines in root CMakeLists.txt,

Set C++ standard for host code
set(CMAKE_CXX_STANDARD 14)

Set C++14 for CUDA code
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -std=c++14")

still got no luck making it work, any help

i am working on UBuntu 20.04 with Nvidia 4090

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions