Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sunyongkun opened this issue Jul 3, 2019 · 2 comments
Open

Comments

@sunyongkun
Copy link

sunyongkun commented Jul 3, 2019

你好,我在编译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一定需要安装吗
安装包按照说明正常安装了

@meiqua
Copy link
Owner

meiqua commented Jul 3, 2019

make_unique是c++14才有的。不过这里其实也没啥必要,换成new也行。跟cuda没关系

@sunyongkun
Copy link
Author

谢谢了!!!!
auto pr = std::make_unique<poseRefine>();
改为
auto pr = std::unique_ptr<poseRefine>(new poseRefine());
正常运行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants