1

I want to link YARP with Matlab to run this system. I set up based on this.

First,

I download YARP from github.

Next,

  1. cmake example/swig
  2. toggle CREATE_JAVA on
  3. generate and compile the example SWIG project

I got the following compile error

Macro 'VOCAB' redefined                         Vocab.h
previous definition of 'VOCAB'                  yarp.i

Macro 'VOCAB4' redefined                        Vocab.h
previous definition of 'VOCAB4'                 yarp.i

Macro 'VOCAB3' redefined                        Vocab.h
previous definition of 'VOCAB3'                 yarp.i

Macro 'VOCAB2' redefined                        Vocab.h
previous definition of 'VOCAB2'                 yarp.i

Macro 'VOCAB1' redefined                        Vocab.h
previous definition of 'VOCAB1'                 yarp.i

My development environment

  • windows10
  • Matlab R2018a
  • Yarp 2.3.72
  • jdk 10.0.1

Thank you

bio3H
  • 13
  • 4

1 Answers1

0

I'm not sure if that wiki page is updated, this is the official documentation for using the java bindings on matlab.

Anyway, there are experimental matlab bindings for using YARP in matlab without java, I recommend to try those.