Hello,
Where do you have matlab installed to? If it's installed to
/opt/matlab then you would want to edit the file
/opt/matlab/bin/mexopts.sh as the root user. Looking through this file
you will see something like:
glnx86)
#----------------------------------------------------------------------------
RPATH="-Wl,-rpath-link,$TMW_ROOT/bin/$Arch"
CC='gcc'
CFLAGS='-ansi -D_GNU_SOURCE -fexceptions'
CFLAGS="$CFLAGS -fPIC -pthread -m32"
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64"
CLIBS="$RPATH $MLIBS -lm -lstdc++"
COPTIMFLAGS='-O -DNDEBUG'
CDEBUGFLAGS='-g'
You want to change the CFLAGS line to say:
CFLAGS='-D_GNU_SOURCE -fexceptions'
This is assuming you are running linux on a x86 32bit system.
Now run make and player.mexglx should compile. After that try to run
the simplayer.m example while Player (probably with Stage) is running.
Good luck
-Kevin
On Tue, Jun 24, 2008 at 4:31 AM, aliihsan <aliihsan.yalap@...> wrote:
>
> Hello
> I am using matlab R2007b and player-2.1.0rc2
> I am trying to interface matlab and player.In other words I want to use
> matlab as a client.
> Somebody can do this.I downloaded the software from this website:
> http://barryk.googlepages.com/playermex
> playermex-2.1pre6.tar.gz
>
> In software there is a makefile.In makefile there is a note:
> "
> # You most likely need to change MATLAB/bin/mexopts.sh so that the -ansi
> # flag is removed from CFLAGS. A s/-ansi// is fine. or if you want to be
> # more careful just replace it for your architecture.
> # Might need to change/add a -I for your matlab/extern/include.
> "
> How can i change MATLAB/bin/mexopts.sh so that the -ansi flag is removed
> from CFLAGS.
> If somebody run this software successfully,please help me.
> --
> View this message in context: http://www.nabble.com/Matlab-API-tp18086367p18086367.html
> Sent from the playerstage-users mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>
|