© L.M.
Last update:
02 Nov 2009


The installation of MegaWave2 was successful but the MegaWave2 commands (e.g. cview) are not recognized.

In order to use MegaWave2 commands, you have to update your PATH variable. To do it, type (e.g.)
   source sys/lib/ix86/.cshrc_megawave2
in the MegaWave2 directory (you may have to adapt this command depending on your configuration). It is convenient to put this line in your own .cshrc file to have access to MegaWave2 automatically each time you log in.


Where can I find the sources of the modules ?

They are in the subdirectories of $MEGAWAVE2/src. Personnally I use the following alias to edit MegaWave2 files :
   alias mwedit 'find $MEGAWAVE2 -name \!*  -exec emacs {} \; &;'
Then I just have to type  mwedit cview.c  if I want to the the source code of the cview module (I don't need to know that it lies in the subdirectory image/io).

The recent versions of MegaWave2 include the macro mwwhere, which automatically locates a module. For example, type
   mwwhere heat.c
to find the location of the source of the module heat.

 Data Types and Formats 

When I call a module from the MegaWave2 library inside a program in C, will format conversions (e.g. Cimage->Fimage) be handled automatically if I call the module with the wrong data type ?

No, this conversion is only handled when a module is called as a shell command. As a C subroutine, a module is interpreted as a classical C program and no additional operation is performed by MegaWave2. Hence, if you write a module that takes a Fimage as input, you cannot pass a Cimage to it from a C call.

Are MegaWave2 image formats recognized by other programs ?

Yes and No. Since you can force MegaWave2 to write its data in a "classical" format (GIF, TIFF, ...) using the -ftype option, the compatibility with other programs is ensured. As concern MegaWave2 specific formats (IMG and RIM), we can provide a patch for the xv shareware.

Back to
Back to MegaWave Home Page  
Home Page