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

Build Issues #3

Open
kevindean87 opened this issue Sep 27, 2018 · 4 comments
Open

Build Issues #3

kevindean87 opened this issue Sep 27, 2018 · 4 comments

Comments

@kevindean87
Copy link

These are the errors I receive while trying to build (have you run into these before?):

Scanning dependencies of target pcl_SVM_train_classify
[ 50%] Building CXX object CMakeFiles/pcl_SVM_train_classify.dir/pcl_SVM_train_classify.cpp.o
/home/kdean/projects/src/SVM_pcl_demo/pcl_SVM_train_classify.cpp: In function ‘int main(int, char**)’:
/home/kdean/projects/src/SVM_pcl_demo/pcl_SVM_train_classify.cpp:117:45: error: ‘class pcl::SVMClassify’ has no member named ‘getParameters’
my_svm_parameters = my_svm_classifier.getParameters();
^
/home/kdean/projects/src/SVM_pcl_demo/pcl_SVM_train_classify.cpp:130:30: error: ‘class pcl::SVMClassify’ has no member named ‘hasLabelledTrainingSet’
if ( my_svm_classifier.hasLabelledTrainingSet())
^
/home/kdean/projects/src/SVM_pcl_demo/pcl_SVM_train_classify.cpp:176:7: error: ‘SVMtestReport’ is not a member of ‘pcl’
pcl::SVMtestReport svm_test_report = my_svm_classifier.getClassificationTestReport();
^
/home/kdean/projects/src/SVM_pcl_demo/pcl_SVM_train_classify.cpp:176:26: error: expected ‘;’ before ‘svm_test_report’
pcl::SVMtestReport svm_test_report = my_svm_classifier.getClassificationTestReport();
^
/home/kdean/projects/src/SVM_pcl_demo/pcl_SVM_train_classify.cpp:179:36: error: ‘svm_test_report’ was not declared in this scope
svm_test_report.accuracy,
^
/home/kdean/projects/src/SVM_pcl_demo/pcl_SVM_train_classify.cpp:211:23: error: ‘class pcl::SVMTrain’ has no member named ‘adaptProbToInput’
my_svm_trainer.adaptProbToInput();
^
/home/kdean/projects/src/SVM_pcl_demo/pcl_SVM_train_classify.cpp:267:67: error: could not convert ‘my_svm_trainer.pcl::SVMTrain::.pcl::SVM::saveClassifierModel(((const char*)"./model_out.dat"))’ from ‘void’ to ‘bool’
if ( my_svm_trainer.saveClassifierModel("./model_out.dat") ) {
^
/home/kdean/projects/src/SVM_pcl_demo/pcl_SVM_train_classify.cpp:352:31: error: ‘class pcl::SVMClassify’ has no member named ‘hasLabelledTrainingSet’
if ( my_svm_classifier.hasLabelledTrainingSet())
^
/home/kdean/projects/src/SVM_pcl_demo/pcl_SVM_train_classify.cpp:388:8: error: ‘SVMtestReport’ is not a member of ‘pcl’
pcl::SVMtestReport svm_test_report = my_svm_classifier.getClassificationTestReport();
^
/home/kdean/projects/src/SVM_pcl_demo/pcl_SVM_train_classify.cpp:388:27: error: expected ‘;’ before ‘svm_test_report’
pcl::SVMtestReport svm_test_report = my_svm_classifier.getClassificationTestReport();
^
/home/kdean/projects/src/SVM_pcl_demo/pcl_SVM_train_classify.cpp:391:36: error: ‘svm_test_report’ was not declared in this scope
svm_test_report.accuracy,
^
make[2]: *** [CMakeFiles/pcl_SVM_train_classify.dir/pcl_SVM_train_classify.cpp.o] Error 1
make[1]: *** [CMakeFiles/pcl_SVM_train_classify.dir/all] Error 2

@bellonemauro
Copy link
Owner

Hi,
apparently in the official version on PCL they have changed this function, so my demo will not compile with the official PCL.

If you want to try this demo you can try to build my -modified- version on the PCL available here https://github.com/bellonemauro/pcl

Actually, what I have modified is only the svm_wrapper.h/cpp and svm.h/cpp so if you only take those file and merge into your pcl version it should work.
If you have the pcl installed (not build on your own) than you cannot do that. You need to build it.

I hope that will work.
M.

@kevindean87
Copy link
Author

Ah, well that makes sense. I appreciate the help and the timely response. I will probably update the files like you said, because I have some changes (to hdl_grabber, point types, etc.) that I need to keep. Thanks again for the help! Appreciate it.

@kevindean87
Copy link
Author

Thank you for the help. It DID end up working.

@bellonemauro
Copy link
Owner

good to know that the demo is useful!
M.

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