Giter Club home page Giter Club logo

Comments (9)

varunagrawal avatar varunagrawal commented on July 17, 2024

@etamarlu I made some updates to the project template file. Can you please clone the latest main branch and try again?

from gtsam.

etamarlu avatar etamarlu commented on July 17, 2024

Thanks, I tried it now, std namespace is not recognized, it fails with the following error:

In file included from /home/et/gtsam-project-matlab-main/example/PrintExamples.cpp:18: /home/et/gtsam-project-matlab-main/example/PrintExamples.h:57:6: error: variable or field ‘consumePrinter’ declared void 57 | void consumePrinter(std::shared_ptr<PrintExample>& pe) {} | ^~~~~~ /home/et/gtsam-project-matlab-main/example/PrintExamples.h:57:26: error: ‘shared_ptr’ is not a member of ‘std’ 57 | void consumePrinter(std::shared_ptr<PrintExample>& pe) {}

also, it doesn't appear in the readme (and I still haven't confirmed), but I changed the "WRAP_TOOLBOX_INSTALL_PATH" to control where the matlab 'toolbox' is generated, can you please confirm it is ok?

from gtsam.

varunagrawal avatar varunagrawal commented on July 17, 2024

@etamarlu updated to handle the error message. It's a C++11 standards issue.

Yes, WRAP_TOOLBOX_INSTALL_PATH is the correct variable to set.

from gtsam.

etamarlu avatar etamarlu commented on July 17, 2024

same still

re-downloaded everything and started from scratch, yet..

from gtsam.

varunagrawal avatar varunagrawal commented on July 17, 2024

Same compilation error? Can you please paste the output you're seeing over here?

from gtsam.

varunagrawal avatar varunagrawal commented on July 17, 2024

I'll also need information about your OS, compiler, Matlab version etc. I can help you but I need additional information.

from gtsam.

etamarlu avatar etamarlu commented on July 17, 2024

It looks like the same compilation error (below)

Enviroment information:
I am using vm with 64 bits ubuntu-22.04.
matlab 23a
CXX compiler identification is GNU 11.4.0

Compilation error
In file included from /home/et/gtsam-project-matlab-main/example/PrintExamples.cpp:18: /home/et/gtsam-project-matlab-main/example/PrintExamples.h:57:6: error: variable or field ‘consumePrinter’ declared void 57 | void consumePrinter(std::shared_ptr<PrintExample>& pe) {} | ^~~~~~~~~~~~~~ /home/et/gtsam-project-matlab-main/example/PrintExamples.h:57:26: error: ‘shared_ptr’ is not a member of ‘std’ 57 | void consumePrinter(std::shared_ptr<PrintExample>& pe) {} | ^~~~~~~~~~ /home/et/gtsam-project-matlab-main/example/PrintExamples.h:21:1: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’? 20 | #include <iostream> +++ |+#include <memory> 21 | #include <string> /home/et/gtsam-project-matlab-main/example/PrintExamples.h:57:49: error: expected primary-expression before ‘>’ token 57 | void consumePrinter(std::shared_ptr<PrintExample>& pe) {} | ^ /home/et/gtsam-project-matlab-main/example/PrintExamples.h:57:52: error: ‘pe’ was not declared in this scope 57 | void consumePrinter(std::shared_ptr<PrintExample>& pe) {} | ^~ make[2]: *** [CMakeFiles/example_matlab.dir/build.make:76: CMakeFiles/example_matlab.dir/example/PrintExamples.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:249: CMakeFiles/example_matlab.dir/all] Error 2 make: *** [Makefile:146: all] Error 2

from gtsam.

varunagrawal avatar varunagrawal commented on July 17, 2024

Thanks! I was able to reproduce the issue on my Ubuntu machine and have made all the fixes. Please re-download the latest version of the project template and you should be good to go.

Screenshot from 2023-10-06 10-41-51

from gtsam.

etamarlu avatar etamarlu commented on July 17, 2024

It works perfectly!

Thank you :)

from gtsam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.