Closed Junkai-Liu closed 5 years ago
Hi @Junkai-Liu , looks like the GTSAM matlab toolbox is not correctly installed. Did you put the path with .mex files in matlab path?
I put the path with matlab files in matlab path .But it seems like don't work
@Junkai-Liu you should not add path gtsam/matlab, which does not contains the compiled .mex file. You should add the installed gtsam toolbox path to matlab path, which is /usr/local/gtsam_toolbox on Ubuntu by default
@dongjing3309 my running operate system version is ubuntu16.04lts , how do i modify the installation of matlab.Should i follow the instructions to delete all of files as below? [ Delete or rename all files starting with 'libstdc++' in your MATLAB installation directory, in paths:
/usr/local/MATLAB/[version]/sys/os/[system]/
/usr/local/MATLAB/[version]/bin/[system]/
}
I don't see the need to do these steps, since I have not see any issue without doing these steps
Should I install gtsam_toolbox independently?Because I didn't find the gtsam_toolbox in the path of default location.I merely follow the instructions to install gtsam in my computer.
All right, i have found the problem .I didn't mention that I should modify Cmakelists.Thank u for your reply very much.
@dongjing3309 I have changed the option of MATLAB toolbox flags into enabled. But when I compile
gtsam_wrapper occurs mistake.I have checked related issue which u modify the gtsam.h.However,it seems doesn't work either.how can i fix this problem?
What is the error message?
error message as below:
[ 64%] Building CXX object gtsam/CMakeFiles/gtsam_matlab_wrapper.dir/__/wrap/gtsam/gtsam_wrapper.cpp.o
In file included from /usr/include/boost/serialization/split_member.hpp:23:0,
from /usr/include/boost/serialization/nvp.hpp:29,
from /home/rush/gtsam/gtsam/base/Vector.h:255,
from /home/rush/gtsam/wrap/matlab.h:25,
from /home/rush/gtsam/build/wrap/gtsam/gtsam_wrapper.cpp:1:
/usr/include/boost/serialization/access.hpp: In instantiation of ‘static void boost::serialization::access::serialize(Archive&, T&, unsigned int) [with Archive = boost::archive::text_iarchive; T = std::vector<long unsigned int, tbb::tbb_allocator
I suppose compile error when compile with gtsam_wrapper
@Junkai-Liu looks like this is a GTSAM issue, you may want to submit an issue to GTSAM bitbucket repo.
All right ,thank u
When I run gtsam matlab toolbox ,output error undefined function or variable 'NonlinearFactorGraph',I have added the gtsam/matlab to the matlab searching path,however,still can't fix this problem .Did I do something wrong?