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

GCC Version for Compiling on Ludo #21

Open
tparkerd opened this issue Sep 1, 2020 · 0 comments
Open

GCC Version for Compiling on Ludo #21

tparkerd opened this issue Sep 1, 2020 · 0 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@tparkerd
Copy link
Member

tparkerd commented Sep 1, 2020

The suggested means to compile on Ludo does not work. The version of GCC doesn't seem to like the argument parser.

Error message

root@ludo:/opt/xrcap# g++ -o xrcap/lib/rootCrownSegmentation xrcap/rootCrownSegmentation.cpp -lopencv_highgui -lopencv_imgcodecs -lopencv_imgproc -lopencv_core -lboost_system -lboost_filesystem -lboost_program_options
xrcap/rootCrownSegmentation.cpp: In function ‘int main(int, char**)’:
xrcap/rootCrownSegmentation.cpp:443:8: error: ‘args’ does not name a type
   auto args = po::command_line_parser(argc, argv)
        ^
xrcap/rootCrownSegmentation.cpp:449:13: error: ‘args’ was not declared in this scope
   po::store(args, vm);
             ^
xrcap/rootCrownSegmentation.cpp:491:63: error: ‘to_string’ was not declared in this scope
   cout << "Soil removal flag\t" << to_string(soil_removal_flag) << endl;
                                                               ^

The following command works instead, please update the troubleshooting documentation and consider adding a note in the installation guide for Ludo specifically (Ubuntu 16.04 LTS)

g++-7 -o xrcap/lib/rootCrownSegmentation xrcap/rootCrownSegmentation.cpp -lopencv_highgui -lopencv_imgcodecs -lopencv_imgproc -lopencv_core -lboost_system -lboost_filesystem -lboost_program_options
@tparkerd tparkerd added bug Something isn't working documentation Improvements or additions to documentation labels Sep 1, 2020
@tparkerd tparkerd self-assigned this Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant