Debug loading of oct-file
John W. Eaton
jwe at bevo.che.wisc.edu
Mon Jan 7 10:47:26 CST 2008
On 7-Jan-2008, Kim Hansen wrote:
| I have problems getting octave to load an oct-file I have build with a
| test installation of octave:
|
| I am building the octave installation and runs octave like this:
| ===
| kim at sirius:~/saft-octave/solver/saft/octave/ignore$ ls -l
| total 6
| drwxr-xr-x 14 kim kim 4096 2008-01-06 20:20 cvs # Updated cvs
| checkout of octave
| drwxr-xr-x 2 kim kim 25 2008-01-07 17:17 my_code # My code
|
| mkdir build
| cd build
| ../cvs/configure F77=gfortran --prefix=$(readlink -f ../install)
| make check install
| cd ..
|
| cd my_code
| # build my code ...
| ../install/bin/octave
|
| octave:1> coin_oct
| error: `coin_oct' undefined near line 1 column 1
| octave:1> ls -l coin_oct.oct
| -rwxr-xr-x 1 kim kim 1756418 2008-01-07 17:17 coin_oct.oct
| octave:2>
| ===
|
| How do I start debugging what the problem is ?
|
| I have tried to load my code into an old version of octave (2.9.15),
| and that gives me the expected error message:
| ===
| octave:1> coin_oct
| error: API version api-v32+ found in .oct file function `coin_oct'
| does not match the running Octave (API version api-v27)
| this can lead to incorrect results or other failures
| you can fix this problem by recompiling this .oct file
| error: failed to install .oct file function `coin_oct'
It looks like your copy of octave installed in your ../install
directory is linking to an older version of the Octave libraries
(liboctinterp, liboctave, libcruft) when it starts.
You can probably avoid this problem by doing something like
LD_LIBRARY_PATH=../install/lib/octave-3.0.0+ ../install/bin/octave
jwe
More information about the Help-octave
mailing list