How do I use libviso2?

I am trying to run visual odometer examples. I am installing libviso2 from here . I have matlab 2011b. I am using ubuntu 14.04.

The readme of libviso2 says to install C ++:

- sudo apt-get install libpng12-dev
- sudo apt-get install libpng++-dev

Linux:

1) Move to libviso2 root directory
2) Type 'cmake .'
3) Type 'make'
4) Run './viso2 path/to/sequence/2010_03_09_drive_0019'

      

I am successfully running libviso2 on terminal. In the next step, I tried to run matlab wrappers and demos. The readme says about matlab wrappers:

In the MATLAB directory of libviso, simply run 'make.m' to generate the mex wrappers.
(Run mex -setup before to choose your desired compiler)

Now try to run the demo*.m files!

      

First, I ran make.m.The output is below:

../src/triangle.cpp:1552:27: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=]
        printtri.orient);
                       ^
../src/triangle.cpp:1561:42: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=]
        printvertex[0], printvertex[1]);
                                      ^
../src/triangle.cpp:1568:42: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=]
        printvertex[0], printvertex[1]);

      

Then I ran mex -setup

. I am trying to run a demo of the example, but I am getting an error. The error message is below:

MATLAB/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version   `GLIBCXX_3.4.11' not found (required by
/MATLAB/bin/libviso2/matlab/visualOdometryMonoMex.mexa64)

      

How can I resolve this error?

+3


source to share





All Articles