[FLASH-USERS] FLASH and Octave

Nathan Hearn nhearn at ucar.edu
Tue Feb 1 02:41:53 EST 2011


Hi Aaron,

   What versions of Octave (and SWIG) are you using?  Technically,
you don't usually need SWIG installed because swig/*_wrap.cpp files
for Python and Octave are included in QuickFlash.  However, if you
have SWIG available, you can try deleting these two files (or, at
least, the one for Octave), and then running build.py --enable-octave
again.  This should create new wrapper files, which may be more
compatible with your system setup.

   There might be something else going on, but this is a good place to start.


- Nathan


On Mon, Jan 31, 2011 at 15:23, Aaron  Froese
<aaron.froese at generalfusion.com> wrote:
> Hi Nathan,
>
> I am having trouble compiling the octave-swig branch.  Initially, octave_install_key was not declared in build.py.  I have added the appropriate lines to build.py and config/config_machine.py (see attachments) to get past that, but now I am unable to reference the function link_to_global_variable (see below).  Can you tell me what header file it is declared in?  In addition, I have been using the unigrid branch until now.  Is there any potential that the octave-swig branch as it currently exists will not be able to read uniform grid meshes?
>
> Thanks,
> Aaron
>
> -------------------------
> /usr/bin/mkoctfile -o quickflash.oct -I../include ../lib/libquickflash.a \
>              -I/home/aaron/libraries/hdf5-1.8.4-serial/src -I/usr/include/mpich2/ \
>            -L/home/aaron/libraries/hdf5-1.8.4-serial/lib -lhdf5 -lz octave_quickflash_wrap.cpp
> octave_quickflash_wrap.cpp: In member function ‘void octave_swig_type::install_global()’:
> octave_quickflash_wrap.cpp:1197: error: ‘curr_sym_tab’ was not declared in this scope
> octave_quickflash_wrap.cpp:1197: error: ‘link_to_global_variable’ was not declared in this scope
> octave_quickflash_wrap.cpp:1204: error: ‘symbol_record’ was not declared in this scope
> octave_quickflash_wrap.cpp:1204: error: ‘sr’ was not declared in this scope
> octave_quickflash_wrap.cpp:1204: error: ‘global_sym_tab’ was not declared in this scope
> octave_quickflash_wrap.cpp: In function ‘void SWIG_Octave_SetModule(void*, swig_module_info*)’:
> octave_quickflash_wrap.cpp:2110: error: ‘curr_sym_tab’ was not declared in this scope
> octave_quickflash_wrap.cpp:2110: error: ‘link_to_global_variable’ was not declared in this scope
> octave_quickflash_wrap.cpp: In function ‘octave_value_list Fquickflash(const octave_value_list&, int)’:
> octave_quickflash_wrap.cpp:14754: error: ‘curr_sym_tab’ was not declared in this scope
> octave_quickflash_wrap.cpp:14754: error: ‘link_to_global_variable’ was not declared in this scope
> make: *** [quickflash.oct] Error 1
>
> Error executing command [ cd swig ; make octave-swig ] : Unable to build Octave (SWIG) library



More information about the flash-users mailing list