[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MathGL: failure to load
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: MathGL: failure to load |
Date: |
Sun, 22 Jan 2012 23:14:32 -0500 |
On 22 January 2012 16:53, CdeMills <address@hidden> wrote:
> mkoctfile-3.5.91+ -v mgl_octave.cpp -o mathgl.oct -I../../include
> -I../include -lmgl 2>&1 | tee mkoct.log
>
> Relevant part:
>
> g++-4.6 -c -fPIC -I${HOME}/usr/include/octave-3.5.91+/octave/..
> -I${HOME}/usr/include/octave-3.5.91+/octave -I${HOME}/usr/include -mieee-fp
> -I${HOME}/usr/include/freetype2 -I${HOME}/usr/include -I${HOME}/usr/include
> -g -O2 -I../../include -I../include mgl_octave.cpp -o mgl_octave.o
>
> g++-4.6 -shared -Wl,-Bsymbolic -o mathgl.oct mgl_octave.o -lmgl
> -L${HOME}/usr/lib/octave/3.5.91+ -L${HOME}/usr/lib -loctinterp -loctave
> -lcruft
Thanks, so at least the linking commands seem "correct".
Have you verified that libmgl.so does contain the correct symbols? If
you have GNU binutils installed, you should be able to do
nm libmgl.so | grep mgl_data_value
When I run that command in what appears to be my libgml.so, I don't
see that symbol. Indeed, grepping through the source I only see a
declaration for it in include/mgl/data.h, but I can't find a
corresponding definition. I suspect this may be a bug in the 2.x
MathGL release.
So how are you able to compile mgl_octave.cpp? SWIG doesn't seem to
generate code for me that compiles. Did you do anything special to
handle the compilation step?
- Jordi G. H.
- MathGL: failure to load, CdeMills, 2012/01/22
- Re: MathGL: failure to load, Jordi Gutiérrez Hermoso, 2012/01/22
- Re: MathGL: failure to load, CdeMills, 2012/01/22
- Re: MathGL: failure to load, Jordi Gutiérrez Hermoso, 2012/01/22
- Re: MathGL: failure to load, Jordi Gutiérrez Hermoso, 2012/01/22
- Re: MathGL: failure to load, CdeMills, 2012/01/22
- Re: MathGL: failure to load, Jordi Gutiérrez Hermoso, 2012/01/22
- Re: MathGL: failure to load, CdeMills, 2012/01/22
- Re: MathGL: failure to load,
Jordi Gutiérrez Hermoso <=
- Re: MathGL: failure to load, CdeMills, 2012/01/23