Comments (9)
@etamarlu I made some updates to the project template file. Can you please clone the latest main
branch and try again?
from gtsam.
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.
@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.
same still
re-downloaded everything and started from scratch, yet..
from gtsam.
Same compilation error? Can you please paste the output you're seeing over here?
from gtsam.
I'll also need information about your OS, compiler, Matlab version etc. I can help you but I need additional information.
from gtsam.
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.
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.
from gtsam.
It works perfectly!
Thank you :)
from gtsam.
Related Issues (20)
- compile gtsam on the ios using conan failing with a bug HOT 6
- Compiling gtsam using aarch64-linux-android clang++ failed
- Unable to build GTSAM w/ MATLAB toolbox on Windows (stable only) HOT 1
- build failed on Win11 with Visual Studio 2022 (Caused by Eigen3 static_assert) HOT 1
- GTSAM detect wrong data type with Point3 in *windows* HOT 2
- sudo make install gives cxx11 error HOT 10
- Jacobian calculate in Pose3 translation function is correct? HOT 4
- Will the new GTSAM 4.3 be binary compatible with earlier versions of GTSAM 4.x? HOT 3
- Included cephes code should contain a provenance and license HOT 9
- How about implement gtsam::KeyValueMap with hashable container? HOT 4
- Factor between two landmarks HOT 2
- Cephes requires Cmake 3.12, breaks build on Ubuntu Bionic HOT 1
- Cannont build target ALL_BUILD with VS2022 / MSVC v143
- GTSAM was built against a different version of Eigen HOT 12
- Cannot build target gtsam on Windows 10 and CLion with bundled MinGW64 and CMake
- Python Segfault on MacOS HOT 2
- Custom Factor in MATLAB HOT 8
- ImportError in case of custom build of python package HOT 2
- Question about symbolic computation: About addExpressionFactor HOT 1
- Ubuntu package builds failing HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtsam.