Skip to content

CMakeFiles/cxxlinemod_pybind_executable.dir/cxxlinemod.cpp.o] error #1

@sunyongkun

Description

@sunyongkun

你好,我在编译cxxlinemod的时候,没有报error,请问这个可能是什么造成的呢

[ 12%] Building CXX object CMakeFiles/cxxlinemod_pybind_executable.dir/cxxlinemod.cpp.o
/home/syk/code/siemens/pcl-st/6DPose-master/cxxlinemod/cxxlinemod.cpp: In function ‘int main()’:
/home/syk/code/siemens/pcl-st/6DPose-master/cxxlinemod/cxxlinemod.cpp:61:15: error: ‘make_unique’ is not a member of ‘std’
     auto pr = std::make_unique<poseRefine>();
               ^
/home/syk/code/siemens/pcl-st/6DPose-master/cxxlinemod/cxxlinemod.cpp:61:42: error: expected primary-expression before ‘>’ token
     auto pr = std::make_unique<poseRefine>();
                                          ^
/home/syk/code/siemens/pcl-st/6DPose-master/cxxlinemod/cxxlinemod.cpp:61:44: error: expected primary-expression before ‘)’ token
     auto pr = std::make_unique<poseRefine>();
                                            ^
/home/syk/code/siemens/pcl-st/6DPose-master/cxxlinemod/cxxlinemod.cpp: In member function ‘void poseRefine::process(cv::Mat&, cv::Mat&, cv::Mat&, cv::Mat&, cv::Mat&, cv::Mat&, int, int)’:
/home/syk/code/siemens/pcl-st/6DPose-master/cxxlinemod/cxxlinemod.cpp:160:11: warning: unused variable ‘px_ratio_missing’ [-Wunused-variable]
     float px_ratio_missing = matToVec(sceneCloud_cropped, modelCloud_cropped, pts_real_ref_temp, pts_real_model_temp);
           ^
make[2]: *** [CMakeFiles/cxxlinemod_pybind_executable.dir/cxxlinemod.cpp.o] 错误 1
make[1]: *** [CMakeFiles/cxxlinemod_pybind_executable.dir/all] 错误 2
make: *** [all] 错误 2

ubuntu14.04
只修改了CMAKE_PREFIX_PATH,我没有安装cuda,cuda一定需要安装吗
安装包按照说明正常安装了

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