© L.M.
Last update:
02 Nov 2009

Post a New Message Back to Message List


22 Oct 2009 megawave3 not installing on Ubuntu (peter)
             

I have downloaded megawave to see how it compares to openCV, and for fun. 

I have setup my install directory as /root/megawave

It goes through all the steps
It gets to level3, and does the second pass.

------ End at Thu Oct 22 19:12:55 BST 2009

All modules were successfully compiled !

*******************************************************
***** Level 4 : Compile the documentation (guid3) *****
*******************************************************


so far so good...I think

I get various Latex font warning, dont think they are a problem

Adding references to modules :
  {aubert.deriche.ea:seq}: motionseg 
  {almansa.desolneux.vamech:vanish}: vpoint falign_mdl 
  {alvarez.guichard.ea:axioms}: amss mam 
  {almansa:phd}: vpoint falign_mdl 
  {aronsson:extension}: amle_init a

etc etc, so all seems fine....

***** Thu Oct 22 19:16:04 BST 2009
*******************************************************************
***** Install done for MegaWave2 ! (Leave your fingers quiet) *****
*******************************************************************
 
***** Do you want to check the module library [Y/N] ? [default Y]


############ - Now this is where the problem starts#

Although it says install done, there are no files in /root/megawave

and so when I run the test on modules they all fail


***** module  failed

***** module  failed
.
***** module  failed

***** module  failed


Now I am assuming that everything has compiled correctly, BUT not been installed, 
am I correct, or is there a bigger problem

Peter


Answer to this message Answer to this message

Back to Message Index Back to Message Index


20 Oct 2009 Installation problem on Fedora 64bits (Thomas)
             

Dear all again

Since my last message, I applied the patch of G. Facciolo and went 
on the following error:

*****************************************
***** Level 3 : Compile the modules *****
*****************************************
Module "ccopy" cannot be compiled using the 'traditional' preprocessor !
Following the corresponding output. Please send these lines when reporting bugs:
--------------------------------------------------------------------------------
 
>>> Welcome on the MegaWave2 Compiler V2.08 <<<
Beware, the target user is the system on /users/crip5/hurtut/megawave2
 
  Phase 1 : MegaWave2 preprocessor
Dans le fichier inclus à partir de /usr/include/features.h:376,
          à partir de /users/crip5/hurtut/megawave2/sys/include/Linux/stdio_2.3.3.h:28,
          à partir de /users/crip5/hurtut/megawave2/sys/include/Linux/stdio.h:38,
          à partir de ccopy.c:13:
/usr/include/gnu/stubs.h:7:27: erreur: gnu/stubs-32.h : Aucun fichier ou dossier de ce type
fatal error : Some problems in preprocessing ...
Exit.



This is due to the 64bits architecture (which is not detected well at the 
beginning of the installation). I tried some of the advises from Juan 
Cardelino (http://iie.fing.edu.uy/twiki/bin/view.cgi/Software/MegaWave  
bottom of the page) but it has no effect. 

I try to define the __x86_64__ flag somewhere, or use the m64 flag on gcc, 
but still in vain.

Anyone had encountered these kind of difficulties ?

Thanks
Thomas
Answer to this message Answer to this message

Back to Message Index Back to Message Index


20 Oct 2009 Installation problem on Fedora (Thomas)
             

Bonjour 

En voulant installer MW sur Fedora, des problèmes commencent à 
apparaître au moment de la compilation du preprocesseur mwplight:


[...]
*** Install the MegaWave2 'light' preprocessor (mwplight Install) ***
Create directory /users/crip5/hurtut/megawave2/kernel_obj/mwplight/obj/unknown...
Create directory /users/crip5/hurtut/megawave2/kernel_obj/mwplight/unknown...
Makefile configuration parameters : arch = 'Linux unknown' opt=''
Scanning ./Makefile.in and writing ./Makefile (98 lines).....................
............................................................................. 
/bin/rm -f 
/users/crip5/hurtut/megawave2/kernel_obj/mwplight/obj/unknown/mwpl_main.o 
/users/crip5/hurtut/megawave2/kernel_obj/mwplight/obj/unknown/mwpl_io.o 
/users/crip5/hurtut/megawave2/kernel_obj/mwplight/obj/unknown/mwpl_parse.o 
/users/crip5/hurtut/megawave2/kernel_obj/mwplight/obj/unknown/mwpl_header.o 
/users/crip5/hurtut/megawave2/kernel_obj/mwplight/obj/unknown/mwpl_tree.o 
/users/crip5/hurtut/megawave2/kernel_obj/mwplight/obj/unknown/mwpl_instruction.o 
/users/crip5/hurtut/megawave2/kernel_obj/mwplight/obj/unknown/mwpl_mfile.o 
/users/crip5/hurtut/megawave2/kernel_obj/mwplight/obj/unknown/mwpl_afile.o 
/users/crip5/hurtut/megawave2/kernel_obj/mwplight/obj/unknown/mwpl_tfile.o 
/users/crip5/hurtut/megawave2/kernel_obj/mwplight/obj/unknown/mwpl_ifile.o 
/users/crip5/hurtut/megawave2/kernel_obj/mwplight/obj/unknown/mwpl_present.o
cc  -O  -c mwpl_main.c -o 
/users/crip5/hurtut/megawave2/kernel_obj/mwplight/obj/unknown/mwpl_main.o
In file included from mwpl_main.h:118,
                 from mwpl_main.c:27:
mwpl_proto.h:52: erreur: conflicting types for ‘getline’
/usr/include/stdio.h:653: note: previous declaration of ‘getline’ was here
make: *** [/users/crip5/hurtut/megawave2/kernel_obj/mwplight/obj/unknown/mwpl_main.o] Erreur 1
*** Error in 'make all' ! Abort mwplight Install. ***
=== Error in mwplight Install ! You will have to use traditional mwp only ===
mkdir -p /users/crip5/hurtut/megawave2/sys/shell
for i in .mw2_help_lg_com cmw2 cmw2_all mwvers mwdoclatex mwnewuser mwecho mwarch 
cxmw2 mwdep mwmakedoc cmw2macro mwdocxdvi mwdoc mwwhere mwisupper mwmodlist 
mwsysmaclist mwrm mwrnwordmod mwmodsearch mwmodbibtex  mwmodinstall mwcontrib 
mwcontrib_all mwrnauthor mwrnauthor_all cxmw2debug mwmodcheck mwconfig mwsetenv 
mwincvers mwinstall mwcleandistrib mwcmwcheck;\
	do DESTDIR=`echo /users/crip5/hurtut/megawave2|sed '1,$s/\//\\\\\\//g'`;\
	   sed "1,\$s/%DESTDIR%/$DESTDIR/g" $i >/users/crip5/hurtut/megawave2/sys/shell/$i;\
	   chmod u+x /users/crip5/hurtut/megawave2/sys/shell/$i;\
	done
mkdir -p  /users/crip5/hurtut/megawave2/sys/shell/data
cp data/mwmakedoc_foot.tex data/mwmakedoc_foot_index.tex data/mwmakedoc_macros.tex 
data/mwmakedoc_macros_html.tex data/mwmakedoc_body.tex data/mwmakedoc_body_html.tex 
data/mwmakedoc_header_latex2.09.tex data/mwmakedoc_header_latex2e.tex 
data/mwmakedoc_list_html.tex data/mwmakedoc_list.tex data/mwmakedoc_reference.tex 
data/mwmakedoc_reference_html.tex data/mwmakedoc_bib.tex	
data/mwdoclatex_header.tex data/mwdoclatex_bib.tex data/mwdoclatex_foot.tex 
data/mwrnwordmod.data data/cxmw2_header.c data/cxmw2_foot.c 
/users/crip5/hurtut/megawave2/sys/shell/data
 
=== mar. oct. 20 16:15:39 CEST 2009
=== Install done for the kernel on /users/crip5/hurtut/megawave2 ===
*****************************************
***** Level 3 : Compile the modules *****
*****************************************
Module "ccopy" cannot be compiled using the 'traditional' preprocessor !
Following the corresponding output. Please send these lines when reporting bugs:
--------------------------------------------------------------------------------
 
>>> Welcome on the MegaWave2 Compiler V2.08 <<<
Beware, the target user is the system on /users/crip5/hurtut/megawave2
 
  Phase 1 : MegaWave2 preprocessor
ccopy.c :
/usr/include/_G_config.h : syntax error line 53
fatal error : 1 error detected. Stop.
Exit.
--------------------------------------------------------------------------------
Module "ccopy" cannot be compiled using the 'light' preprocessor !
Following the corresponding output. Please send these lines when reporting bugs:
--------------------------------------------------------------------------------
 
>>> Welcome on the MegaWave2 Compiler V2.08 <<<
Beware, the target user is the system on /users/crip5/hurtut/megawave2
 
  Phase 1 : MegaWave2 Light preprocessor
sh: /users/crip5/hurtut/megawave2/sys/bin/unknown/mwplight: Aucun fichier ou dossier de ce type
--------------------------------------------------------------------------------
Error: zero module successfully compiled !




Je ne vois pas non plus vraiment d'erreur de syntaxe dans le _G_config.h

Est ce que quelqu'un a déjà rencontré ce type d'erreur ?

Merci d'avance
Thomas

Answer to this message Answer to this message

Back to Message Index Back to Message Index


18 Oct 2009 megawave2 et .bashrc :fin d'installation (kakashi)
             

Bonjour,
j'ai installé megawave2 à la fin de l'installation, on me dit qu'il 
faut modifier le fichier .profile_adm_megawave2. Après quelques 
recherches, j'ai trouvé qu'il fallait modifier le fichier .bashrc 
mais je ne sais pas comment faire. Quelqu'un pourrait-il m'aider stp ?
merci 
Answer to this message Answer to this message

Back to Message Index Back to Message Index


20 Jul 2009 save image fview (Christophe Leroy)
             

Hello,

I plot megawave images with the fview command.
I see it in grey scale.

I'd like to know if it is possible to add a color bar on the side 
of the image in order to know the values in my image?

Is it also possible to generate directly a PNG file of the image 
when I plot it?

Thanks in advance for your answer! 
Answer to this message Answer to this message

Back to Message Index Back to Message Index


2 Jul 2009 External Image Format
             

Hi, I am trying to use the segct function to segment an image.  
I installed megawave2 without any errors, except it couldn't find 
the TIFF or JPEG libraries.  Whenever I try to use segct it gives 
the error "Unknown external type for the file ..."  I have tried 
bmp, png and gif so far.  
Answer to this message Answer to this message

Back to Message Index Back to Message Index


3 Jun 2009 Preferential Image Segmentation (Mostafa Elhoushi)
             

Dear All,
Thank you Lionel for answering my questions. I have been 
working with the package and trying the different 
functions and trying to add my own functions.
I have been trying to implement the method described in 
the following paper whose owners said that they have used 
the MegaWave package:
Preferential Image Segmentation using Tree of Shapes
http://ieeexplore.ieee.org/search/srchabstract.jsp?arnumber=4796314&
isnumber=4799361&punumber=83&k2dockey=4796314@ieeejrns&
query=%28preferential+image+segmentation%29%3Cin%3Emetadata&pos=0

The method basically combines the methods of FLST and 
curve matching.
I have some problems:
First: I have managed to run the KM_DEMO but I cannot find 
the source code. 
Second: Does KM_DEMO compare using curve matching only or 
does it compare the intensity information as mentioned in 
the paper?

Answer to this message Answer to this message

Back to Message Index Back to Message Index


25 Apr 2009 Curve Matching (Mostafa Elhoushi)
             

Dear All,

I would like also to ask where can I find the implementation of 
curve matching in the MegaWave package?
Answer to this message Answer to this message


           3 May 2009 Re: Curve Matching (Lionel Moisan)
                        

The curve matching modules are in the src/curve/matching/
directory (demo script KM_DEMO and several C modules).

Answer to this message Answer to this message

Back to Message Index Back to Message Index


25 Apr 2009 Image Segmentation using Tree of Shapes (Mostafa Elhoushi)
             

Dear All,

According to the following paper: Preferential Image Segmentation 
using Trees of Shapes,
http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?isnumber=4799361&arnumber=4796314&count=20&index=13, 
the fast level lines transform (FLLT), an algorithm to construct a 
tree of shapes from an image, is implemented in the MEGAWAVE package.
I have downloaded the MEGAWAVE package and I cannot find the function 
which implements the FLLT algorithm. Where can I find it?

Thanks
Answer to this message Answer to this message


           3 May 2009 Re: Image Segmentation using Tree of Sha (Lionel Moisan)
                        

The algorithm is called FLST (Fast Level Set Transform)
and is implemented in the module flst (source flst.c
in src/image/level_lines/flst.c) and in several other
modules. Please type

mwdoc flst

for a complete documentation on the subject.

Answer to this message Answer to this message

Back to Message Index Back to Message Index


24 Feb 2009 Kmeans in megaWave (G.-S Xia)
             

Hi, everyone,
   Does any one have the code in MegaWave2 for Kmeans clustering? 
I have to use it for my processing. 
   Thanks in advance!

best regards,

Gui-Song Xia
Answer to this message Answer to this message

Back to Message Index Back to Message Index


25 Jan 2009 Megawave in Ubuntu Intrepid Ibex (cagno)
             

Has anybody installed Megawave in the last version of 
Ubuntu Intrepid Ibex? I have been trying but without 
any result...HELP!
Answer to this message Answer to this message


           29 Oct 2009 Re: Megawave in Ubuntu Intrepid Ibex (Juan Cardelino)
                        

Yes. I was able to do it on hardy/intrepid/jaunty
i've made a page with my experience here:
http://iie.fing.edu.uy/rosaluna/wiki/MegaWave
I hope it helps
Answer to this message Answer to this message

Back to Message Index Back to Message Index


26 Nov 2008 problem installing megawave 2 (arnau)
             

Hello.
When I have tried to install megawave 2, I haven't been able to finish 
the installation because in the phase 3, I have encountered the following 
problem:
..
 
*** Install done for the 'light' preprocessor on /home/arnau/megawave2 ***
mkdir -p /home/arnau/megawave2/sys/shell
for i in .mw2_help_lg_com cmw2 cmw2_all mwvers mwdoclatex mwnewuser 
mwecho mwarch cxmw2 mwdep mwmakedoc cmw2macro mwdocxdvi mwdoc mwwhere 
mwisupper mwmodlist mwsysmaclist mwrm mwrnwordmod mwmodsearch 
mwmodbibtex  mwmodinstall mwcontrib mwcontrib_all mwrnauthor 
mwrnauthor_all cxmw2debug mwmodcheck mwconfig mwsetenv mwincvers 
mwinstall mwcleandistrib mwcmwcheck;\
	do DESTDIR=`echo /home/arnau/megawave2|sed '1,$s/\//\\\\\\//g'`;\
	   sed "1,\$s/%DESTDIR%/$DESTDIR/g" $i >/home/arnau/megawave2/\
sys/shell/$i;\
	   chmod u+x /home/arnau/megawave2/sys/shell/$i;\
	done
mkdir -p  /home/arnau/megawave2/sys/shell/data
cp data/mwmakedoc_foot.tex data/mwmakedoc_foot_index.tex 
data/mwmakedoc_macros.tex data/mwmakedoc_macros_html.tex 
data/mwmakedoc_body.tex data/mwmakedoc_body_html.tex 
data/mwmakedoc_header_latex2.09.tex data/mwmakedoc_header_latex2e.tex 
data/mwmakedoc_list_html.tex data/mwmakedoc_list.tex 
data/mwmakedoc_reference.tex data/mwmakedoc_reference_html.tex 
data/mwmakedoc_bib.tex	data/mwdoclatex_header.tex 
data/mwdoclatex_bib.tex data/mwdoclatex_foot.tex data/mwrnwordmod.data 
data/cxmw2_header.c data/cxmw2_foot.c 
/home/arnau/megawave2/sys/shell/data
 
=== dc nov 26 13:54:11 CET 2008
=== Install done for the kernel on /home/arnau/megawave2 ===
*****************************************
***** Level 3 : Compile the modules *****
*****************************************
Module "ccopy" cannot be compiled using the 'traditional' preprocessor !
Following the corresponding output. Please send these lines when 
reporting bugs:
--------------------------------------------------------------------------------
 
>>> Welcome on the MegaWave2 Compiler V2.08 <<<
Beware, the target user is the system on /home/arnau/megawave2
 
  Phase 1 : MegaWave2 preprocessor
sh: /home/arnau/megawave2/sys/bin/unknown/mwp: The file or directory 
doesn't exist
--------------------------------------------------------------------------------
Module "ccopy" cannot be compiled using the 'light' preprocessor !
Following the corresponding output. Please send these lines when 
reporting bugs:
--------------------------------------------------------------------------------
 
>>> Welcome on the MegaWave2 Compiler V2.08 <<<
Beware, the target user is the system on /home/arnau/megawave2
 
  Phase 1 : MegaWave2 Light preprocessor
  Phase 2 : production of sources and objects
          production of document squeleton (doc/obj/ccopy.doc)
          production of arguments analyser object
          production of module object
          add objects to MegaWave2 user library
          production of interface with MegaWave2 interpretor source
          production of interface with MegaWave2 library object
  Phase 3 : production of MegaWave2 command
          linking MegaWave2 command "ccopy" on unknown with additional 
libraries [-lW_X11R4 -lX11 ]
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_write_scanlines'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_stdio_src'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_calc_output_dimensions'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_CreateDecompress'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_destroy_decompress'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_finish_decompress'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_set_defaults'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_set_quality'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_set_marker_processor'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_read_header'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_write_marker'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_start_compress'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_start_decompress'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_destroy_compress'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_CreateCompress'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_stdio_dest'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_std_error'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_finish_compress'
/home/arnau/megawave2/sys/lib/unknown/libsysmw.so: undefined reference 
to `jpeg_read_scanlines'
collect2: ld returned 1 exit status
          Link failed : exit.
--------------------------------------------------------------------------------
Error: zero module successfully compiled !
***** Modules cannot be compiled ! It means something went wrong during 
the kernel installation stage...
***** Abort mwinstall at level 3.
+++++ Installation NOT COMPLETE using
+++++      /home/arnau/megawave2/kernel/shell/mwinstall  -clear 
/home/arnau/megawave2
+++++ Try to fix the problem (look at '/home/arnau/megawave2/Install.log') 
and rerun mwinstall.
+++++ If mwinstall has failed at a level greater than 1, you may save time
+++++ by adding the parameter '-level l'. In that case, make sure 
+++++ your environment variables are correctly set.
+++++ The environment variables you need are initialized in the following 
files :
+++++ /home/arnau/megawave2/sys/lib/unknown/.profile_adm_megawave2 (Profile 
for Bourne-compatible shells)
+++++ /home/arnau/megawave2/sys/lib/unknown/.cshrc_adm_megawave2 (Csh for 
C-compatible shells)


Can somebody help me?

Thanks,

Arnau.

Answer to this message Answer to this message

Back to Message Index Back to Message Index


16 Oct 2008 Error of fft2dview in Megawave 3.01 (Gabriele Facciolo)
             

Hi, 
let me report a problem in the fft2dview module (it has changed since 
megawave 2) it manifests by running the following commands.

fconst re 0 256 256
fpset re 50 70 1 re
fft2d -i -A wave re
fft2dview wave

The image shown does not correspond to the fourier transform of a wave. 
I suspect it is a scaling problem.

Strangely this does not manifests when executing:
fconst re 0 256 256
fpset re 10 0 1 re
fft2d -i -A wave re
fft2dview wave


Best ,
Gabriele
Answer to this message Answer to this message


           21 Oct 2008 Re: Error of fft2dview in Megawave 3.01 (Lionel)
                        

When fft2dview is called with no options, 1% of
extremal values are discarded from the display scale
(for most images, this is useful because DC and low-frequency
components tend to take extreme values that stretch the
image dynamics too much). For a pure sine wave, this is
not appropriate since the DTF is zero except in two points.
With 
fft2dview wave
you only see numerical noise, since the two peaks are
discarded. You can avoid this with
fft2dview -d 0 wave
Answer to this message Answer to this message

Back to Message Index Back to Message Index


23 Sep 2008 IMG to TIFF-32 bits. (Antoine)
             

Bonjour, je dispose d'images en format IMG , et je voudrais les transformer 
en des TIFF 32 bits (float) et signés.

la fonction : fcopy -ftype TIFF In.(MW ou IMG) Out.TIFF  
ne prend pas en compte les valeurs négatives qui se trouvent dans mon image 
en entrée. J'ai en sortie des images en float certes mais où tous les 
gray-levels en dehors de [0.000 ,255.000] sont mis à zero!!!

Comment puis-je faire!!!

Merci de votre réponse.

Antoine


Answer to this message Answer to this message


           21 Oct 2008 Re: IMG to TIFF-32 bits. (Lionel)
                        

Pour l'instant, le seul format image "float" reconnu par
MegaWave est le format RIM. Nous prévoyons d'intégrer
le format TIFF (16 et 32 bits) dans un avenir proche.
S'il s'agit simplement d'exporter des images destinées
à être affichées à l'écran, une conversion 8 bits par
fthre -N -ftype TIFF in.rim out.tif
est une alternative acceptable.
Answer to this message Answer to this message


                      4 Nov 2008 Re: Re: IMG to TIFF-32 bits. (Antoine)
                                   

Merci pour vore réponse, 

la question suivante me permettra de lire une image au 
format IMG ou PM_F sans utiliser MW. Combien est l' offset 
introduit dans une image avant d acceder aux donnes 
stockées dans le tableau *gray (tableau contenant les 
valeurs des pixels dans la structure Fimage).

 J 'ai pu trouver 28 octets et celà semble fonctionner 
correctement. (On trouve une valeur differente si on 
somme tous les champs de la structure Fimage ...) 

La réponse me permettra de valider mes programmes. 
Merci
Answer to this message Answer to this message

Back to Message Index Back to Message Index


19 Aug 2008 compilation on ubuntu hardy (Juan Cardelino)
             

I've corrected some annoying warnings on ubuntu hardy, but actually 
the important thing is gcc version (4.2.3).
You can find the patch here as usual.
http://iie.fing.edu.uy/twiki/bin/view.cgi/Software/SoftwareLibraries
Answer to this message Answer to this message

Back to Message Index Back to Message Index


23 Aug 2008 I/O Megawave formats from matlab (Juan Cardelino)
             

I'm trying to read flists from matlab, does someone have any matlab 
functions to perform I/O?
Thanks in advance.
Best regards,
             Juan
Answer to this message Answer to this message

Back to Message Index Back to Message Index


19 Jun 2008 how can I get the SNR ? (Julien CARON)
             

Hello,

My problem is : I would like to compute the SNR between two fimages 
during the execution of a Megawave function in order to save it in 
a file and then load this file with MATLAB.

I tried : 
  (...)
  double *PSNR , *SNR , *MSE , *MRD ;
  int *NORM = NULL ;
  char *PsnrFlg = NULL ;

  fmse(C,D,NORM,PsnrFlg,SNR,PSNR,MSE,MRD) ;
  (...)
}
but I only get a segmentation error. I certainly badly use the fmse 
function but I can't find out what's wrong.


Answer to this message Answer to this message


           23 Sep 2008 Re: how can I get the SNR ?
                        

You have perhaps to allocate memory for all the objects you use. 

Reply back
Answer to this message Answer to this message

Back to Message Index Back to Message Index


27 Apr 2008 Using modules in C++ files (nicolas66)
             

Hi,

Description of the problem : I'd like to use external modules in 
C++ files.

I have successfully applied the little trick proposed by N. Burrus. 
But I couldn't use external modules in C++ files.

So, I have tried to declare external functions like that :

extern "C" frot( Fimage in, Fimage out, float *a, float *b, char *k_flag);

Of course, it works but it's very boring to re-declare all core 
functions ... So, any other solution(s) ? Thank you for your help.


Nicolas.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


10 Mar 2008 gvf snake (Léon)
             

 Je cherche le code de gvf snake en C/C++. je travail avec les 
imagenes DICOM et j'ai besoin de gvf pour la segmentetion. 
Ok merci d'avance.

Léon  
Answer to this message Answer to this message

Back to Message Index Back to Message Index


24 Feb 2008 no information in compilation error? (Juan Cardelino)
             

Well, I'm not sure what to do with this. Any hint? This error message 
isn't very helpful.
Best regards,
            Juan
---------------------------
cmw2 -g XXX.c

>>> Welcome on the MegaWave2 Compiler V2.08 <<<

  Phase 1 : MegaWave2 Light preprocessor

*** mwplight error ***
Parse error : I don't know how to interpret symbol(s) "/"
*** exit ***

Answer to this message Answer to this message


           4 Mar 2008 Re: no information in compilation error? (Julien Caron)
                        

Hello,

This might be an error due to a "//" commentary command , I already 
had this kind of error message.

Julien
Answer to this message Answer to this message


                      28 May 2008 Re: Re: no information in compilation er
                                   

yeah, i've found that out later on. thanks for your answer.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


20 Nov 2007 double free in readpoly (Juan Cardelino)
             

I'm trying to run the readpoly module under Ubuntu Gutsy but I'm 
getting a double free error. Do you know why is this happening or 
how to avoid it?
BTW, im running on:
Linux efpc310 2.6.22-14-386 #1 Sun Oct 14 22:36:54 GMT 2007 i686 
GNU/Linux
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)

It runs fin but gives the error when returning from the functions 
because of the repeated call to free().
Thanks in advance.
Juan

----------------------
readpoly im1.pgm test.polys
Created a point in (71,32)
Created a point in (61,77)
Created a point in (111,83)
Created a point in (113,44)
Created a point in (80,26)
Next polygon
Last point deleted
*** glibc detected *** readpoly: double free or corruption 
(fasttop): 0x08062988 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7becd65]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7bf0800]
/home/juan/juanc/soft/develop/megawave2/sys/lib/unknown/libsysmw.so(mw_delete_point_curve+0x4e)[0xb7ece122]
/home/juan/juanc/soft/develop/megawave2/sys/lib/unknown/libsysmw.so(mw_delete_polygon+0x49)[0xb7e7ba6b]
readpoly[0x8049c68]
/home/juan/juanc/soft/develop/megawave2/sys/lib/unknown/libsysmw.so(mw_window_main_loop+0x98)[0xb7e77b4b]
readpoly[0x80492fe]
readpoly[0x80490dc]
/home/juan/juanc/soft/develop/megawave2/sys/lib/unknown/libsysmw.so(_mw_main+0x578)[0xb7e70ec4]
readpoly[0x8048dc0]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7b99050]
readpoly[0x8048d21]
======= Memory map: ========
08048000-0804b000 r-xp 00000000 08:03 3227968    
/home/juan/juanc/soft/develop/megawave2/bin/unknown/readpoly
0804b000-0804c000 rwxp 00002000 08:03 3227968    
/home/juan/juanc/soft/develop/megawave2/bin/unknown/readpoly
0804c000-0809c000 rwxp 0804c000 00:00 0          
[heap]
b7900000-b7921000 rwxp b7900000 00:00 0
b7921000-b7a00000 ---p b7921000 00:00 0
b7b1b000-b7b1f000 r-xp 00000000 08:03 1640212    /usr/lib/libXfixes.so.3.1.0
b7b1f000-b7b20000 rwxp 00003000 08:03 1640212    /usr/lib/libXfixes.so.3.1.0
b7b34000-b7b3e000 r-xp 00000000 08:03 1327245    /lib/libgcc_s.so.1
b7b3e000-b7b3f000 rwxp 0000a000 08:03 1327245    /lib/libgcc_s.so.1
b7b3f000-b7b41000 rwxp b7b3f000 00:00 0
b7b41000-b7b55000 r-xp 00000000 08:03 475918     /usr/lib/libz.so.1.2.3.3
b7b55000-b7b56000 rwxp 00013000 08:03 475918     /usr/lib/libz.so.1.2.3.3
b7b56000-b7b75000 r-xp 00000000 08:03 1641328    /usr/lib/libjpeg.so.62.0.0
b7b75000-b7b76000 rwxp 0001e000 08:03 1641328    /usr/lib/libjpeg.so.62.0.0
b7b76000-b7b78000 r-xp 00000000 08:03 1327462    /lib/tls/i686/cmov/libdl-2.6.1.so
b7b78000-b7b7a000 rwxp 00001000 08:03 1327462    /lib/tls/i686/cmov/libdl-2.6.1.so
b7b7a000-b7b7b000 rwxp b7b7a000 00:00 0
b7b7b000-b7b7f000 r-xp 00000000 08:03 1639845    /usr/lib/libXdmcp.so.6.0.0
b7b7f000-b7b80000 rwxp 00003000 08:03 1639845    /usr/lib/libXdmcp.so.6.0.0
b7b80000-b7b82000 r-xp 00000000 08:03 1638589    /usr/lib/libXau.so.6.0.0
b7b82000-b7b83000 rwxp 00001000 08:03 1638589    /usr/lib/libXau.so.6.0.0
b7b83000-b7cc7000 r-xp 00000000 08:03 1327456    /lib/tls/i686/cmov/libc-2.6.1.so
b7cc7000-b7cc8000 r-xp 00143000 08:03 1327456    /lib/tls/i686/cmov/libc-2.6.1.so
b7cc8000-b7cca000 rwxp 00144000 08:03 1327456    /lib/tls/i686/cmov/libc-2.6.1.so
b7cca000-b7ccd000 rwxp b7cca000 00:00 0
b7ccd000-b7d1f000 r-xp 00000000 08:03 2066389    /usr/lib/libtiff.so.4.2.1
b7d1f000-b7d21000 rwxp 00052000 08:03 2066389    /usr/lib/libtiff.so.4.2.1
b7d21000-b7d44000 r-xp 00000000 08:03 1327464    /lib/tls/i686/cmov/libm-2.6.1.so
b7d44000-b7d46000 rwxp 00023000 08:03 1327464    /lib/tls/i686/cmov/libm-2.6.1.so
b7d46000-b7e33000 r-xp 00000000 08:03 1639849    /usr/lib/libX11.so.6.2.0
b7e33000-b7e37000 rwxp 000ed000 08:03 1639849    /usr/lib/libX11.so.6.2.0
b7e37000-b7e38000 rwxp b7e37000 00:00 0
b7e3b000-b7e42000 r-xp 00000000 08:03 1639650    /usr/lib/libXrender.so.1.3.0
b7e42000-b7e43000 rwxp 00006000 08:03 1639650    /usr/lib/libXrender.so.1.3.0
b7e43000-b7e4b000 r-xp 00000000 08:03 1639937    /usr/lib/libXcursor.so.1.0.2
b7e4b000-b7e4c000 rwxp 00007000 08:03 1639937    /usr/lib/libXcursor.so.1.0.2
b7e4c000-b7e55000 r-xp 00000000 08:03 1329064    /lib/tls/i686/cmov/libnss_files-2.6.1.so
b7e55000-b7e57000 rwxp 00008000 08:03 1329064    /lib/tls/i686/cmov/libnss_files-2.6.1.so
b7e57000-b7e58000 rwxp b7e57000 00:00 0
b7e58000-b7e5e000 r-xp 00000000 08:03 2476881    /home/juan/juanc/soft/develop/megawave2/sys/lib/unknown/libW_X11R4.so
b7e5e000-b7e5f000 rwxp 00005000 08:03 2476881    /home/juan/juanc/soft/develop/megawave2/sys/lib/unknown/libW_X11R4.so
b7e5f000-b7e60000 rwxp b7e5f000 00:00 0
b7e60000-b7f15000 r-xp 00000000 08:03 2477014    /home/juan/juanc/soft/develop/megawave2/sys/lib/unknownAborted
Answer to this message Answer to this message

Back to Message Index Back to Message Index


11 Nov 2007 Patch for version 3 (corrected) (Juan Cardelino)
             

Hi all,
      When trying the patch posted by Gabriele and Lluis, I found 
that it fails to update the cmw2 script. So I had to re-make it. 
You can find the corrected version at the following URL :
http://iie.fing.edu.uy/twiki/bin/view.cgi/Software/MegaWave
Please let me know if you have some feedback
Regards,
       Juan
Answer to this message Answer to this message

Back to Message Index Back to Message Index


11 Nov 2007 Megawave 3.01 and Ubuntu Gutsy (Juan Cardelino)
             

I've succesfully installed the new MegaWave in Ubuntu Feisty with 
the patch provided by Gabriele and Lluis. However, IN Gusty  the 
Install script fails to recognize that my machine is ix86 and puts 
everything under 'unknown'.
Can someone explain me how this detection work so I can fix it?
Thanks in advance.
Best Regards,
            Juan
Answer to this message Answer to this message


           27 Apr 2008 Re: Megawave 3.01 and Ubuntu Gutsy
                        

I have the same problem but it doesn't matter, it works well without ...


Nico.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


12 Oct 2007 Issues compiling programs in Megawave3 (Gabriele Facciolo & Lluis Garrido)
             

Hi everybody,
there are a couple of issues with the last release of Megawave 3, 
we want to comment about.

* Seems that the cmw2 preprocessor discards the -I parameter 
(include path). Fixed.

* The second issue regards the name of the modules. The light 
preprocessor enforces a naming rule for the modules:
"The module should start with a lowercase letter"
This makes harder the porting of old modules, so we changed it to: 
"The module should start with a letter".

Both issues are addressed by the following patch, that can be 
applied with the command:

 cat mw3patch.diff | patch -p 0


Enjoy
Gabriele and Lluis


*******************CODE:mw3patch.diff*********************
diff -Naur megawave2/kernel/mwplight/mwpl_tree.c megawave2.patched/kernel/mwplight/mwpl_tree.c
--- megawave2/kernel/mwplight/mwpl_tree.c       2006-02-23 16:39:57.000000000 +0100
+++ megawave2.patched/kernel/mwplight/mwpl_tree.c       2007-10-17 14:33:12.000000000 +0200
@@ -126,7 +126,7 @@
   Arg *a,*b;
   double m0,m1;
 
-  if ((H->Name[0]<'a')||(H->Name[0]>'z'))
+  if (((H->Name[0]<'a')||(H->Name[0]>'z'))&&((H->Name[0]<'A')||(H->Name[0]>'Z')))
     Error("Invalid header : incorrect module's name or missing name statement");
 
   if (strlen(H->Author)<3)
diff -Naur megawave2/kernel/shell/cmw2 megawave2.patched/kernel/shell/cmw2
--- megawave2/kernel/shell/cmw2 2007-06-15 14:20:28.000000000 +0200
+++ megawave2.patched/kernel/shell/cmw2 2007-10-17 14:31:44.000000000 +0200
@@ -260,6 +260,7 @@
 
     # MegaWave 2 preprocessor options
     -D*|-I*|-U*) MWOPTS="$MWOPTS $1"
+               COPTS="$COPTS $1"
                ;;
     -w)         MWOPTS="$MWOPTS $1"
                ;;
*************END OF CODE:mw3patch.diff*********************



Answer to this message Answer to this message

Back to Message Index Back to Message Index


27 Sep 2007 install megawave on Fedora
             

Has anyone ever tried install megawave on Fedora? Any suggestion? Thanks.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


29 Jun 2007 Ajouter une librairie sur Megawave2 (nassim)
             

Bonjour,

J'ai plusieurs programmes en C++, je veut les rajouter comme une 
librairie sur megawave, pour pouvoir les utilisés. On ma conseiller 
de faire les commandes suivantes.
g++ -O -c *.cpp
ar rus libMP.a *.o
et puis,
cmw2 -llibMP -L/tonrepertoire toto.c 
le problème est que le programme signale une erreur quand je tape la 
troisième commande. Il reconnaît pas toto.c, alors qu'il existe!! 

Remarque : je suis débutant concernent la programmation en magawave.

Je vous remercie d'avance.

Answer to this message Answer to this message

Back to Message Index Back to Message Index


3 Jun 2007 installation for PC (Anni)
             

Sorry for nai've question. But I am looking for C/C++ code
that may be used in Windows with MVC. 

I also have cygwin installed on my PC. Is it possible to install and 
compile MegaWave under Windows? 
Answer to this message Answer to this message

Back to Message Index Back to Message Index


26 Feb 2007 Ideal distro and version?
             

I have a user who desperately needs to run Megawave, however the latest 
machines are 64-bit and GCC4.

Can anyone recomend a distro/version that would be as painless as possible?

Thanks,
John
Answer to this message Answer to this message


           30 Mar 2007 Re: Ideal distro and version?
                        

Most of the current problems of megawave are due to the fact that the 
latest release is very old. Since that time, many things changed in 
linux distros, libraries and compilers. I think that you are not going 
to be able to find a painless distro, because the problems that megawave 
has are not distro specific. In my own experience the only thing that 
could alleviate a little bit the installation is using a 32 bit 
architecture, but it is not a big difference.
I've been using it in Mandriva and Ubuntu, and it is the same pain in 
the ass.
If you want to give it a try, I offer you my help to understand the 
errors.
If you want an easy and straightforward installation, forget it, this 
is not the library for you. And actually, unless megawave offers you 
a certain feature that other libraries don't, then why using it? It's 
dangerous to use out of date and unmantained libraries.
Regards,
       Juan
Answer to this message Answer to this message

Back to Message Index Back to Message Index


25 Feb 2007 an official release for gcc 4? 64 bit? (Raketemensch)
             

I do appreciate the work that people have done with releasing 
patch files, but it's a mish-mash trying to locate the ones 
that you need, and get things set up properly, etc.

Is development continuing? Will there be a full release for 
GCC4 and/or 64 bits?
Answer to this message Answer to this message

Back to Message Index Back to Message Index


16 Nov 2006 gcc 4.1 and 64 bit platform (Juan Cardelino)
             

Hi,
  I've added some tips about compiling megawave with gcc 4.1 on a 64 bit 
platform. I was able to do it succesfully in ubuntu edgy, but also in 
dapper with gcc 4.0. The procedure should work with most modern linux 
distros. You can see it at
http://iie.fing.edu.uy/twiki/bin/view.cgi/Software/SoftwareLibraries
Regards,
         Juan
Answer to this message Answer to this message


           26 Nov 2006 Re: gcc 4.1 and 64 bit platform (Juan Cardelino)
                        

Well, actually, my success with gcc4.1 in edgy is only partial, I've solved 
one problem, but now I'm stuck with another. However you can still fall back 
to gcc4.0 and make it work.
bye.
Answer to this message Answer to this message


           26 Nov 2006 Re: gcc 4.1 and 64 bit platform (Emmanuel d'Angelo)
                        

  An additional tip: the install process proposed by Juan just above works 
fine only if you choose to turn on the optimization when asked (the question 
is "Do you want to be able to debug the code ?"). If you answer yes to the 
debug question, then you'll have trouble at install level 3 whatever version 
of GCC  and of the header files you use.
Regards,
           Emmanuel
Answer to this message Answer to this message

Back to Message Index Back to Message Index


9 Nov 2006 Megawave and C++ (Juan Cardelino)
             

Some time ago Nicolas Burrus posted an example of how to implement functions 
in C++ and use them in megawave. I've tried them, and worked fine, however 
I've found some small errors. You can find a corrected version, ready to 
download and compile at:
http://iie.fing.edu.uy/twiki/bin/view.cgi/Software/SoftwareLibraries

I've tested it with gcc 4 and works fine.
I hope you can find this useful. And of course thank you very much Nicolas.
Regards,
       Juan
Answer to this message Answer to this message

Back to Message Index Back to Message Index


28 Oct 2006 compilation of megawave2 (Alain)
             

Hi!
My experiments of compiling megawave2-31a:

Compiling megawave2-31a under mandriva 10.2( gcc 3.4 )

        After patching megawave2-31a with patch for gcc 3.4 of Felipe Zipitria 
& Gabriele Facciolo, no problem, everything looks fine. All modules are 
successfully compiled.

Compiling megawave2-31a under mandriva 2006 ( gcc 4.0 )

        After patching megawave2-31a with patch for gcc 4.0  of Luis Garrido 
and Gabriele Facciolo, some modules can't be compiled :
                %Warning : the following module was not successfully compiled !
                %VP_DEMO
                #group image/seg
                %Warning : the following module was not successfully compiled !
                %msegct
                %Warning : the following module was not successfully compiled !
                %one_levelset
                %Warning : the following module was not successfully compiled !
                %segct
                %Warning : the following module was not successfully compiled !
                %segtxt
        All others compilations are successfull

In two patches, all occurences of mw1 must be replaced by megawave1 and mw2 by 
megawave2 before patching magawave2 source directory.

Sincerly yours

Alain MOREL
Answer to this message Answer to this message

Back to Message Index Back to Message Index


19 Oct 2006 compilation de magawave2 (Alain MOREL)
             

Installation de megawave2 sur mandriva 10.2
Voici les erreurs au level3 :
Module "ccopy" cannot be compiled !
Following the corresponding output. Please send these lines when reporting bugs:
--------------------------------------------------------------------------------

>>> Welcome on the MegaWave2 Compiler V1.51 <<<
Beware, the target user is the system on /root/Desktop/megawave2

  Phase 1 : MegaWave2 preprocessor
ccopy.c :
/usr/include/bits/types.h : syntax error line 51
/usr/include/sys/sysmacros.h : error line 44
                               Lexical error : '~' is a bad item
/usr/include/sys/sysmacros.h : error line 50
                               Lexical error : '~' is a bad item
/usr/include/sys/sysmacros.h : error line 57
                               Lexical error : '~' is a bad item
/usr/include/sys/sysmacros.h : error line 58
                               Lexical error : '~' is a bad item
fatal error : 5 error detected. Stop.
Exit.
--------------------------------------------------------------------------------
***** Modules cannot be compiled ! It means something went wrong during the 
kernel installation stage...
***** Abort mwinstall at level 3.
Quelqu'un a t'il une idée ?
Merci d'avance
Answer to this message Answer to this message


           1 Nov 2006 Re: compilation de magawave2
                        

Il faut recopier les fichier *.h incrimines sous:
$MEGAWAVE2/kernel/lib/include/Linux
$MEGAWAVE2/sys/include/Linux

(aux deux endroits)

par exmples (pour bits/types.h)

mkdir $MEGAWAVE2/kernel/lib/include/Linux/bits
mkdir $MEGAWAVE2/sys/include/Linux/bits
cp /usr/include/bits/types.h $MEGAWAVE2/kernel/lib/include/Linux/bits
cp /usr/include/bits/types.h $MEGAWAVE2/sys/include/Linux/bits

modifier ces fichiers de maniere a eliminer les causes d'erreur (megawave 
n'aime pas les commentaires qui commencent par // par exemple)

relancer le processus d'installation (sans ecraser le repertoire $MEGAWAVE2, 
juste relancer ./Install a la racine du repertoire $MEGAWAVE2).

Answer to this message Answer to this message

Back to Message Index Back to Message Index


30 Apr 2006 Fonction variadique (Stéphane)
             

Bonjour,
lors de la compilation d'un programme en C contenant une fonction 
variadique, tout marche.
Après ajout des en-têtes qui vont bien, le même programme ne compile pas 
en megawave :

  Phase 1 : MegaWave2 preprocessor
test1.c :
test1.c : syntax error line 35
fatal error : 1 error detected. Stop.
Exit.
Errors are detected. Type + to execute lint on test1.c...

L'erreur détectée se trouve toujours là où se trouve la commande 'va_arg'.
Comment faire pour résoudre ce problème ?
Merci 

PS : Une foncion variadique est une fonction dont le nombre d'arguments 
n'est pas fixé à l'avance (comme 'printf' par exemple)

Answer to this message Answer to this message

Back to Message Index Back to Message Index


28 Apr 2006 fderiv et consistance (Ladjal)
             

Bonjour,

je calcule, en utilisant fderiv, la courbure(K), la norme du gradient(N), 
le filtre de canny(C) et le laplacien(L). 

 normalement on devrait avoir: 
L=K*N+C*N (d'apres les formules accessibles dans l'aide de fderiv) 
(j'espere que je ne me trompe pas)

 Or, je n'obtiens jamais ca, pas meme avec une image dont le gradient 
n'est jamais nul. 

 Comment utiliser fderiv (ou une autre commande megawave) pour obtenir 
un resultat consistant (i.e. qui respecte la formule du haut)?

Merci de vos lumieres.

Answer to this message Answer to this message

Back to Message Index Back to Message Index


15 Apr 2006 Inclure programme C externe
             

Bonjour,

j'aimerais faire quelquechose qui me semblait simple, mais je n'y arrive 
pas. Je voudrais :
* utiliser quelques fonctions d'un programme C externe (disons 
'externe.c') dans un fichier megawave ('mw.c' par exemple)
* ne pas recompiler le fichier 'mw.c' à chaque fois que je modifie le 
'externe.c' (sinon il y avait la solution de faire '#include "externe.c"' 
dans 'mw.c', mais la compilation devient lourde)

J'ai essayé d'utiliser des libraires dynamiques, statiques (.h, .o, 
.so ,...) mais je n'ai rien compris, car je ne suis pas très fort en C.

Merci par avance de votre aide.
Answer to this message Answer to this message


           29 Apr 2006 Re: Inclure programme C externe (Ladjal)
                        

Sous linux les choses suivantes devrait marcher:

compiler le programme externe sous forme de librairie dynamique.

 gcc -shared -Wl,-soname,libprogdummy.so -o libprogdummy.so 
progdummy.c

(tout sur la meme ligne)

deplacer libprogdummy.so dans un repertoire pointe par LD_LIBRARY_PATH 
(par exemple /usr/local/lib, le rajouter s'il n'est pas encore pris en 
compte dans LD_LIBRARY_PATH)
compiler le programme megawave:

cmw2 -L/repertoire/ou/se/trouve/lelibprogdummy  -lprogdummy 
module_megawave.c  

 Ne pas oublier de mettre les bonnes declarations de fonction dans 
module_megawave.c (eventuellement, creer progdummy.h qui sera inclus 
par tout programme accedant aux fonctions de progdummy.c)

Et voila. Chaque nouvelle compilation de la librairie dynamique sera 
prise en compte par votre module_megawave, sans avoir a le recompiler.

Answer to this message Answer to this message

Back to Message Index Back to Message Index


14 Apr 2006 Utiliser un programme C externe
             

Bonjour,

je suis face un problème assez simple, mais je n'arrive pas le résoudre. 
Je voudrais que :
* mon programme en mw (disons 'mw.c') puisse utiliser des fonctions 
codées dans un autre fichier .c (langage C, pas C++), disons 'autre.c'. 
Ma fonction s'appelle par exemple :
int test(int x) ;
* ne pas avoir à compiler le prg 'mw.c' à chaque fois que je change 
'autre.c'

Il y a bien sûr la solution de faire #include autre.c dans le fichier 
'mw.c'.  Mais cette solution se révèle lourde en temps de compilation.
J'ai essayé de faire des librairies statiques ou dynamiques en C, mais 
je ne m'y connais pas trop bien, et je n'ai pas réussi.

Pouvez-vous m'aider ?
Merci par avance
Answer to this message Answer to this message

Back to Message Index Back to Message Index


6 Apr 2006 erreur (compilation) en Ubuntu-breezy (MarC)
             

Bonjour, je suis noveau dans mw mais je ne peux pas meme commencer a 
l'utilizer.
J'ai des problemes en installant mw avec Ubuntu breezy (avec quelques 
upgrades de dapper).
Je utilize le script "Install" et le C compiler me donne un erreru. 
Je crois que l'erreur prinicpal est:

fillmwarg.c:597: error: invalid storage class for function 'iotype'

mais je ne le comprends pas.
Pourrais vous m'aider un peu a voir une solution pour ce probleme?

Merci beaucoup et excusez mon français: je fais ce que je peux...

voice les messages de compilation:

gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI -DXMWP -DLinux -DFLEX 
-O -c io.c -o /home/marc/procimatge/megawave2/kernel_obj/mwp/obj/ix86/io.o
io.c: In function 'yyerrmsg':
io.c:125: warning: incompatible implicit declaration of built-in 
function 'strlen'
io.c:133: warning: incompatible implicit declaration of built-in 
function 'strlen'
io.c: In function 'int_error':
io.c:160: warning: incompatible implicit declaration of built-in 
function 'strlen'
io.c: In function 'warning':
io.c:200: warning: incompatible implicit declaration of built-in 
function 'strlen'
io.c: In function 'error':
io.c:271: warning: incompatible implicit declaration of built-in 
function 'strlen'
io.c: In function 'fatal_error':
io.c:344: warning: incompatible implicit declaration of built-in 
function 'strlen'
gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI -DXMWP -DLinux -DFLEX 
-O -c bintree.c -o /home/marc/procimatge/megawave2/kernel_obj/mwp/obj/ix86/bintree.o
bintree.c: In function 'mknode':
bintree.c:28: warning: incompatible implicit declaration of built-in 
function 'malloc'
bintree.c: In function 'mkleaf':
bintree.c:87: warning: incompatible implicit declaration of built-in 
function 'malloc'
gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI -DXMWP -DLinux -DFLEX 
-O -c fillmwarg.c -o /home/marc/procimatge/megawave2/kernel_obj/mwp/obj/ix86/fillmwarg.o
fillmwarg.c: In function 'set_desc':
fillmwarg.c:185: warning: incompatible implicit declaration of 
built-in function 'bzero'
fillmwarg.c: In function 'set_option':
fillmwarg.c:329: error: invalid storage class for function 'iotype'
fillmwarg.c:395: warning: assignment makes pointer from integer 
without a cast
fillmwarg.c: In function 'set_flag':
fillmwarg.c:417: error: invalid storage class for function 'iotype'
fillmwarg.c:453: warning: assignment makes pointer from integer 
without a cast
fillmwarg.c: In function 'set_neededarg':
fillmwarg.c:479: error: invalid storage class for function 'iotype'
fillmwarg.c:574: warning: assignment makes pointer from integer 
without a cast
fillmwarg.c: In function 'set_optarg':
fillmwarg.c:597: error: invalid storage class for function 'iotype'
fillmwarg.c:675: warning: assignment makes pointer from integer 
without a cast
fillmwarg.c: In function 'set_vararg':
fillmwarg.c:697: error: invalid storage class for function 'iotype'
fillmwarg.c:734: warning: assignment makes pointer from integer 
without a cast
fillmwarg.c: In function 'set_notusedarg':
fillmwarg.c:796: error: invalid storage class for function 'iotype'
fillmwarg.c: In function 'set_mwfunc':
fillmwarg.c:842: warning: incompatible implicit declaration of 
built-in function 'strlen'
fillmwarg.c:843: warning: incompatible implicit declaration of 
built-in function 'strcpy'
fillmwarg.c: In function 'troptarg':
fillmwarg.c:886: warning: incompatible implicit declaration of 
built-in function 'bzero'
fillmwarg.c: In function 'trarg':
fillmwarg.c:1050: warning: incompatible implicit declaration of 
built-in function 'bzero'
fillmwarg.c: At top level:
fillmwarg.c:1246: error: conflicting types for 'iotype'
fillmwarg.c:395: error: previous implicit declaration of 'iotype' 
was here
fillmwarg.c: In function 'iotype':
fillmwarg.c:1325: warning: incompatible implicit declaration of 
built-in function 'bzero'
fillmwarg.c: In function 'set_scalar_default':
fillmwarg.c:2217: warning: incompatible implicit declaration of 
built-in function 'bzero'
fillmwarg.c: In function 'set_interval':
fillmwarg.c:2251: warning: incompatible implicit declaration of 
built-in function 'bzero'
make: *** [/home/marc/procimatge/megawave2/kernel_obj/mwp/obj/ix86/fillmwarg.o] 
Error 1
*** Error in 'make all' ! Abort mwp Install. ***
=== Error in mwp Install ! Abort kernel Install. ===
***** Error while compiling kernel !
***** Abort mwinstall at level 2.
+++++ Installation NOT COMPLETE using
+++++      /home/marc/procimatge/megawave2/kernel/shell/mwinstall  
-clear /home/marc/procimatge/megawave2
+++++ Try to fix the problem (look at 
'/home/marc/procimatge/megawave2/Install.log') and rerun mwinstall.
+++++ If mwinstall has failed at a level greater than 1, you may 
save time
+++++ by adding the parameter '-level l'. In that case, make sure
+++++ your environment variables are correctly set.
+++++ The environment variables you need are initialized in the 
following files :
+++++ /home/marc/procimatge/megawave2/sys/lib/ix86/.profile_adm_megawave2 
(Profile for Bourne-compatible shells)
+++++ /home/marc/procimatge/megawave2/sys/lib/ix86/.cshrc_adm_megawave2 
(Csh for C-compatible shells)

Answer to this message Answer to this message


           16 Apr 2006 Re: erreur (compilation) en Ubuntu-breez (Yann)
                        

j'ai installé mw sur une unbuntu de la façon suivante :

1) utiliser gcc-3.3 pour la compilation au lieu du gcc par défaut de 
la distribution (version 4.0.2). 
gcc-3.3 peut se recupérer en utilisant synaptic. Il s'agit de la 
version 3.3.6

2) appliquer le premier patch posté sur ce forum par Gabriele 
Facciolo :
http://www.fing.edu.uy/~facciolo/patch_gcc3.4_MegaWave2_V2.31a.diff.gz
le deziper dans le repertoire d'installation et appliquer
cat patch_gcc3.4_MegaWave2_V2.31a.diff | patch -p1

Answer to this message Answer to this message


                      18 Oct 2007 Re: Re: erreur (compilation) en Ubuntu-b (Odalric)
                                   

Bonjour,

1. Comment spécifier à mw la version du compilateur à utiliser ? 
(j'ai gcc 4.1.2 et çe ne compile pas)

2. Le patch ne s'applique pas sur ma machine (ubuntu 7.04):

patching file kernel/lib/include/mw.h
Hunk #1 succeeded at 41 (offset 4 lines).
patching file kernel/mwp/main.c
patching file src/image/level_lines/flstb_quantize.c
Hunk #1 FAILED at 3.
1 out of 1 hunk FAILED -- saving rejects to file 
src/image/level_lines/flstb_quantize.c.rej
patching file src/image/level_lines/flst_pixels.c
Hunk #1 FAILED at 3.
1 out of 1 hunk FAILED -- saving rejects to file 
src/image/level_lines/flst_pixels.c.rej

3.  Est-il possible d'avoir une liste exhaustive des librairies 
et programmes nécessaires à l'installation (j'ai tout ce qui est 
indiqué dans le readme et ça ne suffit visiblement pas) ?

Merci,
Odalric

Answer to this message Answer to this message

Back to Message Index Back to Message Index


31 Mar 2006 MegaWave on MacOS X 10.4.2 Tiger (rafael)
             

Hello!

I am trying to install MegaWave in a Apple iBook G4 running MacOS X 10.4.2
Tiger.

I guess I have BSD base and DevTools packages as installed
XcodeTools 2.0 that includes BSDSDK, DeveloperTools. It also
includes X11SDK, gcc3.3 and gcc4.0. I also installed X11 server.

I added Fink with libjpeg, libtiff and libtiff-shlibs.
I downloaded the Darwin version of MegaWave from
http://tsi.enst.fr/~ladjal/MegaWave2_V2.31a.Darwin.tgz.

The I try compiling using gcc3.3 and using the patch for
gcc 4.0. In both cases I get the same error at level 3:

|
| *****************************************
| ***** Level 3 : Compile the modules *****
| *****************************************
| Module "ccopy" cannot be compiled !
| Following the corresponding output. Please send these lines when reporting 
bugs:
| 
-----------------------------------------------------------------
---------------
|  
| >>> Welcome on the MegaWave2 Compiler V1.51 <<<
| Beware, the target user is the system on /Users/jirafa/megawave2
|  
|   Phase 1 : MegaWave2 preprocessor
| ccopy.c :
| /usr/include/ppc/_types.h : parse error line 73
| fatal error : 1 error detected. Stop.
| Exit.
|

the same if I try to use "cmw2" afterwards.
The problem is that it can't find the preprocesor.
The script "call_cpp_mw_darwin" look for it at 
/usr/libexec/gcc/darwin/ppc/default/ but
default is a broken link:

|
| > ls -l /usr/libexec/gcc/darwin/ppc
| drwxr-xr-x    9 root  wheel    306B Mar 26 23:58 3.3
| drwxr-xr-x   10 root  wheel    340B Mar 26 23:58 3.3-fast
| -r-xr-xr-x    1 root  wheel    179K May 25  2005 as
| lrwxr-xr-x    1 root  wheel      3B Mar 27 00:04 default -> 4.0
|

I have no 4.0 directory! I tryied to create a 4.0 directory
with a cpp pointing to /usr/bin/cpp-4.0. In that case the error
is different: 

|
| *****************************************
| ***** Level 3 : Compile the modules *****
| *****************************************
| Module "ccopy" cannot be compiled !
| Following the corresponding output. Please send these lines when reporting 
bugs:
| 
-----------------------------------------------------------------
---------------
|  
| >>> Welcome on the MegaWave2 Compiler V1.51 <<<
| Beware, the target user is the system on /Users/jirafa/megawave2
|  
|   Phase 1 : MegaWave2 preprocessor
| ccopy.c :
| /usr/include/ppc/_types.h : parse error line 73
| fatal error : 1 error detected. Stop.
| Exit.
|

Now the preprocessor is found but something is going wrong.

I see in the file megawave2/kernel/mwp/Makefile the following comment:

# ----- Location where to find cpp -----
# Sur IRIX (et sans doute sur Dec Alpha), le /lib/cpp ou /usr/lib/acpp
# ne contient pas les bonnes definitions de base (#define) ce qui fait planter
# yyparse() dans des fichiers tels que /sys/types.h. 
# Solution trouvee: utiliser le preprocesseur du cc (code inscrit directement
# dans le fichier main.c). Dans ce cas, ne pas definir CPPCMD mais NOCPP.

So, I imagine is the same kind of problem with c preprocesor.
I tryed to use the IRIX code by setting "CPP = NOCPP". This gives me
some errors executing "umwp", some wrong flags to cpp. I tryed to
correct them unsuccessfully.

It seem to me that the solution is to find the correct C preprocessor to
use.

I will appreciate any hint.

best regards,
rafael

Answer to this message Answer to this message


           1 Apr 2006 Re: MegaWave on MacOS X 10.4.2 Tiger (Ladjal)
                        

Hi,

 Try to copy each *.h file that causes megawave to complain into 
$MEGAWAVE2/kernel/lib/include/Darwin
AND
$MEGAWAVE2/sys/include/Darwin

for example /usr/include/foo/bar.h should be copied to both:

$MEGAWAVE2/kernel/lib/include/Darwin/foo/bar.h
$MEGAWAVE2/sys/include/Darwin/foo/bar.h

then modifie these two files to solve the problem. (for example megawave 
does not like commentaries begining with // , beware that line numbering 
could be false, so line 73 can be 74 ou 77...)

then recompile the module. If cmw2 still complains about another file, redo 
the previous operations for the new problem-file.

 But, I think (i do not remeber exactly), I already did it (only tested Tiger 
for 30 minnutes) but then something kept not working (at execution). I decided 
to not switch to Tiger for that reason.

 If you find the problem and solve it, please share your knowledge. 

Good luck!

Answer to this message Answer to this message

Back to Message Index Back to Message Index


16 Feb 2006 modules not compiled with gcc-4.0.1
             

bonjour, je viens d'installer MW sur une mandriva 2006 avec gcc 
version 4.0.1 et j'ai quelques modules qui n'ont pas pu être 
compilés: voici les rapports...
cmw2 -gnu -O segct.c

>>> Welcome on the MegaWave2 Compiler V1.51 <<<
Beware, the target user is the system on /home/florent/megawave2

  Phase 1 : MegaWave2 preprocessor
segct.c :
done.
  Phase 2 : production of sources and objects
          production of document squeleton (doc/obj/segct.doc)
          production of arguments analyser object
          production of module object
segct.c: In function 'RegCanalInit':
segct.c:135: error: invalid storage class for function 'SomGris'
segct.c: At top level:
segct.c:141: error: conflicting types for 'SomGris'
segct.c:138: error: previous implicit declaration of 'SomGris' 
was here
segct.c: In function 'init_heap':
segct.c:197: error: invalid storage class for function 
'eval_lambda'
segct.c: In function 'update_heap':
segct.c:218: error: invalid storage class for function 
'eval_lambda'
segct.c: In function 'Initialisation':
segct.c:323: error: invalid storage class for function 
'InitPixel'
segct.c:323: error: invalid storage class for function 
'RegCanalInit'
segct.c:324: error: invalid storage class for function 
'BorCanalInit'
segct.c: In function 'RegMerge':
segct.c:531: error: invalid storage class for function 
'LiBordsUnion'
segct.c:531: error: invalid storage class for function 
'ElimBordeSom'

segct.c:531: error: invalid storage class for function 
'DegreSommet'
segct.c:531: error: invalid storage class for function 
'ElimLiReg'
segct.c:531: error: invalid storage class for function 
'UnionBordCnxe'
segct.c: At top level:
segct.c:554: warning: conflicting types for 'ElimLiReg'
segct.c:554: error: static declaration of 'ElimLiReg' follows 
non-static declaration
segct.c:537: error: previous implicit declaration of 'ElimLiReg'
was here
segct.c:577: warning: conflicting types for 'LiBordsUnion'
segct.c:577: error: static declaration of 'LiBordsUnion' follows
non-static declaration
segct.c:539: error: previous implicit declaration of 
'LiBordsUnion' was here
segct.c:707: warning: conflicting types for 'ElimBordeSom'
segct.c:707: error: static declaration of 'ElimBordeSom' follows
non-static declaration
segct.c:541: error: previous implicit declaration of 
'ElimBordeSom' was here
segct.c:738: warning: conflicting types for 'DegreSommet'
segct.c:738: error: static declaration of 'DegreSommet' follows 
non-static declaration
segct.c:549: error: previous implicit declaration of 
'DegreSommet' was here
segct.c: In function 'DegreSommet':
segct.c:743: error: invalid storage class for function 
'Union1Bord'
segct.c:743: error: invalid storage class for function 
'Union2Bords'
segct.c: At top level:
segct.c:753: warning: conflicting types for 'Union1Bord'
segct.c:753: error: static declaration of 'Union1Bord' follows 
non-static declaration
segct.c:750: error: previous implicit declaration of 
'Union1Bord' was here
segct.c: In function 'Union1Bord':
segct.c:758: error: invalid storage class for function 
'LiPixelsUnion'
segct.c:786: warning: assignment makes pointer from integer 
without a cast
segct.c:787: warning: assignment makes pointer from integer 
without a cast
segct.c: At top level:
segct.c:796: warning: conflicting types for 'Union2Bords'
segct.c:796: error: static declaration of 'Union2Bords' follows 
non-static declaration
segct.c:751: error: previous implicit declaration of 
'Union2Bords' was here
segct.c: In function 'Union2Bords':
segct.c:803: error: invalid storage class for function 
'Repointer'
segct.c:803: error: invalid storage class for function 
'ElimBordeReg'
segct.c:808: error: invalid storage class for function 
'LiPixelsUnion'
segct.c:885: warning: assignment makes pointer from integer 
without a cast
segct.c:886: warning: assignment makes pointer from integer 
without a cast
segct.c:890: warning: assignment makes pointer from integer 
without a cast
segct.c:891: warning: assignment makes pointer from integer 
without a cast
segct.c: At top level:
segct.c:902: warning: conflicting types for 'UnionBordCnxe'
segct.c:902: error: static declaration of 'UnionBordCnxe' 
follows non-static declaration
segct.c:551: error: previous implicit declaration of 
'UnionBordCnxe' was here
segct.c: In function 'UnionBordCnxe':
segct.c:906: error: invalid storage class for function 
'Repointer'
segct.c: At top level:
segct.c:966: warning: conflicting types for 'Repointer'
segct.c:966: error: static declaration of 'Repointer' follows 
non-static declaration
segct.c:875: error: previous implicit declaration of 'Repointer'
was here
segct.c:993: warning: conflicting types for 'ElimBordeReg'
segct.c:993: error: static declaration of 'ElimBordeReg' follows
non-static declaration
segct.c:895: error: previous implicit declaration of 
'ElimBordeReg' was here
segct.c:1009: error: conflicting types for 'LiPixelsUnion'
segct.c:786: error: previous implicit declaration of 
'LiPixelsUnion' was here
segct.c:1028: error: conflicting types for 'eval_lambda'
segct.c:198: error: previous implicit declaration of 
'eval_lambda' was here
segct.c: In function 'segment':
segct.c:1060: error: invalid storage class for function 
'RegMerge'
segct.c: In function 'Dess_u':

segct.c:1162: error: invalid storage class for function 'RegAdjD'
segct.c:1162: error: invalid storage class for function 
'RegAdjB'
segct.c:1169: warning: assignment makes pointer from integer 
without a cast
segct.c:1173: warning: assignment makes pointer from integer 
without a cast
segct.c: At top level:
segct.c:1179: error: conflicting types for 'RegAdjD'
segct.c:1169: error: previous implicit declaration of 'RegAdjD' 
was here
segct.c:1216: error: conflicting types for 'RegAdjB'
segct.c:1174: error: previous implicit declaration of 'RegAdjB' 
was here
segct.c: In function 'BlackBound':
segct.c:1257: error: invalid storage class for function 
'TraitHVmono'
segct.c: At top level:
segct.c:1291: error: conflicting types for 'TraitHVmono'
segct.c:1281: error: previous implicit declaration of 
'TraitHVmono' was here
          Error : exit.

cmw2 -gnu -O msegct.c

>>> Welcome on the MegaWave2 Compiler V1.51 <<<
Beware, the target user is the system on /home/florent/megawave2

  Phase 1 : MegaWave2 preprocessor
msegct.c :
done.
  Phase 2 : production of sources and objects
          production of document squeleton (doc/obj/msegct.doc)
          production of arguments analyser object
          production of module object
msegct.c: In function 'RegCanalInit':
msegct.c:141: error: invalid storage class for function 
'SomGris'
msegct.c: At top level:
msegct.c:147: warning: conflicting types for 'SomGris'
msegct.c:147: error: static declaration of 'SomGris' follows 
non-static declaration
msegct.c:144: error: previous implicit declaration of 'SomGris' 
was here
msegct.c: In function 'init_heap':
msegct.c:215: error: invalid storage class for function 
'eval_lambda'
msegct.c: In function 'update_heap':
msegct.c:236: error: invalid storage class for function 
'eval_lambda'
msegct.c: In function 'Initialisation':
msegct.c:333: error: invalid storage class for function 
'InitPixel'
msegct.c:333: error: invalid storage class for function 
'RegCanalInit'
msegct.c:334: error: invalid storage class for function 
'BorCanalInit'
msegct.c: In function 'RegMerge':
msegct.c:545: error: invalid storage class for function 
'LiBordsUnion'
msegct.c:545: error: invalid storage class for function 
'ElimBordeSom'
msegct.c:545: error: invalid storage class for function 
'DegreSommet'
msegct.c:545: error: invalid storage class for function 
'ElimLiReg'
msegct.c:545: error: invalid storage class for function 
'UnionBordCnxe'
msegct.c: At top level:
msegct.c:568: warning: conflicting types for 'ElimLiReg'
msegct.c:568: error: static declaration of 'ElimLiReg' follows 
non-static declaration
msegct.c:551: error: previous implicit declaration of 
'ElimLiReg' was here
msegct.c:591: warning: conflicting types for 'LiBordsUnion'
msegct.c:591: error: static declaration of 'LiBordsUnion' 
follows non-static declaration
msegct.c:553: error: previous implicit declaration of 
'LiBordsUnion' was here
msegct.c:721: warning: conflicting types for 'ElimBordeSom'
msegct.c:721: error: static declaration of 'ElimBordeSom' 
follows non-static declaration
msegct.c:555: error: previous implicit declaration of 
'ElimBordeSom' was here
msegct.c:752: warning: conflicting types for 'DegreSommet'
msegct.c:752: error: static declaration of 'DegreSommet' 
follows non-static declaration
msegct.c:563: error: previous implicit declaration of 
'DegreSommet' was here
msegct.c: In function 'DegreSommet':
msegct.c:757: error: invalid storage class for function 
'Union1Bord'
msegct.c:757: error: invalid storage class for function 
'Union2Bords'
msegct.c: At top level:
msegct.c:767: warning: conflicting types for 'Union1Bord'
msegct.c:767: error: static declaration of 'Union1Bord' follows 
non-static declaration
msegct.c:764: error: previous implicit declaration of 
'Union1Bord' was here
msegct.c: In function 'Union1Bord':
msegct.c:772: error: invalid storage class for function 
'LiPixelsUnion'
msegct.c:800: warning: assignment makes pointer from integer 
without a cast
msegct.c:801: warning: assignment makes pointer from integer 
without a cast
msegct.c: At top level:
msegct.c:810: warning: conflicting types for 'Union2Bords'
msegct.c:810: error: static declaration of 'Union2Bords' follows
non-static declaration
msegct.c:765: error: previous implicit declaration of 
'Union2Bords' was here
msegct.c: In function 'Union2Bords':
msegct.c:817: error: invalid storage class for function 
'Repointer'
msegct.c:817: error: invalid storage class for function 
'ElimBordeReg'
msegct.c:822: error: invalid storage class for function 
'LiPixelsUnion'
msegct.c:899: warning: assignment makes pointer from integer 
without a cast
msegct.c:900: warning: assignment makes pointer from integer 
without a cast
msegct.c:904: warning: assignment makes pointer from integer 
without a cast
msegct.c:905: warning: assignment makes pointer from integer 
without a cast
msegct.c: At top level:
msegct.c:916: warning: conflicting types for 'UnionBordCnxe'
msegct.c:916: error: static declaration of 'UnionBordCnxe' 
follows non-static declaration
msegct.c:565: error: previous implicit declaration of 
'UnionBordCnxe' was here
msegct.c: In function 'UnionBordCnxe':
msegct.c:920: error: invalid storage class for function 
'Repointer'
msegct.c: At top level:
msegct.c:980: warning: conflicting types for 'Repointer'
msegct.c:980: error: static declaration of 'Repointer' follows 
non-static declaration
msegct.c:889: error: previous implicit declaration of 
'Repointer' was here
msegct.c:1007: warning: conflicting types for 'ElimBordeReg'
msegct.c:1007: error: static declaration of 'ElimBordeReg' 
follows non-static declaration
msegct.c:909: error: previous implicit declaration of 
'ElimBordeReg' was here
msegct.c:1023: error: conflicting types for 'LiPixelsUnion'
msegct.c:800: error: previous implicit declaration of 
'LiPixelsUnion' was here
msegct.c:1041: error: conflicting types for 'eval_lambda'
msegct.c:216: error: previous implicit declaration of 
'eval_lambda' was here
msegct.c: In function 'segment':
msegct.c:1076: error: invalid storage class for function 
'RegMerge'
msegct.c: In function 'Dess_u':
msegct.c:1178: error: invalid storage class for function 
'RegAdjD'
msegct.c:1178: error: invalid storage class for function 
'RegAdjB'
msegct.c:1187: warning: assignment makes pointer from integer 
without a cast
msegct.c:1192: warning: assignment makes pointer from integer 
without a cast
msegct.c: At top level:
msegct.c:1199: error: conflicting types for 'RegAdjD'
msegct.c:1187: error: previous implicit declaration of 'RegAdjD'
was here
msegct.c:1236: error: conflicting types for 'RegAdjB'
msegct.c:1193: error: previous implicit declaration of 'RegAdjB'
was here
msegct.c: In function 'BlackBound':
msegct.c:1278: error: invalid storage class for function 
'TraitHVmono'
msegct.c: At top level:
msegct.c:1311: error: conflicting types for 'TraitHVmono'
msegct.c:1301: error: previous implicit declaration of 
'TraitHVmono' was here
          Error : exit.

segtxt n'est pas compilé car dépend de msegct...

et
cmw2 -gnu -O one_levelset.c

>>> Welcome on the MegaWave2 Compiler V1.51 <<<
Beware, the target user is the system on /home/florent/megawave2

  Phase 1 : MegaWave2 preprocessor
one_levelset.c :
done.
  Phase 2 : production of sources and objects
          production of document squeleton 
(doc/obj/one_levelset.doc)
          production of arguments analyser object
          production of module object
one_levelset.c: In function 'Initialisation':
one_levelset.c:167: error: invalid storage class for function 
'InitPixel'
one_levelset.c: In function 'RegMerge':
one_levelset.c:353: error: invalid storage class for function 
'LiBordsUnion'
one_levelset.c:353: error: invalid storage class for function 
'ElimBordeSom'

one_levelset.c:353: error: invalid storage class for function 
'DegreSommet'
one_levelset.c:353: error: invalid storage class for function 
'ElimLiReg'
one_levelset.c:353: error: invalid storage class for function 
'UnionBordCnxe'
one_levelset.c: At top level:
one_levelset.c:374: warning: conflicting types for 'ElimLiReg'
one_levelset.c:374: error: static declaration of 'ElimLiReg' 
follows non-static declaration
one_levelset.c:358: error: previous implicit declaration of 
'ElimLiReg' was here
one_levelset.c:397: warning: conflicting types for 
'LiBordsUnion'
one_levelset.c:397: error: static declaration of 'LiBordsUnion' 
follows non-static declaration
one_levelset.c:360: error: previous implicit declaration of 
'LiBordsUnion' was here
one_levelset.c:527: warning: conflicting types for 
'ElimBordeSom'
one_levelset.c:527: error: static declaration of 'ElimBordeSom' 
follows non-static declaration
one_levelset.c:362: error: previous implicit declaration of 
'ElimBordeSom' was here
one_levelset.c:558: warning: conflicting types for 'DegreSommet'
one_levelset.c:558: error: static declaration of 'DegreSommet' 
follows non-static declaration
one_levelset.c:369: error: previous implicit declaration of 
'DegreSommet' was here
one_levelset.c: In function 'DegreSommet':
one_levelset.c:563: error: invalid storage class for function 
'Union1Bord'
one_levelset.c:563: error: invalid storage class for function 
'Union2Bords'
one_levelset.c: At top level:
one_levelset.c:573: warning: conflicting types for 'Union1Bord'
one_levelset.c:573: error: static declaration of 'Union1Bord' 
follows non-static declaration
one_levelset.c:570: error: previous implicit declaration of 
'Union1Bord' was here
one_levelset.c: In function 'Union1Bord':
one_levelset.c:578: error: invalid storage class for function 
'LiPixelsUnion'
one_levelset.c:606: warning: assignment makes pointer from 
integer without a cast
one_levelset.c:607: warning: assignment makes pointer from 
integer without a cast
one_levelset.c: At top level:
one_levelset.c:616: warning: conflicting types for 'Union2Bords'
one_levelset.c:616: error: static declaration of 'Union2Bords' 
follows non-static declaration
one_levelset.c:571: error: previous implicit declaration of 
'Union2Bords' was here
one_levelset.c: In function 'Union2Bords':
one_levelset.c:623: error: invalid storage class for function 
'Repointer'
one_levelset.c:623: error: invalid storage class for function 
'ElimBordeReg'
one_levelset.c:628: error: invalid storage class for function 
'LiPixelsUnion'
one_levelset.c:701: warning: assignment makes pointer from 
integer without a cast
one_levelset.c:702: warning: assignment makes pointer from 
integer without a cast
one_levelset.c:706: warning: assignment makes pointer from 
integer without a cast
one_levelset.c:707: warning: assignment makes pointer from 
integer without a cast
one_levelset.c: At top level:
one_levelset.c:717: warning: conflicting types for 
'UnionBordCnxe'
one_levelset.c:717: error: static declaration of 'UnionBordCnxe'
follows non-static declaration
one_levelset.c:371: error: previous implicit declaration of 
'UnionBordCnxe' was here
one_levelset.c: In function 'UnionBordCnxe':
one_levelset.c:721: error: invalid storage class for function 
'Repointer'
one_levelset.c: At top level:
one_levelset.c:779: warning: conflicting types for 'Repointer'
one_levelset.c:779: error: static declaration of 'Repointer' 
follows non-static declaration
one_levelset.c:691: error: previous implicit declaration of 
'Repointer' was here
one_levelset.c:806: warning: conflicting types for 
'ElimBordeReg'
one_levelset.c:806: error: static declaration of 'ElimBordeReg' 
follows non-static declaration
one_levelset.c:711: error: previous implicit declaration of 
'ElimBordeReg' was here
one_levelset.c:822: error: conflicting types for 'LiPixelsUnion'
one_levelset.c:606: error: previous implicit declaration of 
'LiPixelsUnion' was here
one_levelset.c: In function 'segment':
one_levelset.c:847: error: invalid storage class for function 
'RegMerge'
one_levelset.c: In function 'BlackBound':
one_levelset.c:1016: error: invalid storage class for function 
'TraitHVmono'
one_levelset.c: At top level:
one_levelset.c:1046: error: conflicting types for 'TraitHVmono'
one_levelset.c:1039: error: previous implicit declaration of 
'TraitHVmono' was here
one_levelset.c: In function 'cDess_u_LS':
one_levelset.c:1089: error: invalid storage class for function 
'RegAdjD'
one_levelset.c:1089: error: invalid storage class for function 
'RegAdjB'
one_levelset.c:1096: warning: assignment makes pointer from 
integer without a cast
one_levelset.c:1100: warning: assignment makes pointer from 
integer without a cast
one_levelset.c: In function 'fDess_u_LS':
one_levelset.c:1113: error: invalid storage class for function 
'RegAdjD'
one_levelset.c:1113: error: invalid storage class for function 
'RegAdjB'
one_levelset.c:1120: warning: assignment makes pointer from 
integer without a cast
one_levelset.c:1124: warning: assignment makes pointer from 
integer without a cast
one_levelset.c: At top level:
one_levelset.c:1130: error: conflicting types for 'RegAdjD'
one_levelset.c:1096: error: previous implicit declaration of 
'RegAdjD' was here
one_levelset.c:1167: error: conflicting types for 'RegAdjB'
one_levelset.c:1101: error: previous implicit declaration of 
'RegAdjB' was here
          Error : exit.
Merci d'avance si vous avez des suggestions,

Answer to this message Answer to this message

Back to Message Index Back to Message Index


11 Feb 2006 Input image and LoadH/SaveH functions (Eric)
             

Hello,

My name is Eric and I'm currently working on MegaWave. I have two 
questions: 

_ In which format I get the input images?? Is it an array of pixels 
values? If yes, how are they stored in the array?

_ Have you already seen loadH/saveH functions or structures? It seems 
that it's for loading and saving H from file but which file???


Answer to this message Answer to this message


           3 Mar 2006 Re: Input image and LoadH/SaveH functions (Ladjal)
                        

For image format, read the files:

$MEGAWAVE/sys/include/fimage.h  (float valued images)
or 
$MEGAWAVE/sys/include/cimage.h (char valued images)

 if im is a variable containing an image (pointer to a structure), then the 
values are stored in on single array called im->gray (line after line).

im->gray[3*im->ncol+5] 

is the 6th pixel of the 4th line in the image. (provided that im->nrow is 
bigger or equal to 4 and im->ncol is bigger or equal to 6, of course)

 Megawave reads an image file and converts it to a unique format so that your 
code can be universal. The counter part is that you can not access images by 
blocks or lines, instead the hole image is loaded into memory. 

 To test if a given format is known to Megawave just type:

fview MYIMAGE.my_beautiful_for.mat

 If the image is properly displayed then this particular format will work with 
any megawave module.

LoadH/SaveH -> never heard of these. But again, you are not suposed to save 
or load images explicitly in a megawave module, it is a transparent process.

Answer to this message Answer to this message

Back to Message Index Back to Message Index


29 Nov 2005 setup in Mandriva 2006 + intel 64 bit (Young)
             

Is there anyone who has done this successfully?
I always has some problem even I used the patch for gcc4.0
Answer to this message Answer to this message

Back to Message Index Back to Message Index


22 Nov 2005 how to view Shape in the Shapes of flst (Matthew)
             

hi all
  i use flst to apply a leveset transformation of my image as following:
  flst hand.jpg handpTree;

  now i get a Shapes named handpTree, and i want to view the shape in the 
shapes, how should i do?

  ps: the bash i used is B-bash.

Answer to this message Answer to this message


           18 Mar 2009 Re: how to view Shape in the Shapes of f
                        

i have the same problem i would like to view the result tree of flst

Answer to this message Answer to this message

Back to Message Index Back to Message Index


4 Nov 2005 gcc4 / Matlab (Thomas)
             

J'utilise beaucoup MW en coopération avec Matlab (appel des commandes 
depuis Matlab).

Je suis passé à Fedora 4 (gcc4) il y a peu, MW fonctionne maintenant 
bien sous cette version (grâce au patch donné plus bas). Mais 
apparemment, Matlab étant compilé avec une autre version de gcc (3.3), 
cela pose problème quand on appelle une fonction MW depuis Matlab...

J'essaye maintenant en vain, de forcer MW à s'installer en utilisant 
gcc3.2 (autre gcc disponible sous Fedora 4), ce qui est assez risible 
j'en conviens.

J'ai beau changer mes variables d'environnements pour spécifier un 
chemin menant à gcc32, et changer toutes les occurences de gcc/cc 
dans les makefile de MW, rien n'y fait, il semble que MW continue à 
compiler certaines choses avec gcc (la version 4, par défaut).

Si quelqu'un rencontre aussi ce problème, n'hésitez pas à me 
contacter...

Ci dessous un exemple d'erreur Matlab, quand on appelle "ccopy" par 
exemple:

>> !ccopy
ccopy: /opt/MatLab/sys/os/glnx86/libgcc_s.so.1: version `GCC_3.3' not 
found (required by /usr/lib/libstdc++.so.6)
Answer to this message Answer to this message


           8 Nov 2005 Re: gcc4 / Matlab
                        

Bonjour,
Sur ma machine, il m'a suffit de changer momentanement le lien 
symbolique dans /usr/bin de gcc (le faire pointer vers GCC 3.3 
au lieu de gcc 4), sans toucher aux Makefiles

(je n'utilise pas Matlab, mais l'erreur de lien ne semble 
correspondre qu'au programme de mw2)
Answer to this message Answer to this message


                      12 Nov 2005 Re: Re: gcc4 / Matlab (Thomas)
                                   

Bonjour

Le problème a finalement été résolu. Changer uniquement le lien sur mon 
poste ne suffisait pas, Matlab avait aussi une dépendance vers une 
librairie partagée compilée avec GCC 3.3 (libgcc_s.so.1) dans Matlab.

[root]# locate libgcc_s.so.1
/opt/MatLab/sys/os/glnx86/libgcc_s.so.1
/lib/libgcc_s.so.1
/usr/local/lib/paraview-2.2/libgcc_s.so.1
[root]# mv libgcc_s.so.1 libgcc_s.so.1.orig

A permis de forcer Matlab à ne pas appeler sa propre librairie.
Answer to this message Answer to this message


           29 Nov 2005 Re: gcc4 / Matlab (Ladjal)
                        

Vous réussissez à appeler les commandes MW directement depuis matlab en 
leur transmettant des matrices matlab à la place des images? Si oui, ça 
m'intéresse beaucoup.

 Sinon, il y a la fonction system() de matlab qui permet de lancer 
n'importe quelle commande accessible depuis le shell. Echoue-t-elle de 
la meme maniere?

 system("ccopy image1 out"); % par exemple

Answer to this message Answer to this message

Back to Message Index Back to Message Index


1 Nov 2005 Setup on AMD64 (David M)
             

Hi, 

Is there any way to install Megawave on a 64 bits machine?

Thanks!
Answer to this message Answer to this message

Back to Message Index Back to Message Index


28 Oct 2005 Install megawave2 fc4 (DjCrow)
             

Hello!
I'm having the same problem as described in post [12 Sept 2005 Fedora 
Core 4]
There's no way I can't compile! There is always an error where compiling 
the kernel.
I already have set the environment variables so that's not the problem.

That's the end of my instal log:
make: *** [/home/djcrow/megawave2/kernel_obj/mwp/obj/ix86/fillmwarg.o] 
Error 1
*** Error in 'make all' ! Abort mwp Install. ***
=== Error in mwp Install ! Abort kernel Install. ===
***** Error while compiling kernel !
***** Abort mwinstall at level 2.
+++++ Installation NOT COMPLETE using
+++++      /home/djcrow/megawave2/kernel/shell/mwinstall  -clear 
/home/djcrow/megawave2
+++++ Try to fix the problem (look at '/home/djcrow/megawave2/Install.log') 
and rerun mwinstall.
+++++ If mwinstall has failed at a level greater than 1, you may save time
+++++ by adding the parameter '-level l'. In that case, make sure
+++++ your environment variables are correctly set.
+++++ The environment variables you need are initialized in the following 
files :
+++++ /home/djcrow/megawave2/sys/lib/ix86/.profile_adm_megawave2 (Profile 
for Bourne-compatible shells)
+++++ /home/djcrow/megawave2/sys/lib/ix86/.cshrc_adm_megawave2 (Csh for 
C-compatible shells)

Please I really need this program for computer science and from now I can't 
work at home with it. 
Can somebody help me?
Thanks a lot!!!

P.D. feel free to answer me at my email
Answer to this message Answer to this message

Back to Message Index Back to Message Index


23 Oct 2005 Megawave2 under gcc 4.0 (Luis Garrido and Gabriele Facciolo)
             

Dear all,

  We have finally managed to compile Megawave2 under gcc version 4.0. 
This version of gcc is installed by default by most new distributions 
of Linux, such as Fedora Core 4. If you try to donwload the version that 
is available at Megawave2 web page, you will notice that the install 
script fails to properly compile all the libraries.

  We have posted a patch that allows to compile Megawave2 under gcc 4.0 
at the following link:

   http://www.tecn.upf.es/~garrido/patch.diff

  Please do follow the next steps to apply the patch to the original 
megawave 2.31a sources.

1) Download the *original* megawave 2.31a sources from the web
2) Untar it to a temporal directory (just in case!). Assume that the 
folder is ~/tmp/megawave2
3) Download the patch from the above mentioned site
4) cd ~/tmp/megawave2
5) cat ../patch.diff | patch -p1
   The sources are now patched! 
6) Move the patched megwave2 directory just where you want it to be and 
execute the install script.
   
We have to advise that it seems that the install script fails at the 3 
level (module compilation). The problem seems to be related to the 
order in which the modules are compiled. However, in any case, modules 
may be compiled by hand with the cmw2 script.

In our case we use Debian (unstable), but there should be no problems 
for other distributions using the same compiler. It should be noted 
that this patch does not ensure that the sources compile for previous 
versions of gcc, such as gcc 3.4 (for which a patch is also available 
in this forum) or gcc 3.3.

In our case, we have installed the following libraries in our system:

libc6-dev 2.3.5-7   The libc6, sometimes also called glibc 
libtiff3g-dev 3.5.5-7   This is the tiff library
libjpeg62-dev 6b-10     The JPEG library

Best regards, and good luck!

Luis Garrido
Gabriele Facciolo

Answer to this message Answer to this message

Back to Message Index Back to Message Index


19 Oct 2005 Installation of MW2 under Mandrakelinux (tajmouti)
             

Hi
Always in search of the way to use to install MW2 under Mandrakelinux 
10.1, the problem is located in the first step of the process 'set the 
environement' after several attempt with typing to full pathname I 
couldn't be able to provide the accurate solution to this problem, 
please if you have any way to correct this problem, send it to me as 
soon as possible I'm in need for it( thanks a lot !!!)
Well ladies and gentlemen, I am ready to start the BIG installation 
process



///////////////////////////////////////////////////////////

  /home/nabil/megawave2/kernel/shell/mwinstall  -clear 
/home/nabil/megawave2

This installation process is supposed to work on the very most common 
systems only.
In any case, remember that NOTHING is WARRANTY and please read the 
manuals, starting
with Volume 1 located at /home/nabil/megawave2/doc/guid1.dvi.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
~~~~~~~~~~~~~~~~~~~~~~~~

which: no xdvi in (/usr/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin/:\
/usr/games:/home/nabil/bin)
+++++ Press  to process...

+++++ Please watch the screen, you may have to answer to some questions 
while the installation progresses.
************************************************************************
***** Begin the MegaWave2 Installation Process (cross the fingers) *****
************************************************************************
***** ven oct 21 20:24:54 CEST 2005
*****************************************
***** Level 1 : Set the environment *****
*****************************************
Please give location of the directory where you will write new modules.
Suggested location is /home/nabil/my_megawave2. If you agree, just type 
                      .

Now type the MY_MEGAWAVE2 directory name with full pathname or  :

Search for system files location (this may take a while)...

Cannot find the directory for the X Windows include files.
Please type the location with full pathname :

Answer to this message Answer to this message

Back to Message Index Back to Message Index


10 Oct 2005 Installation of MegaWave2 Under Linux Sy (Tajmouti)
             

Hello
I need to know the best way to install Megawave2 under Linux Sys, 
because I didn't understand enough the difference between 
PRIVATE_MEGAWAVE AND PUBLIC_PUBLIC, I jsut followed the instructions 
in the guid1 but the process didn't end up, So if you have the time 
to send me a message about how to do, at my address above, in order 
to install it, It can be a great work I look forward to reading from 
you anything about this software thanks very much !!!  
Answer to this message Answer to this message

Back to Message Index Back to Message Index


8 Oct 2005 algorithme GVF (siham)
             

svp veuiller m envoyer si vous posséder l'algorithme GVF j ai juste 
son code sous matlab .
Answer to this message Answer to this message

Back to Message Index Back to Message Index


12 Sep 2005 Fedora Core 4 (Thomas)
             

Bonjour jessaie dinstaller MW sur Fedora 4, en vain. Voici mon 
message derreur, linstallation sinterrompt pendant le level 2:



*** Install done for the system library on /home/thhur/megawave2 ***

*** Install the MegaWave2 preprocessor (mwp Install) ***
Makefile configuration parameters : arch = 'Linux ix86' opt=''
Scanning ./Makefile.in and writing ./Makefile (200 lines)...........\
....................................................................\
....................................................................\
.....................................................
/bin/rm -f /home/thhur/megawave2/kernel_obj/mwp/obj/ix86/main.o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/symbol.o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/y.tab.o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/lex.yy.o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/io.o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/bintree.o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/fillmwarg.o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/omwarg.o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/odbgmwarg.o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/genmain.o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/genxmain.o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/genifile.o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/gentex.o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/mw_present.o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/printnod.o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/data_io.o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/lex.yy_.o 
lex.yy.c y.tab.c y.output y.tab
 .!
h mwp.output
gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI -DXMWP -DLinux 
-DFLEX -O -DCPPCMD=\"/lib/cpp\" -c main.c -o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/main.o
gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI -DXMWP -DLinux 
-DFLEX -O -c symbol.c -o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/symbol.o
bison -dvt mwp.y
mwp.y: conflicts: 2 shift/reduce
/bin/mv mwp.tab.c y.tab.c
/bin/mv mwp.tab.h y.tab.h
gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI -DXMWP -DLinux 
-DFLEX -O -c y.tab.c -o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/y.tab.o
flex  mwp.l
gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI -DXMWP -DLinux 
-DFLEX -O -c lex.yy.c -o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/lex.yy.o
gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI -DXMWP -DLinux 
-DFLEX -O -c io.c -o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/io.o
io.c: In function 'yyerrmsg':
io.c:125: warning: incompatible implicit declaration of 
built-in function 'strlen'
io.c:133: warning: incompatible implicit declaration of 
built-in function 'strlen'
io.c: In function 'int_error':
io.c:160: warning: incompatible implicit declaration of 
built-in function 'strlen'
io.c: In function 'warning':
io.c:200: warning: incompatible implicit declaration of 
built-in function 'strlen'
io.c: In function 'error':
io.c:271: warning: incompatible implicit declaration of 
built-in function 'strlen'
io.c: In function 'fatal_error':
io.c:344: warning: incompatible implicit declaration of 
built-in function 'strlen'
gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI -DXMWP -DLinux 
-DFLEX -O -c bintree.c -o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/bintree.o
bintree.c: In function 'mknode':
bintree.c:28: warning: incompatible implicit declaration of 
built-in function 'malloc'
bintree.c: In function 'mkleaf':
bintree.c:87: warning: incompatible implicit declaration of 
built-in function 'malloc'
gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI -DXMWP -DLinux 
-DFLEX -O -c fillmwarg.c -o 
/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/fillmwarg.o
fillmwarg.c: In function 'set_desc':
fillmwarg.c:185: warning: incompatible implicit declaration of 
built-in function 'bzero'
fillmwarg.c: In function 'set_option':
fillmwarg.c:329: error: invalid storage class for function 
'iotype'
fillmwarg.c:395: warning: assignment makes pointer from integer 
without a cast
fillmwarg.c: In function 'set_flag':
fillmwarg.c:417: error: invalid storage class for function 
'iotype'
fillmwarg.c:453: warning: assignment makes pointer from integer 
without a cast
fillmwarg.c: In function 'set_neededarg':
fillmwarg.c:479: error: invalid storage class for function 
'iotype'
fillmwarg.c:574: warning: assignment makes pointer from integer 
without a cast
fillmwarg.c: In function 'set_optarg':
fillmwarg.c:597: error: invalid storage class for function 
'iotype'
fillmwarg.c:675: warning: assignment makes pointer from integer 
without a cast
fillmwarg.c: In function 'set_vararg':
fillmwarg.c:697: error: invalid storage class for function 
'iotype'
fillmwarg.c:734: warning: assignment makes pointer from integer 
without a cast
fillmwarg.c: In function 'set_notusedarg':
fillmwarg.c:796: error: invalid storage class for function 
'iotype'
fillmwarg.c: In function 'set_mwfunc':
fillmwarg.c:842: warning: incompatible implicit declaration of 
built-in function 'strlen'
fillmwarg.c:843: warning: incompatible implicit declaration of 
built-in function 'strcpy'
fillmwarg.c: In function 'troptarg':
fillmwarg.c:886: warning: incompatible implicit declaration of 
built-in function 'bzero'
fillmwarg.c: In function 'trarg':
fillmwarg.c:1050: warning: incompatible implicit declaration of 
built-in function 'bzero'
fillmwarg.c: At top level:
fillmwarg.c:1246: error: conflicting types for 'iotype'
fillmwarg.c:395: error: previous implicit declaration of 'iotype' 
was here
fillmwarg.c: In function 'iotype':
fillmwarg.c:1325: warning: incompatible implicit declaration of 
built-in function 'bzero'
fillmwarg.c: In function 'set_scalar_default':
fillmwarg.c:2217: warning: incompatible implicit declaration of 
built-in function 'bzero'
fillmwarg.c: In function 'set_interval':
fillmwarg.c:2251: warning: incompatible implicit declaration of 
built-in function 'bzero'
make: *** 
[/home/thhur/megawave2/kernel_obj/mwp/obj/ix86/fillmwarg.o]
 Error 1
*** Error in 'make all' ! Abort mwp Install. ***
=== Error in mwp Install ! Abort kernel Install. ===
***** Error while compiling kernel !
***** Abort mwinstall at level 2.
+++++ Installation NOT COMPLETE using
+++++      /home/thhur/megawave2/kernel/shell/mwinstall  -clear 
/home/thhur/megawave2
+++++ Try to fix the problem (look at 
'/home/thhur/megawave2/Install.log') and rerun mwinstall.
+++++ If mwinstall has failed at a level greater than 1, you may 
save time
+++++ by adding the parameter '-level l'. In that case, make sure
+++++ your environment variables are correctly set.
+++++ The environment variables you need are initialized in the 
following files :
+++++ /home/thhur/megawave2/sys/lib/ix86/.profile_adm_megawave2 
(Profile for Bourne-compatible shells)
+++++ /home/thhur/megawave2/sys/lib/ix86/.cshrc_adm_megawave2 
(Csh for C-compatible shells)




Si vous avez des idees, je suis preneur !

Thomas
Answer to this message Answer to this message


           16 Sep 2005 Re: Fedora Core 4 (Ladjal)
                        

Deja, pour tout programme ou vous rencontrez un:
warning confilicting declaration ... for FOOBAR

faire:
man FOOBAR et ajouter le #include qui va bien au debut du programme 
en question (il est indique en haut de la page de man).

Cette Fedora Core 4 n'est pas une distibution 64 bits ou quelque 
chose comme ca? Les problemes semblent venir du fait que le type 
size_t n'est plus compatible avec le type int, du moins il me 
semble.

Bon courage.

Answer to this message Answer to this message

Back to Message Index Back to Message Index


8 Sep 2005 MW precompile pour Sun (Ladjal)
             

Bonjour,

 Apres avoir vainement essaye d'installer MW sur des machines Suns, 
je me demande si quelqu'un possede une version 2.31a compilee pour 
Sun qu'il pourrait mettre a disposition sur l'internet (je pense a 
l'ENS de Cachan). Ca pourrait peut-etre m'aider a identifier le 
probleme que j'ai et, qui sait, cette version marchera peut-etre 
ici.

 A votre bon coeur.

Answer to this message Answer to this message

Back to Message Index Back to Message Index


23 Aug 2005 Ridgelet
             

Hi,

i just install megawave and everything is fine. But when i launch 
ridgelet on a image i got the following error:

MegaWave2 fatal (ridgelet) : Index is greater than the number of 
rows in Image!

did i miss something? Thx.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


29 Jul 2005 filters like sp02.ir (Manuel Seeger)
             

Hello Megawave,

I'm using within grass a wavelet decomposition and recomposition tool 
programmed with help of your libraries.

For now, I'm not able to find any information about the filters sued. 
They are teh so called sp02.ir and sl05.ir.

Where can I find information, who can halp me?
Thank you!

Manuel
Answer to this message Answer to this message

Back to Message Index Back to Message Index


26 Jul 2005 how to debug megawave itself (enric)
             

How do you debug megawave?

I'm not asking about compilation symbols, I would like to change some 
function in the kernel and see the results in the next run of my 
programs.

Up to now, I have to invoke ./Install again, but this recompiles all 
the other modules and takes about 5 minutes.  On the contrary, the 
Makefile on the directory kernel/lib/src does not seem to work 
directly.

I'm sure the megawave programmers use another method to test the 
framework.

best regards,
enric
Answer to this message Answer to this message

Back to Message Index Back to Message Index


21 Jul 2005 using megawave as regular unix library (Juan Cardelino)
             

I would like to use megawave as a regular unix library. Altough, 
in a previous message it says that is possible (see quote below), 
i was unable to get it working. I'm linking against 
"-lW_X11R4 -lxmwcom -lnotiff  -lsysmw  -lmw" and including "mw.h". 
However, gcc 3.4 gives me the following error: 
/sys/lib/libsysmw.so: undefined reference to `mwind'
/sys/lib/ix86/libsysmw.so: undefined reference to `mwicmd'

Digging around and doing some "nm -s" ie found that these symbols 
are not defined in any of these libraries. In addition, there aren't 
any other libraries under the megawave distribution.

By the way, i'm using megawave 2.31a + the posted patch to make it 
work with gcc 3.4. The compiler version is gcc 3.4.1.

Any hint will be appreciated.
Best Regards,
               Juan

--- begin quote ---
Hi,

It's very easy to use MegaWave2 functions (both modules
and system ones) in another program. Just make sure to
include mw.h in your source and, while linking, to add the 
MegaWave2 libraries (libsysmw.so and, if you are calling
modules, libmw.a). 

Sincerely,
JF.

--- end quote ---
Answer to this message Answer to this message


           1 Sep 2005 Re: using megawave as regular unix libra (Luis Garrido)
                        

Yes, you are right. We had also the same problem trying to integrate 
Octave with Megawave2 functions. When compiling a megawave program 
with the script cmw2, a "main" function is automatically generated 
which initializes (global) variables mwind and mwcmd. In other words, 
the script cmw2 generates C code that is compiled and removed 
automatically by cmw2. You may find the code that initilializes these 
two variables in the cmw2 script (located in folder 
~/megawave2/sys/shell). Look at lines 521-542, you'll see the C code 
that is automatically generated. The best you may do to understand 
what is generated is to remove the line 542 ("remove $ICFILE") and 
to run the script cmw2. You'll see that a file $ICFILE is 
automatically generated each time you compile with cmw2. Edit the 
file and look how the variable mwind and mwcmd are initialized. To my 
experience with megawave2, it seems that mwind and mwcmd are used 
only to print out information when calling mwerror function. So the 
values to which they are initialized doesn't seem really important.

If you want now to compile an own file againts the megawave2 library 
you have to include in your file the initialization of variables 
mwind and mwcmd. 
Answer to this message Answer to this message

Back to Message Index Back to Message Index


18 Jul 2005 installation megawave (jérémie)
             

Bonjour,
J'essaie sans succès d'installer megawave sur une distribution de
linux qui utilise la glibc 2.3.5 et gcc 3.4.3. Les deux premières 
étapes de l'installation se passent bien mais j'obtiens des erreurs 
dès la compilation du premier module, ccopy.
image/io/ccopy.c :
/usr/include/bits/types.h : syntax error line 51
/usr/include/sys/sysmacros.h : error line 44
                               Lexical error : '~' is a bad item
/usr/include/sys/sysmacros.h : error line 50
                               Lexical error : '~' is a bad item
/usr/include/sys/sysmacros.h : error line 57
                               Lexical error : '~' is a bad item
/usr/include/sys/sysmacros.h : error line 58
                               Lexical error : '~' is a bad item
fatal error : 5 error detected. Stop.
Exit.

Est ce que quelqu'un pourrait reproduire ces erreurs ? Si oui serait 
il possible de mettre à jour Megawave ?

Jérémie
Answer to this message Answer to this message


           22 Jul 2005 Re: installation megawave (Juan Cardelino)
                        

See a message posted below by Gabrielle Facciolo, the posted 
a patch to megawave that makes it works with gcc 3.4.
I had the same error as you, and it solved.
Best Regards,
              Juan
Answer to this message Answer to this message


                      25 Jul 2005 Re: Re: installation megawave (jérémie)
                                   

A big thank you to G. Facciolo and to you.
It worked great.
jérémie
Answer to this message Answer to this message

Back to Message Index Back to Message Index


14 Jun 2005 MW sur Sgi ? (Thomas)
             

Bonjour

Est ce que quelqu'un aurait déja essayé d'installer Megawave2 sur une 
grappe de calcul tournant sous Sgi ?

Thomas
Answer to this message Answer to this message

Back to Message Index Back to Message Index


21 May 2005 Interpreteur C
             

Bonjour

Svp, je cherche la source d'un interpretur C qui marche sous linux.
Si vous avez l'amabilite de bien vouloir m'aider a trouver d'auters 
interpreteurs que Cint, UnderC, EiC je vous en serais infiniment 
reconnaissante.

merci
Answer to this message Answer to this message

Back to Message Index Back to Message Index


19 May 2005 Probleme de compilation sous FedoraCore2 (Thomas)
             

Bonjour

J'ai des soucis de compilation de MW sous Core Fedora, voici le listing. Tout 
aide sera sincerement appreciee

*****************************************
***** Level 3 : Compile the modules *****
*****************************************
Module "ccopy" cannot be compiled !
Following the corresponding output. Please send these lines when reporting bugs:
--------------------------------------------------------------------------------

>>> Welcome on the MegaWave2 Compiler V1.51 <<<
Beware, the target user is the system on /usagers/thhur/megawave2

  Phase 1 : MegaWave2 preprocessor
ccopy.c :
done.
  Phase 2 : production of sources and objects
          production of document squeleton (doc/obj/ccopy.doc)
          production of arguments analyser object
          production of module object
          add objects to MegaWave2 user library
          production of interface with MegaWave2 interpretor source
          production of interface with MegaWave2 library object
  Phase 3 : production of MegaWave command
          linking MegaWave2 command "ccopy" on ix86 with additional libraries
[-lW_X11R4 -lX11 ]
/usr/bin/ld: /usagers/thhur/megawave2/bin/ix86/ccopy: hidden symbol `fstat' in
/usr/lib/libc_nonshared.a(fstat.oS) is referenced by DSO
collect2: ld returned 1 exit status
          Link failed : exit.
--------------------------------------------------------------------------------
***** Modules cannot be compiled ! It means something went wrong during the
kernel installation stage...
***** Abort mwinstall at level 3.
+++++ Installation NOT COMPLETE using
+++++      /usagers/thhur/megawave2/kernel/shell/mwinstall  -public -clear
-debug /usagers/thhur/megawave2
+++++ Try to fix the problem (look at '/usagers/thhur/megawave2/Install.log')
and rerun mwinstall.
+++++ If mwinstall has failed at a level greater than 1, you may save time
+++++ by adding the parameter '-level l'. In that case, make sure
+++++ your environment variables are correctly set.
+++++ The environment variables you need are initialized in the following files
:
+++++ /usagers/thhur/megawave2/sys/lib/ix86/.profile_adm_megawave2 (Profile for
Bourne-compatible shells)
+++++ /usagers/thhur/megawave2/sys/lib/ix86/.cshrc_adm_megawave2 (Csh for
C-compatible shells)
Answer to this message Answer to this message

Back to Message Index Back to Message Index


18 May 2005 Draw Primitives on an image (Jaonary Rabarisoa)
             

Hi all,
Is there any function that can draw a primitive object (point,line,
circle, ...) on a image. More precisely, I'd like to view the resulte 
after applying the "harris" function in megawave.

Thanks
Answer to this message Answer to this message


           27 May 2005 Re: Draw Primitives on an image (JF)
                        

There are at least two ways to draw primitives on an image:
- Your "image" is a MegaWave2 object (data type) such as
a Cimage, Fimage,... : use functions described in the
guide #2 (MegaWave2 System Library). For example,
mw_draw_cimage draws a line. Declare this image as an output
of your MegaWave2 module. After the module finishes, you
will get an image as a file that can be displayed using
e.g. cview. Example of such a module : make_cimage.
- The drawback of the former method is that you cannot draw
and see the result in the screen in "real time". To draw
primitives on an image while the image is displayed on the
screen, you have to use functions of the "Wdevice" library.
For example, use WDrawLine to draw a line. These functions
are not currently documented, but you may guess how to
use them by looking, for example, to the module cview.c.

Hope this will help.
JF.


Answer to this message Answer to this message

Back to Message Index Back to Message Index


12 May 2005 cherche programme en c ou c++ (mohamed)
             

bonjour
je cherche un programme en c ou c++ pour la restauration d'image par 
champs de Markov couple ou triple
je vous remercie à l'avance
Answer to this message Answer to this message


           2 Mar 2006 Re: cherche programme en c ou c++ (Did)
                        

va sur www.mathtools.com tu trouveras ce que tu  cherche mais 
c'est en Anglais !!!!!
Answer to this message Answer to this message

Back to Message Index Back to Message Index


19 Apr 2005 Megawave and C++ (Nicolas Burrus)
             

Hi, 
 
Since I'm sure I am not the only C++ programmer using 
Megawave, I though the hack I use to create Megawave 
modules in C++ could be interesting for other people. 
 
I will detail it through a simple example: a program which fills an 
input image with an integer value. 
 
First, create a C file, which will be the interface for megawave : 
 
########### test1.c ############ 
/* mwcommand 
name = {test1}; 
version = {"0.1"}; 
author = {"Nicolas Burrus"}; 
function = {"C++ test"}; 
usage = { 
   in->in   "Input Fimage", 
   out<-test1 "Output Fimage" 
}; 
*/ 
 
#include "mw.h" 
 
// Declares the real c++ function. 
extern Fimage test1_cxx(); 
 
Fimage test1(in) 
Fimage in; 
{ return test1_cxx(in); } 
########### end of test1.c ############ 
 
Then, create a C++ file with the actual code: 
 
########### test1_cxx.cpp ############ 
extern "C" { 
#include "mw.h" 
} 
 
#include  
#include  
 
template  
void pure_cxx(Fimage in) 
{ 
  std::cout << "n: " << n << std::endl; 
  std::fill(in->gray, in->gray + in->ncol * in->nrow, n); 
} 
 
extern "C" 
Fimage test1_cxx(Fimage in) 
{ 
  pure_cxx<42>(in); 
  return in; 
} 
########### end of test1_cxx.cpp ######## 
 
As you can see, this is real c++ code. The trick is in the extern 
"C". 
 
Then, using a Makefile looking like this: 
 
########### Makefile ################ 
CXX_SRCS = test1_cxx.cpp 
OBJS = $(CXX_SRCS:%.cpp=%.o) 
 
CPPFLAGS := -I"${MEGAWAVE2}/sys/include" 
 
all: $(OBJS) 
	cmw2 -lstdc++ $(OBJS) test1.c 
########### end of Makefile ############ 
 
Typing "make" will create the new test1 binary. 
 
This was only tested on a Debian/GNU Linux platform, but the 
principle should be portable. 
Answer to this message Answer to this message

Back to Message Index Back to Message Index


12 Apr 2005 MegaWave and OS X
             

Has somebody managed to install megawave on mac OS X/Darwin?
Any hint would be welcome...
Thank you.


Answer to this message Answer to this message


           13 Apr 2005 Re: MegaWave and OS X (Ladjal)
                        

I did. 
You will find a version that works under:
http://tsi.enst.fr/~ladjal/MegaWave2_V2.31a.Darwin.tgz

But there are some things you need:
0) The BSD base package must be installed (this is the default)
1) You have to install the DevTools from Apple.
2) Install an X11 server from Apple (or third party)
3) Install the X11SDK from Apple.
(the 1, 2, 3 can be found on the mac OS X installation CDs or DVD)

 Optionaly you can read and write the jpeg and tiff images if you install 
the  packages:
libjpeg
libtiff-shlibs (you will have to set a link from /sw/lib/libtiff.dylib  
to /sw/lib/libtiff.3.dylib )

 You can have these from the Fink project, or from darwinport, but in
this last case some modifications should be applied.

You must compile megawave using shared libs (I am not intending to adapt 
the static version) but this the best way to use megawave anyway. And the 
compilation of the docs wil not work, this is "normal".

If this version didn't work, you can send me an email:
ladjal  at enst dot fr
(but please don't ask me about how to install Fink or the DevTools or X11).

 It has been already tested on a PowerBook G4, a mac mini G4 and an iBook 
G3 (all of them under Panther, but Jaguar should do fine), but never on 
a G5

 Have fun, and I'll be happy to hear from if it works (or not).




Answer to this message Answer to this message


                      27 Jun 2005 Re: Re: MegaWave and OS X (Guillaume Jeannic)
                                   

ça compile et ça fonctionne sur G5 panther !
merci beaucoup !
Answer to this message Answer to this message

Back to Message Index Back to Message Index


6 Apr 2005 Format IMG (V. Muron)
             

Bonjour,

je cherche les spécifications exactes du format d'image IMG que vous 
utilisez dans MegaWave. Pourriez-vous m'indiquer où je pourrais les 
trouver ou me les donner si vous les avez.

Je vous remercie.

Vincent Muron
Answer to this message Answer to this message


           19 Apr 2005 Re: Format IMG (JF)
                        

Bonjour,

Le format IMG est issu d'un ancien logiciel ImageAction
(de la société Imaging Technology) qui fonctionnait sur
une carte PCVision d'un PC AT des années 80 ! 
Il est implémenté sur MegaWave2 pour des raisons historiques 
(migration du code ImageAction sur MegaWave1 à la fin des
années 80).

S'il est ainsi illusoire de trouver un document officiel
sur ce format, il n'est pas difficile de le déchiffrer
en se basant sur le code MegaWave2 : regardez le fichier
kernel/src/cimage_io.c et plus particulièrement la fonction
_mw_cimage_create_megawave1(). Seule l'entête est vraiment
spécifique. Celui-ci est décrit dans _MAKEHEADER_IMG().

JF.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


3 Apr 2005 MegaWave for Image Mosaicking (Haider Raja)
             

Hi,
I am looking at tools to help me achieve Image mosaicking. Is there 
a base demo or sample code available for Image Mosaicking in
MegaWave. 
If possible can someone please send it to me haider.raja@gmail.com.
or
Please help me with some pointers to achiive Image Mosiacking.

Thanks and regards,
Haider Raja
Answer to this message Answer to this message

Back to Message Index Back to Message Index


31 Mar 2005 Installation problem with gcc 4.0 (Thomas Lewiner)
             

There has been two major problems during my installation on ubuntu 
with gcc 4.0, which were resolved as follow:

- The debug mode did not work due to the linkage of the library in 
debug mode. The command line ld -shared -soname... produced a
corrupted library, which linked to libc_noshared.a and referenced 
an unpublic 'fstat' with the following error:
ld error: hidden symbol `fstat' in /usr/lib/libc_nonshared.a(fstat.oS) 
is referenced by DSO

The solution here was to replace all the occurence of "ld -shared 
-soname " by "gcc -shared -Wl,-soname," (beware of spaces and commas) 
in file $()/kernel/lib/src/Makefile.in .

- In almost all the modules of image/seg, the forward declaration 
with static attribute fails. I had to remove all of those 
declarations that were inside a function, and put them before all 
the functions:

/* forward declaration */
static float SomGris(Fimage orig_data, unsigned short i, unsigned short j) ;
static float eval_lambda(BORDPTR bord) ;
static void InitPixel(LI_PIXELSPTR pixelptr,char dir);
static void RegCanalInit(Fimage orig_data, unsigned short i, unsigned short j, float *canal);
static void BorCanalInit(unsigned short i, unsigned short j, float canal[]);
static void LiBordsUnion(REGIONPTR reg, REGIONPTR regvois, BORDPTR  bordcom);
static void ElimBordeSom(BORDPTR bord);
static void DegreSommet(SOMMETPTR som);
static void ElimLiReg(REGIONPTR regvois);
static void UnionBordCnxe(REGIONPTR reg);
static void Union1Bord(SOMMETPTR som);
static void Union2Bords(SOMMETPTR som);
static LI_PIXELSPTR LiPixelsUnion(LI_PIXELSPTR liste1,LI_PIXELSPTR liste2);
static void ElimBordeReg(REGIONPTR reg, BORDPTR bord );
static void Repointer(SOMMETPTR som, BORDPTR newbord, BORDPTR oldbord);
static void RegMerge(REGIONPTR reg, REGIONPTR regvois, BORDPTR bordcom);
static REGIONPTR RegAdjB(REGIONPTR reg, short i, short j);
static REGIONPTR RegAdjD(REGIONPTR reg, short i, short j);
static short TraitHVmono(Cimage whitesheet, short a0, short b0, short a1, short b1, unsigned char c);

Cheers|
Answer to this message Answer to this message

Back to Message Index Back to Message Index


31 Mar 2005 MW2 sous Linux 2.6.7 (Amandine)
             

Bonjour, 

Depuis que j'ai changé de noyau, je ne peux plus compiler mes
programmes megawave!!

Mon nouveau noyau c'est 
Linux (none) 2.6.7 #2 SMP Wed Jul 28 04:25:36 CEST 2004 i686 GNU/Linux
avec
version gcc 3.3.4 (Debian 1:3.3.4-13)

Savez-vous ce qu'il faut modifier pour que le compilateur marche 
de nouveau? 

Merci


Answer to this message Answer to this message

Back to Message Index Back to Message Index


31 Mar 2005 Megawave 2 patch for gcc 3.4 (Felipe Zipitria & Gabriele Facciolo)
             

This patch does a specific workarround to use the gcc 3.4 compiler 
included with Fedora Core 2.

1) Donwload the patch from: 
http://www.fing.edu.uy/~facciolo/patch_gcc3.4_MegaWave2_V2.31a.diff

2) Apply to the MegaWave2 (2.31a) source tree: 
cat patch_gcc3.4_MegaWave2_V2.31a.diff | patch -p0

3) Compile MegaWave 2.


Answer to this message Answer to this message


           7 Apr 2005 Re: Megawave 2 patch for gcc 3.4 (Juan Cardelino)
                        

I've tried this patch on MandrakeLinux 10.1 with gcc 3.3.4
kernel 2.6.8.1 and glibc 2.3.3-23 and it worked neatly. 

The solution previously posted (copying and editing the conflicting 
files) solved the first 5 errors but after that tons of new errors 
appeared and leaded me to an endless editing, and i finally gave up.

Thank you for the patch, it really avoided me a headache!!
But i must note that this patch assumes that the installation 
directory is called mw2 (note that the tarball unpacks this 
directory as megawave2). In addition, this patch must be run from 
outside the megawave directory, e.g if it was unpacked in 
/home/xxx/mw2 run the patch from /home/xxx.

Thanks again.
Regards,
         Juan
 
Answer to this message Answer to this message


           7 Sep 2005 Re: Megawave 2 patch for gcc 3.4
                        

Hello,
Where is the patch? Did you remove it?
Please help...
-KB

Answer to this message Answer to this message


                      16 Sep 2005 Re: Re: Megawave 2 patch for gcc 3.4
                                   

http://www.fing.edu.uy/~facciolo/patch_gcc3.4_MegaWave2_V2.31a.diff.gz
Answer to this message Answer to this message

Back to Message Index Back to Message Index


18 Mar 2005 GVF snake
             

Bonjour, 

j'essaye d'implémenter en c++ un algorithme GVF snake.

Megawave fait-il simplement du snake ou également du GVF snake ?

Connaissez vous des liens de codes sources pour le GVF snake ?

Merci !
Answer to this message Answer to this message

Back to Message Index Back to Message Index


17 Mar 2005 MW2 sous Mandrake 10.1 (Simon)
             

Je ne parviens pas à installer MW2 sous Mandrake 10.1
Tout se passe bien jusqu'à la compilation du module ccopy.c
J'ai alors le message suivant:
*****************************************
***** Level 3 : Compile the modules *****
*****************************************
Module "ccopy" cannot be compiled !
Following the corresponding output. Please send these lines when 
reporting bugs:
--------------------------------------------------------------------------------

>>> Welcome on the MegaWave2 Compiler V1.51 <<<
Beware, the target user is the system on /home/masnou/megawave2

  Phase 1 : MegaWave2 preprocessor
ccopy.c :
/usr/include/bits/types.h : syntax error line 51
/usr/include/sys/sysmacros.h : error line 44
                               Lexical error : '~' is a bad item
/usr/include/sys/sysmacros.h : error line 50
                               Lexical error : '~' is a bad item
/usr/include/sys/sysmacros.h : error line 57
                               Lexical error : '~' is a bad item
/usr/include/sys/sysmacros.h : error line 58
                               Lexical error : '~' is a bad item
fatal error : 5 error detected. Stop.
Exit.


Il doit falloir bidouiller les fichiers d'include dans 
megawave2/kernel/lib/include/Linux pour arranger ça, mais je ne sais 
vraiment pas comment. Quelqu'un sait-il comment résoudre le problème ?
Merci
Answer to this message Answer to this message


           21 Mar 2005 Re: MW2 sous Mandrake 10.1 (JF)
                        

La méthode consiste à recopier les fichiers incriminés (apparemment
/usr/include/bits/types.h et /usr/include/sys/sysmacros.h) dans
megawave2/kernel/lib/include/Linux 
puis à modifier (voire à supprimer) à la main les lignes qui
posent problème. C'est assez brutal mais ça marche... 

JF.
Answer to this message Answer to this message


                      21 Mar 2005 Re: Re: MW2 sous Mandrake 10.1 (Saïd)
                                   

 Bonjour,

 Je précise qu'il faut aussi recreer les repertoires sous include/Linux
par exemple:

 /usr/inclues/bits/types.h 

doit etre sopie sous:

include/Linux/bits/types.h

 Il faut aussi modifier kernel/lib/include/Makefile pour que les nouveaux 
repertoires soient copies vers sys/include/Linux. (on peut aussi faire la copie 
a la main dans un premier temps).

 Mais peut-etre que je me trompe.

Cordialement, 
  Saïd.

Answer to this message Answer to this message

Back to Message Index Back to Message Index


17 Mar 2005 transformer une image couleur en tiff (Saïd)
             

Bonjour,

 Comment transformer une image au format megawave ccimage (couleur) en 
image tiff? J'ai essayé avec -ftype TIFF, mais l'information de couleur est 
perdue!
Answer to this message Answer to this message


           17 Mar 2005 Re: transformer une image couleur en tiff (Saïd)
                        

 Je me réponds à moi-même :
Il faut faire :

cccopy -ftype TIFFC image.mw image.tiff

Je n'avais pas compris qu'il fallait préciser TIFFC au lieu de TIFF pour avoir les 
couleurs dans le TIFF.

Answer to this message Answer to this message


           17 Mar 2005 Re: transformer une image couleur en tif (Simon)
                        

Le format TIFF (sous megawave) est propre aux images en niveaux 
de gris. Pour transformer une CCimage au format TIFF, il faut 
utiliser -ftype TIFFC

Answer to this message Answer to this message

Back to Message Index Back to Message Index


8 Feb 2005 using biowave2 and dybiowave2
             

Dears Megawave's friends,
Hi!
Right now I 'm using megawave2, specially I try to use biowave2 
and dybiowave2 but I get some error messages,so if anybody use 
before those two binaries please send some examples how to use 
them.

Thanks!!!
;-)
Answer to this message Answer to this message


           14 Mar 2005 Re: using biowave2 and dybiowave2 (JF)
                        

Dear MegaWave user,

In order to illustrate the use of wavelet modules, please
find below the source of a MegaWave macro. Run it with
option -s to see the commands that are called and/or with
-v to ask for a visualization of the wavelet representation.

Note that dyowave2 / dybiowave2 modules are not used in
this shell but their syntax is the same as wave2 / biowave2
modules.

Sincerely,
JF

 #!/bin/sh 
#--------------------------- Shell MegaWave2 Macro --------------------------#
_Prog="CheckWavelets"
_Vers="1.0"
_Date="2005"
_Func="Check wavelets bases and transforms"
_Auth="Jacques Froment";
_Usage="[-help] [-s] [-r nlevel] [-v]"

# Options :
# -s : See syntax of modules running wavelet transforms
# -r nlevel : number of levels (default 2)
# -v : Visualize wavelet transforms

Error()
{
    echo $1
    echo "Abort $_Prog"
    exit 2
}

Settmpdir()
{
    rmtmproot=0
    if [ ! -d $1 ]; then return 1; fi
    if [ ! -x $1 ]; then return 1; fi
    if [ ! -w $1 ]; then return 1; fi
    tmproot=$1/tmp
    if [ ! -d $tmproot ]; then
	mkdir $tmproot || return 1
	rmtmproot=1
    fi
    if [ -d $tmproot ]; then 
	if [ ! -x $tmproot ]; then return 1; fi
	if [ ! -w $tmproot ]; then return 1; fi
	tmp=$tmproot/checkwavelets_tmp
	rm -rf $tmp || return 1
	mkdir $tmp || return 1
    fi
    return 0
}

Exec()
{
    if [ $seecommands -eq 1 ]; then
	echo "     $1"
    fi
    eval $1
    if [ $? -ne 0 ]; then
	Error "command '$1' failed on $fname !"
    fi    
}

ExecWave()
{
    Exec "$1"
    wavedone=`expr $wavedone + 1`
}

EchoEdgeMode()
{
    case $edgemode in
	0) echo "0-extension"
	    ;;
	1) echo "periodization"
	    ;;
	2) echo "mirror effect"
	    ;;
	3) echo "adapted filtering"
	    ;;
	*) Error "Unknown edge mode #${edgemode} !"
    esac
}

CheckReconstruction()
{
    if [ $visu -eq 1 ]; then
	posx=`expr $wavedone \* 10`
	echo "posx=$posx"
	Exec "owtrans_fimage -r $nlevel -c 3.0 w w.rim"
	Exec "fview -x $posx w.rim&"
    fi

    mse=`fmse fimage r | grep "MSE" | cut -f 2 -d "="`
    if [ "$mse" = " 0" ]; then
     echo "ok"
     return 
    fi
    psnr=`fmse fimage r | grep "PSNR" | cut -f 2 -d "="`
#echo "psnr=$psnr"
    err=`echo "$psnr < 130.0" | bc -l`
    if [ $err -eq 1 ]; then
	echo "BAD reconstruction (PSNR =$psnr) !"
    else
	echo "ok"
    fi

}

# Check ortho filters 

CheckOrtho()
{
    echo
    echo -n "Orthogonal filters with "
    edgemode=$1
    EchoEdgeMode

    filters=$MEGAWAVE2/data/wave/ortho
    if [ ! -x $filters ]; then
	Error "Dir '$filters' not found !"
    fi

    cd $tmp

    for f in `ls $filters/*.ir`
      do
      ExecWave "owave2 -r $nlevel -e $edgemode fimage w $f"
      ExecWave "iowave2 -r $nlevel -e $edgemode w r $f"

      fname=`basename $f .ir`
      echo -n "$fname : "
      CheckReconstruction
    done
}

# Check ortho filters with edge filters

CheckOrthoEdgeFilters()
{
    echo
    echo "Orthogonal filters with edge filters"

    filters=$MEGAWAVE2/data/wave/ortho
    edges=$MEGAWAVE2/data/wave/ortho/edge
    if [ ! -x $filters ]; then
	Error "Dir '$filters' not found !"
    fi
    if [ ! -x $edges ]; then
	Error "Dir '$edges' not found !"
    fi


    cd $tmp
    
    for e in `ls $edges/*.ir`
      do
      ename=`basename $e .ir`

      ExecWave "owave2 -r $nlevel fimage w ortho/${ename}.ir $e"
      ExecWave "iowave2 -r $nlevel w r ortho/${ename}.ir $e"

      echo -n "$ename : "      
      CheckReconstruction
    done
}

# Check biortho filters with mirror effect

CheckOneBiortho()
{
    hname=`basename $1 .ir`
    htname=`basename $2 .ir`
    
    ExecWave "biowave2 -r $nlevel -e $edgemode fimage w $1 $2"
    ExecWave "ibiowave2 -r $nlevel -e $edgemode w r $1 $2"

    echo -n "$hname / $htname : "
    CheckReconstruction
}

CheckBiortho()
{
    echo
    echo -n "Biorthogonal filters with "
    edgemode=$1
    EchoEdgeMode

    h=$MEGAWAVE2/data/wave/biortho/h
    if [ ! -x $h ]; then
	Error "Dir '$filters' not found !"
    fi
    ht=$MEGAWAVE2/data/wave/biortho/htilde
    if [ ! -x $ht ]; then
	Error "Dir '$filters' not found !"
    fi
    
    cd $tmp
    CheckOneBiortho $h/sd07.ir $ht/sd09.ir
    f1=$h/sp02.ir
    for f2 in `ls $ht/sl??.ir`
      do
      CheckOneBiortho $f1 $f2
    done
    f1=$h/sp03.ir
    for f2 in `ls $ht/sq??.ir`
      do
      CheckOneBiortho $f1 $f2
    done
    f1=$h/sp04.ir
    for f2 in `ls $ht/sc??.ir`
      do
      CheckOneBiortho $f1 $f2
    done
}
#----------------------------- MACRO BEGINS HERE -----------------------

Settmpdir $MEGAWAVE2 || Settmpdir $MY_MEGAWAVE2 || Error "Cannot set tmp directory. Exit."

#--- Usage

if [ $# -gt 4 ]; then
  . .mw2_help_lg_com
fi

nlevel=2;
seecommands=0;
visu=0;
while [ "$1" != "" ]
do
  case "$1" in
      -s) seecommands=1;
	  ;;
      
      -r) shift;
	  nlevel=$1
	  ;;

      -v) visu=1;
	  ;;

      *)  echo "arg \"$1\" cannot be used in `basename $0`"
	  . .mw2_help_lg_com
	  exit 1
	  ;;
  esac
  shift
done


#--- Check wavelets

s0=`date +'%s'`
echo "*** Check & demonstrate wavelet filters and modules in MegaWave2"

CheckOrtho 1
CheckOrthoEdgeFilters

for edgemode in 1 2
do
  CheckBiortho $edgemode
done

s1=`date +'%s'`
echo

ds=`expr $s1 - $s0`
echo "*** $wavedone wavelet (or inverse wavelet) transforms done in $ds seconds"

#--- delete temporary files and dirs
if [ $rmtmproot = 1 ]; then 
    rm -rf $tmproot/
else
    rm -rf $tmp
fi

#--- exit
exit 0

Answer to this message Answer to this message

Back to Message Index Back to Message Index


30 Jan 2005 mandrake 10 et megawave (Julie)
             

voici le message que j'obtiens après lancement (pour la n-ième fois) 
de l'installation de megawave 2.31 sur mandrake 10 : Quelqu'un 
pourrait-il m'aider?

*****************************************
***** Level 3 : Compile the modules *****
*****************************************
Module "ccopy" cannot be compiled !
Following the corresponding output. Please send these lines when 
reporting bugs:
--------------------------------------------------------------------------------
  
>>> Welcome on the MegaWave2 Compiler V1.51 <<<
Beware, the target user is the system on /home/julie/megawave/megawave2
  
  Phase 1 : MegaWave2 preprocessor
ccopy.c :
done.
  Phase 2 : production of sources and objects
          production of document squeleton (doc/obj/ccopy.doc)
          production of arguments analyser object
          production of module object
          add objects to MegaWave2 user library
          production of interface with MegaWave2 interpretor source
          production of interface with MegaWave2 library object
  Phase 3 : production of MegaWave command
          linking MegaWave2 command "ccopy" on ix86 with additional 
libraries [- lW_X11R4 -lX11 ]
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_read_scanlines'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_calc_output_dimensions'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_set_defaults'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_start_decompress'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_write_marker'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_destroy_decompress'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_std_error'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_CreateDecompress'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_set_marker_processor'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_read_header'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_start_compress'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_destroy_compress'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_finish_decompress'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_stdio_src'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_CreateCompress'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_finish_compress'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_set_quality'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_stdio_dest'
/home/julie/megawave/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_write_scanlines'
collect2: ld returned 1 exit status
          Link failed : exit.
--------------------------------------------------------------------------------

Answer to this message Answer to this message


           17 Feb 2005 Re: mandrake 10 et megawave (F. Cao)
                        

Il faut installer que /usr/lib/libjpeg.so existe (ainsi que 
les include). Ces fichiers sont dans le package libjpeg-devel.
Cordialement. 
Answer to this message Answer to this message

Back to Message Index Back to Message Index


25 Dec 2004 How to use it in Matlab (thinwolf)
             

I am using matlab to make research, how to use megawave in matlab
Answer to this message Answer to this message


           17 Jan 2005 Re: How to use it in Matlab (H.Moladost)
                        

 Dear...
can I use tihs softwar for eade detection with using snake:active 
contour model. and can I use this siftware with windows xp.
 
bestregard
H.Moladost
Answer to this message Answer to this message


                      21 Apr 2005 Re: Re: How to use it in Matlab (vijay)
                                   

sir
 how the snake deform form its inital position to last position in 
matlab with mathematical proof and documents
Answer to this message Answer to this message

Back to Message Index Back to Message Index


21 Dec 2004 Megawave 2.31a sur Mandrake 10
             

Je voudrais installer Megawave2.31 sur Mandrake 10, mais 
j'ai rencontre le probleme suivant: 
  Phase 3 : production of MegaWave command 
          linking MegaWave2 command "ccopy" on ix86 with 
additional libraries [-lW_X11R4 -lX11 ] 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_read_scanlines' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_calc_output_dimensions' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_set_defaults' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_start_decompress' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_write_marker' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_destroy_decompress' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_std_error' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_CreateDecompress' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_set_marker_processor' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_read_header' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_start_compress' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_destroy_compress' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_finish_decompress' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_stdio_src' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_CreateCompress' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_finish_compress' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_set_quality' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_stdio_dest' 
/home/luo/megawave2/sys/lib/ix86/libsysmw.so: undefined 
reference to `jpeg_write_scanlines' 
collect2: ld returned 1 exit status 
          Link failed : exit. 
-------------------------------------------------------------------------------- 
***** Modules cannot be compiled ! It means something went 
wrong during the kernel installation stage... 
***** Abort mwinstall at level 3. 
 
la version de mon noyau est 2.6.3-7mdk, et la version de 
gcc est 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk). 
 
Merci d'avance! 
Answer to this message Answer to this message


           3 Jan 2005 Re: Megawave 2.31a sur Mandrake 10
                        

 Bonjour, 

 Voici ce qu'il faut faire, j'espère que cela vous aidera :

1) Vérifier que libjpeg.so est bien présent sur la machine (/usr/lib ou /usr/
local/lib)

2) Pour une raison obscure, il se peut qu'il n'y ait pas d'ajout de -ljpeg dans 
les commandes de compilation. Pour remédier a ce problème, il faut éditer le 
fichier $MEGAWAVE2/kernel/shell/cmw2
 Modifier :

if [ "${MW_LIBJPEG}" != "" ]; then
 ASLIBS="$ASLIBS -ljpeg"
fi

en 

#if [ "${MW_LIBJPEG}" != "" ]; then
ASLIBS="$ASLIBS -ljpeg"
#fi

copier la nouvelle version vers 
$MEGAWAVE2/sys/shell/cmw2

 3) Recommencer l'installation.

 D'après votre message d'erreur (il n'y a pas eu d'autres messages du genre 
"libjpeg not found", avant ?) le problème est la simple inexistence de l'option 
-ljpeg au moment de la compilation du module.

 Tenez-nous au courant, votre expérience peut profiter à d'autres utilisateurs.

Answer to this message Answer to this message


                      10 Jan 2005 Re: Re: Megawave 2.31a sur Mandrake 10
                                   

Merci Beaucoup! Mais en fait j'ai deja resolu ce probleme par 
installer le package libtiff-progs est libtiff-dev, c'est peut-etre un peu 
bizzare, mais ca marche quand meme. 
Answer to this message Answer to this message

Back to Message Index Back to Message Index


6 Dec 2004 MW2.31a sur mandrake 10.1 (bis) (Anatole Chessel)
             


J'ai tres exactement le meme probleme (cad le meme output d'erreur) 
que ci-dessous. Avec un noyau 2.6.8... Y-a-t il tant de changement 
entre MDK10.0 et MDK10.1? (gcc 3.4.1 et glibc 2.3.3)

merci...
Answer to this message Answer to this message


           18 Oct 2005 Re: MW2.31a sur mandrake 10.1 (bis) (Florent Ranchin)
                        

je me demande si le problème vient de la distribution... j'avais ce 
problème sous mdk 10.0, j'ai installé ce qui manquait à libtiff (le 
xxx-devel-yyy) et ça a marché (un peu comme Julie ci-dessus)... alors 
que de toute façon ça devrait marcher vu que je suis sous 10.0...

Moralité: j'ai l'impression qu'il faut surtout avoir TOUT ce qui est 
relatif à libtiff et TOUT ce qui est relatif à libjpeg...
Answer to this message Answer to this message

Back to Message Index Back to Message Index


3 Dec 2004 linux 2.4.26 (Ladjal)
             

Bonjour,

(English version follows)

 Si vous utilisez un noyau 2.4 plus recent que 2.4.19, ce qui suit
devrait vous interesser.

 Dans les sources de la derniere version de MW (2.31a) la ligne:
#if (_KERNEL_PATCH_ <= 19)

de stdio.h devrait etre changee en 
#if (_KERNEL_PATCH_ <= 26)

 en tout cas c'est ce que j'ai fait (j'utilise un noyau 2.4.26 ) et 
cela fonctionne.

le fichier stdio.h se trouve en megawave2/kernel/lib/include/Linux/stdio.h
modifiez-le avant de (re)commencer l'installation complete.

(ENGLISH version)
If you use a kernel version 2.4 higher than 2.4.19, the following
should interest you.
In the sources of the last MW version (2.31a) the line:
#if (_KERNEL_PATCH_ <= 19)

from the file stdio.h
should be changed to:
#if (_KERNEL_PATCH_ <= 26)
 It worked for me, anyway.

the file stdio.h  can be found at:
megawave2/kernel/lib/include/Linux/stdio.h
Modifie it before you (re)start the installation process.


Answer to this message Answer to this message

Back to Message Index Back to Message Index


3 Nov 2004 pb install MG2.31 sur mandrake10.1 (Adrien Le Batteux)
             

voilà plusieurs fois que j'essaie et je desespere d'y parvenir seul. 
Ci-dessous, la copie de ce que me renvoie le terminal.
(en gros, il y a à l'étape 2, un mwp.y:conflicts: 2shift/reduce, et 
à l'étape 3, il y a trois erreurs). 

cordialement

Adrien Le Batteux

[...]

=== mer nov  3 16:17:09 CET 2004
=== Install done for the kernel on /home/adrien/megawave2 ===
*****************************************
***** Level 3 : Compile the modules *****
*****************************************
Module "ccopy" cannot be compiled !
Following the corresponding output. Please send these lines when reporting bugs:
--------------------------------------------------------------------------------

>>> Welcome on the MegaWave2 Compiler V1.51 <<<
Beware, the target user is the system on /home/adrien/megawave2

  Phase 1 : MegaWave2 preprocessor
ccopy.c :
/usr/include/bits/types.h : syntax error line 51
/usr/include/sys/sysmacros.h : error line 44
                               Lexical error : '~' is a bad item
/usr/include/sys/sysmacros.h : error line 50
                               Lexical error : '~' is a bad item
/usr/include/sys/sysmacros.h : error line 57
                               Lexical error : '~' is a bad item
/usr/include/sys/sysmacros.h : error line 58
                               Lexical error : '~' is a bad item
fatal error : 5 error detected. Stop.
Exit.
--------------------------------------------------------------------------------
***** Modules cannot be compiled ! It means something went wrong during
 the kernel installation stage...
***** Abort mwinstall at level 3.
+++++ Installation NOT COMPLETE using
+++++      /home/adrien/megawave2/kernel/shell/mwinstall  -clear 
/home/adrien/megawave2
+++++ Try to fix the problem (look at '/home/adrien/megawave2/Install.log') 
and rerun mwinstall.
+++++ If mwinstall has failed at a level greater than 1, you may save time
+++++ by adding the parameter '-level l'. In that case, make sure
+++++ your environment variables are correctly set.
+++++ The environment variables you need are initialized in the following 
files :
+++++ /home/adrien/megawave2/sys/lib/ix86/.profile_adm_megawave2 (Profile 
for Bourne-compatible shells)
+++++ /home/adrien/megawave2/sys/lib/ix86/.cshrc_adm_megawave2 (Csh for 
C-compatible shells)
 
 
Answer to this message Answer to this message


           3 Dec 2004 Re: pb install MG2.31 sur mandrake10.1 (Ladjal)
                        

Bonjour,

 Quelle est la version de votre noyau? (pour le savoir taper uname -a
en ligne de commande)
 Si la version est 2.4.quelquechose (mais il y a peu de chances, sinon 
l'erreur aurait ete ailleurs que la ou vous le reportez) alors lisez
le message que je poste juste apres.

 Cordialement.

Answer to this message Answer to this message

Back to Message Index Back to Message Index


21 Sep 2004 Installation problem (Vlad Lazar)
             

Hello,

I am still having trouble installing megawave onto Debian or Suse 9 - 
the installer crasher at stage 2 of the module compilation. 

Is there any "fix" to the problem?

Best,
Vlad
Answer to this message Answer to this message

Back to Message Index Back to Message Index


26 Aug 2004 probleme d'installation (foughali)
             

Bonjour,

j'ai essaye d'installe megawave 2.3 sur fedora core 2.0 et malheureusement,
l'installation echoue lors de la compilation des modules au niveau de level 
3.il m'affiche le message suivant:
*****************************************
***** Level 3 : Compile the modules *****
*****************************************
Module "ccopy" cannot be compiled !
Following the corresponding output. Please send these lines when reporting 
bugs:
--------------------------------------------------------------------------------
>>> Welcome on the MegaWave2 Compiler V1.51 <<<
Beware, the target user is the system on /home/karim/megawave2
Phase 1 : MegaWave2 preprocessor
ccopy.c :
/usr/include/libio.h : syntax error line 472
fatal error : 1 error detected. Stop.
Exit.
--------------------------------------------------------------------------------
***** Modules cannot be compiled ! It means something went wrong during the
kern el installation stage...
***** Abort mwinstall at level 3.
+++++ Installation NOT COMPLETE using
+++++ /home/karim/megawave2/kernel/shell/mwinstall -clear /
home/karim/mega wave2
+++++ Try to fix the problem (look at '/home/karim/megawave2/Install.log') 
and rerun mwinstall.
+++++ If mwinstall has failed at a level greater than 1, you may save time
+++++ by adding the parameter '-level l'. In that case, make sure
+++++ your environment variables are correctly set.
+++++ The environment variables you need are initialized in the following 
files :
+++++ /home/karim/megawave2/sys/lib/ix86/.profile_adm_megawave2 (Profile
for Bou rne-compatible shells)
+++++ /home/karim/megawave2/sys/lib/ix86/.cshrc_adm_megawave2 (Csh for 
Ccompatible shells)


Merci d'avance pour un eventuel depannage.


Answer to this message Answer to this message


           27 Aug 2004 Re: probleme d'installation (JF)
                        

See answer to message "10 Aug 2004 Problems installing Megawave 2.30 
(Luis Garrido)"
Answer to this message Answer to this message

Back to Message Index Back to Message Index


8 Aug 2004 Installation problem (Clusty)
             

Hello,

I just got the source code and was really anxious to see what can 
MegaWave do, but bammmm came this error:

 
>>> Welcome on the MegaWave2 Compiler V1.51 <<<
Beware, the target user is the system on /home/clusty/megawave2
 
  Phase 1 : MegaWave2 preprocessor
ccopy.c :
/usr/include/libio.h : syntax error line 464
fatal error : 1 error detected. Stop.
Exit.
---------------------------------------------

What could the error be?

I am running a Debian with kernel 2.6.7

Best,
Clusty
Answer to this message Answer to this message


           27 Aug 2004 Re: Installation problem (JF)
                        

See answer to message "10 Aug 2004 Problems installing Megawave 2.30 
(Luis Garrido)"
Answer to this message Answer to this message

Back to Message Index Back to Message Index


12 Aug 2004 Installation problem on Fedora Core 2.0
             

Failed at compile modules:


*****************************************
***** Level 3 : Compile the modules *****
*****************************************
Module "ccopy" cannot be compiled !
Following the corresponding output. Please send these lines when 
reporting bugs:
--------------------------------------------------------------------------------

>>> Welcome on the MegaWave2 Compiler V1.51 <<<
Beware, the target user is the system on /home1/lzhang/megawave2

  Phase 1 : MegaWave2 preprocessor
ccopy.c :
/usr/include/libio.h : syntax error line 472
fatal error : 1 error detected. Stop.
Exit.


My box runs Fedora Core 2.0, with gcc 3.3.3 and glibc 2.2.93.

/usr/include/libio.h lines 471 and 472 are:
extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
            _IO_va_list, int *__restrict) __THROW;

Any help is appreciated.


Answer to this message Answer to this message

Back to Message Index Back to Message Index


10 Aug 2004 Problems installing Megawave 2.30 (Luis Garrido)
             

I all,

   I recently tried to install Megawave 2.30. However, the installation 
process stops when compiling the modules, as seen in the following log 
taken from the stdout:

*****************************************
***** Level 3 : Compile the modules *****
*****************************************
Module "ccopy" cannot be compiled !
Following the corresponding output. Please send these lines when reporting 
bugs:
--------------------------------------------------------------------------------

>>> Welcome on the MegaWave2 Compiler V1.51 <<<
Beware, the target user is the system on /home/lgarrido/megawave2

  Phase 1 : MegaWave2 preprocessor
ccopy.c :
/usr/include/libio.h : syntax error line 464
fatal error : 1 error detected. Stop.
Exit.
--------------------------------------------------------------------------------
***** Modules cannot be compiled ! It means something went wrong during 
the kernel installation stage...
***** Abort mwinstall at level 3.

*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_

Lines 463 and 464 of file /usr/include/libio.h are the following (posted 
here just in case they may help you finding out the problem):

extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
			_IO_va_list, int *__restrict) __THROW;


   As you can see, the problem appears in the system files, not in the 
Megawave2 files.

   My system is a Debian with libc6 version 2.3.2.ds1-15, gcc version 
3.3.4-2 and kernel 2.6.7. I have tried today to rerun installation of 
Megawave 2.20 (note that this is a prior version) with the current Linux 
installation. No problems appeard during installation.

   Is the problem located in the preprocessor of Megawave 2.30 ? Is there 
any way to avoid preprocessing of system files ? 

   Thank you very much for your help,

    Luis Garrido  


Answer to this message Answer to this message


           27 Aug 2004 Re: Problems installing Megawave 2.30 (JF)
                        

The problem is indeed located in the preprocessor. It is due to the fact 
that sometimes the glibc uses non-standard C instructions, recognized by 
gcc only. We are dealing with this problem, by re-writing the preprocessor 
part which will no more read include files.

In the while, you can try one of the following :
- use a compatible glibc version (see list of systems in the README file);
- or patch the *.h include files that cause problems, as we do it (see 
$MEGAWAVE2/kernel/lib/include/Linux).

In your case, you say compilation is OK with Megawave 2.20. Therefore you 
may try to copy the include files patches from 2.20 to 2.30, and to re-do 
installation.

Sincerely,
JF
Answer to this message Answer to this message

Back to Message Index Back to Message Index


29 Jul 2004 image DICOM (foughali)
             

bonjour,

comment convertir une image DICOM pour etre compressible par megawave2
 Amities
 foughali
Answer to this message Answer to this message

Back to Message Index Back to Message Index


23 Jun 2004 Probleme d'installation (DANG Jean-Marie)
             

Bonjour,
j'utilise une mandrake 10.0 Official. J'ai un problemme avec l'analyseur 
syntaxique :

gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI -DXMWP -DLinux -DFLEX -O 
-DCPPCMD=\"/lib/cpp\" -c main.c -o 
/home/nguyenxj/megawave2/kernel_obj/mwp/obj/ix86/main.o
gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI -DXMWP -DLinux -DFLEX -O 
-c symbol.c -o /home/nguyenxj/megawave2/kernel_obj/mwp/obj/ix86/symbol.o
bison -dvt mwp.y
mwp.y: conflicts: 2 shift/reduce
make: *** [/home/nguyenxj/megawave2/kernel_obj/mwp/obj/ix86/y.tab.o]
 Broken pipe
*** Error in 'make all' ! Abort mwp Install. ***
=== Error in mwp Install ! Abort kernel Install. ===
***** Error while compiling kernel !

J'ai installé le package suivant pour bison : bison-1.875-4mdk .

J'ai ensuite essayé de désinstaller bison et d'installer yacc mais 
l'install cherchait quand mm a utiliser bison et me disait au mm endroit 
- bison commande introuvable.

Merci d'avance pour un eventuel depannage.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


11 Jun 2004 Install megawave2.2 on mandrake9.1
             

Always dead, I have tried 2 times. (Install 2.3 have the same 
problem). What 's wrong? Any idea? 
 
The system halt by telling me: 
mwp/obj/ix86/fillmwarg.o 
/home/young/megawave2/kernel_obj/mwp/obj/ix86/omwarg.o 
/home/young/megawave2/kernel_obj/mwp/obj/ix86/odbgmwarg.o 
/home/young/megawave2/kernel_obj/mwp/obj/ix86/genmain.o 
/home/young/megawave2/kernel_obj/mwp/obj/ix86/genxmain.o 
/home/young/megawave2/kernel_obj/mwp/obj/ix86/genifile.o 
/home/young/megawave2/kernel_obj/mwp/obj/ix86/gentex.o 
/home/young/megawave2/kernel_obj/mwp/obj/ix86/mw_present.o 
/home/young/megawave2/kernel_obj/mwp/obj/ix86/printnod.o 
/home/young/megawave2/kernel_obj/mwp/obj/ix86/data_io.o 
/home/young/megawave2/kernel_obj/mwp/obj/ix86/lex.yy_.o 
lex.yy.c y.tab.c y.output y.tab.h mwp.output 
gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI 
-DXMWP -DLinux -DFLEX -O -DCPPCMD=\"/lib/cpp\" -c main.c -o 
/home/young/megawave2/kernel_obj/mwp/obj/ix86/main.o 
gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI 
-DXMWP -DLinux -DFLEX -O -c symbol.c -o 
/home/young/megawave2/kernel_obj/mwp/obj/ix86/symbol.o 
bison -dvt mwp.y 
make: bison : commande introuvable 
make: *** 
[/home/young/megawave2/kernel_obj/mwp/obj/ix86/y.tab.o] Erreur 
127 
*** Error in 'make all' ! Abort mwp Install. *** 
=== Error in mwp Install ! Abort kernel Install. === 
***** Error while compiling kernel ! 
***** Abort mwinstall at level 2. 
+++++ Installation NOT COMPLETE using 
+++++      /home/young/megawave2/kernel/shell/mwinstall  -clear 
/home/young/megawave2 
+++++ Try to fix the problem (look at 
'/home/young/megawave2/Install.log') and rerun mwinstall. 
+++++ If mwinstall has failed at a level greater than 1, you may save 
time 
+++++ by adding the parameter '-level l'. In that case, make sure  
+++++ your environment variables are correctly set. 
+++++ The environment variables you need are initialized in the 
following files : 
+++++ 
/home/young/megawave2/sys/lib/ix86/.profile_adm_megawave2 
(Profile for Bourne-compatible shells) 
+++++ 
/home/young/megawave2/sys/lib/ix86/.cshrc_adm_megawave2 
(Csh for C-compatible shells) 
[root@localhost megawave2]#  
Answer to this message Answer to this message


           14 Jun 2004 Re: Install megawave2.2 on mandrake9.1 (JF)
                        

Hello,

What's wrong is given by the line
 make: bison : commande introuvable 
Install the package bison and rerun MegaWave Install.

Sincerely,
JF

Answer to this message Answer to this message

Back to Message Index Back to Message Index


1 Jun 2004 installation megawave 2.3 (francois)
             

Bonjour, 

j'ai essaye d'installe megawave 2.3 sur une redhat9 (noyau 
2.4.20-8smp, glibc 2.3.2-11.9, gcc 3.2.2), et malheureusement, 
l'installation echoue lors de la verification des modules 
(segmentation fault...). Est-ce du a la configuration de ma 
machine (plus vieille que la configuration annoncee dans le 
README excepte pour glibc: 2.3.2-11.9 au lieu de 2.3.2) ?

Merci
francois
PS : le lien html vers la nouvelle version de megawave est 
incorrect (il pointe vers xxx.tar.gz et non xxx.tgz)
Answer to this message Answer to this message


           3 Jun 2004 Re: installation megawave 2.3
                        

Est-ce un module ou alors le shell qui plante ? Le mieux serait 
de nous fournir une copie des dernières lignes de l'installation. 
Cordialement, JF. 
Answer to this message Answer to this message

Back to Message Index Back to Message Index


6 Apr 2004 Ouverture surfacique (mathieu)
             

Bonjour, je suis actuellement en DEA et je dois réaliser une fonction 
d'ouverture surfacique. Aprés avoir contacté mlle C.Vachier, j'ai
pensé utiliser la fonction "fast level set transform" et modifier les 
conditions de stockage des nouvelles "shapes" dans la fonction 
"find_terminal_beanch" de maniére à n'agire que sur les maximums de 
l'image. Pour cela j'ai remplacé:"if(iMinArea <= iArea" par 
"if((iMinArea <=iArea && is_local_max(ou,x,y,(char)1))||
(is_local_min(ou,x,y,(char)0))"
Tous compile bien et l'édition de liens se passe sans probléme mais 
le programme plaque chaque fois a l'assertion ligne 514. 
Je n'arrive pas à comprendre pourquoi ce changement de conditions 
perturbe le reste du programme. D'aprés ce j'ai compris , il ne doit 
pas étres incompatible avec les conditions précédentes.
Si vous avez déjà rencontré (et résolut !) ce genre de problème 
pourriez vous me dire où est l'erruer.
En vous remerciant.
Mathieu
Answer to this message Answer to this message


           6 Apr 2004 Re: Ouverture surfacique (Pascal Monasse)
                        

Cher Mathieu, 
Le problème est que l'algorithme est conçu pour extraire 
toutes les shapes d'aire suffisante. En particulier, si une 
shape est stockée, la shape parent est supposée être 
stockée plus tard, faute de quoi l'algorithme est incapable 
de construire la hiérarchie. 
La meilleure solution est de ne pas modifier le module 
flst, mais d'utiliser l'arbre complet et de le modifier 
après coup, par exemple en utilisant le champ 'removed'. Le 
module fgrain est un exemple simple de cette technique. 
Cordialement, 
Pascal 
Answer to this message Answer to this message


                      7 Apr 2004 Re: Re: Ouverture surfacique
                                   

Je vous remerci pour votre réponse.
Je vais voir ce que ca donne.

Mathieu Fauvel
Answer to this message Answer to this message

Back to Message Index Back to Message Index


7 Mar 2004 Install failed (debute)
             

Bonjour, 
j'ai essayé d'installer le version 2.20 sur Mandrake 8, mais 
ça ne marche pas. J'ai deux messages d'erreurs:
dc:commande not found et chmod trop peu de parametres !?
merci

Answer to this message Answer to this message


           30 Mar 2004 Re: Install failed
                        

Bonjour,

Effectivement dans la version actuellement distribuée,
dc ("an arbitrary precision calculator") est nécessaire.
Il peut être installé à partir du CD de distribution de
Linux. Concernant l'erreur du chmod, il faudrait que vous
nous donniez plus de précision.

Cordialement,
JF 
Answer to this message Answer to this message

Back to Message Index Back to Message Index


22 Jan 2004 Installation problem
             

I can't manage to install megawave on my computer. My 
machine an apple powerbook with debian gnu/linx. I got 
this error message: 
>>> Welcome on the MegaWave2 Compiler V1.49 <<< 
Beware, the target user is the system 
on /home/jaonary/megawave2 
 
  Phase 1 : MegaWave2 preprocessor 
ccopy.c : 
done. 
  Phase 2 : production of sources and objects 
          production of document squeleton 
(doc/obj/ccopy.doc) 
          production of arguments analyser object 
          production of module object 
/home/jaonary/megawave2/sys/include/Linux/stdio_2.2.h:264: 
warning: conflicting types for built-in function `vprintf' 
/home/jaonary/megawave2/sys/include/Linux/stdio_2.2.h:267: 
warning: conflicting types for built-in function 
`vsprintf' 
/home/jaonary/megawave2/sys/include/Linux/stdio_2.2.h:284: 
warning: conflicting types for built-in function 
`vsnprintf' 
          add objects to MegaWave2 user library 
          production of interface with MegaWave2 
interpretor source 
          production of interface with MegaWave2 library 
object 
  Phase 3 : production of MegaWave command 
          linking MegaWave2 command "ccopy" on unknown 
with additional libraries [-lW_X11R4 -lX11 ] 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_read_scanlines' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_calc_output_dimensions' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_set_defaults' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_start_decompress' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_write_marker' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_destroy_decompress' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_std_error' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_CreateDecompress' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_set_marker_processor' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_read_header' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_start_compress' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_destroy_compress' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_finish_decompress' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_stdio_src' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_CreateCompress' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_finish_compress' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_set_quality' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_stdio_dest' 
/home/jaonary/megawave2/sys/lib/unknown/libsysmw.so: 
undefined reference to `jpeg_write_scanlines' 
collect2: ld returned 1 exit status 
          Link failed : exit. 
 
Answer to this message Answer to this message


           13 Feb 2004 Re: Installation problem
                        

The problem is related to the jpeg library, which should be installed under /usr/lib.

Make sure that you installed:

libjpeg62
libjpeg62-dev 




Answer to this message Answer to this message


                      14 Sep 2004 Re: Re: Installation problem (pe)
                                   

j'ai le même problème mais les libjpeg62 et libjpeg62-dev sont installées.
Une idée ... 
merci pour votre réponse
Answer to this message Answer to this message


                                 16 Sep 2004 Re: Re: Re: Installation problem (pe)
                                              

ok j'ai résolu le problème en ajoutant a la commande
cmw2 -ljpeg 
Answer to this message Answer to this message

Back to Message Index Back to Message Index


30 Dec 2003 where are you?
             

Is this forum always functionnal? I need help with megawave in mac os X.
Thanks.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


11 Dec 2003 porting megawave on mac os x (Jaonary)
             

Hi all,
I've tried to port megawave on mac os x without success. I've began with 
changing all Makefile.in and some config file so that megawave installer 
reconize Darwin (the mac os x kernel). In doing that I was been able to 
compile the kernel. But when I tried to compile the modules I got 'failed' 
every where. I noticed thne that when compiling the kernel there were 
some library that were not linked. In fact, Darwin doesn't behave like 
Linux with the dynamical and shared library linking and the 'ld -shared' 
linker command doesn't do exactly the same thing as in Linux. I didn't 
understand much thing in library and linker so if anyone could help, 
especialy explain the defferent stage in compiling mw kernel. I 've also 
wondered if MW2 devolopper could developpe a more classical 
installation script, I mean with autoconf and automake so that mw2 will 
be easily portable. 
Thanks for your help which will be precious for me.
Answer to this message Answer to this message


           21 Dec 2004 Re: porting megawave on mac os x (enric)
                        

Hi, we've also been trying to compile it under mac os x.  Changing some 
includery we've managed to compile the kernel.  Unfortunately, the megawave 
preprocessor fails with an obscure error: it says it doesn't have permission 
to write a temporary file on the /tmp directory.  There's not much that can 
be done from here.

And yes, we agree with you that a more reasonable installation process would 
be lovely.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


1 Dec 2003 Problem to compile my own module (Young)
             

I write a cmedian.c and put it into directory:
/my_megawave2/src
Then I use mw2 cmedian to compile it. The system returns:
[zeng@a1 src]$ cmw2 cmedian

>>> Welcome on the MegaWave2 Compiler V1.48 <<<

  Phase 1 : MegaWave2 preprocessor
cmedian.c :
done.
  Phase 2 : production of sources and objects
          production of document squeleton (doc/obj/cmedian.doc)
          production of arguments analyser object
          production of module object
cmedian.c: In function `cmedian':
cmedian.c:165: warning: return from incompatible pointer type
          add objects to MegaWave2 user library
          production of interface with MegaWave2 interpretor source
          production of interface with MegaWave2 library object
  Phase 3 : production of MegaWave command
          linking MegaWave2 command "cmedian" on ix86 with additional 
libraries [-lW_X11R4 -lX11 ]

It seems it works fine. But when I type cmedian, I always get:
[zeng@a1 src]$ cmdian
bash: cmdian: command not found
[zeng@a1 src]$
So what can I do? Anything wrong?

Answer to this message Answer to this message


           30 May 2008 Re: Problem to compile my own module
                        

you got and e missing, when you run
Answer to this message Answer to this message

Back to Message Index Back to Message Index


11 Nov 2003 Install failed in Redhat 9.0 (jacoo)
             

I have completed the installation of megawave2.20, but when I choose
to 
check the module, following messages are on the scene:
***** module  failed
MegaWave2 warning (cfgetchannels) : Module of same name hidden by this one !
/usr/local/megawave2/shell/Checkmodules: line 152:  7754 Segmentation fault
      cfgetchannels ccimage $tmp/1 $tmp/2 $tmp/3 >/dev/null
MegaWave2 warning (fnorm) : Module of same name hidden by this one !
MegaWave2 warning (fnorm) : Module of same name hidden by this one !
MegaWave2 warning (fnorm) : Module of same name hidden by this one !

Please give me an answer. Thanks.
Answer to this message Answer to this message


           18 Nov 2003 Re: Install failed in Redhat 9.0 (JF)
                        

People have reported problems running MegaWave on Redhat 9.0, 
but we cannot fix them at this time since we are still
using older Linux kernel. To avoid any problem, you should 
install MegaWave on kernel and gcc/glibc not newer than the 
newest one listed in the README file, Section SYSTEM 
REQUIREMENT AND COMPATIBILITY. 
With MegaWave2 2.20 it reads :
   kernel 2.4.19, gcc 3.2, glibc 2.2.5

Sincerely,
JF


Answer to this message Answer to this message

Back to Message Index Back to Message Index


10 Nov 2003 png support (enric meinhardt llopis)
             

I see there is GIF, TIFF and JPEG suport in megawave.  Are there 
any plans to include PNG support?

best regards,
enric
Answer to this message Answer to this message


           18 Nov 2003 Re: png support (JF)
                        

We don't plan to support all image formats, as this is 
not the goal of MegaWave to act as an image converter. 
You may use external image converter, such as convert(1)
which is included in the ImageMagick package.

Sincerely,
JF.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


10 Nov 2003 using megawave as a library
             

Are there any facilites for using functions of megawave from another 
program?

I would like to use it as a regular unix library, compiling programs 
with their own main, and not as modules inside the megawave framework.  
Unfortunately, I've not found in the documentation the way to do so.

thanks in advance, and this is marvelous software, by the way
Answer to this message Answer to this message


           18 Nov 2003 Re: using megawave as a library (JF)
                        

Hi,

It's very easy to use MegaWave2 functions (both modules
and system ones) in another program. Just make sure to
include mw.h in your source and, while linking, to add the 
MegaWave2 libraries (libsysmw.so and, if you are calling
modules, libmw.a). 

Sincerely,
JF.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


8 Nov 2003 problem with /megawave2/kernel/mwp/mwp.y (Rahul Dabane)
             

I'm installing Megawave 2.20 on Suse Linux 8.2
the file megawave2/kernel/mwp/mwp.y doesn't work.
If I do bison -dvt mwp.y  at the commmand prompt, it gives errors.
Please let me know the solution.

Answer to this message Answer to this message


           21 Apr 2004 Re: problem with /megawave2/kernel/mwp/m (Gabriele Facciolo)
                        

I had the same problem on Suse 8.2,

the fix is:

at the line 3266 of "mwp.y" (where appears: %%)
add a new line with
      ;


thats all.
good luck

Answer to this message Answer to this message

Back to Message Index Back to Message Index


7 Nov 2003 OpenCV Crop-n-Save
             

Hi all,

If anyone out there knows how to extract a segment of an image defined 
by a region of interest, I'd be grateful for any help. I have read in 
the images, and done some other manipulation, but writing the 
BoundingRect of my subimage to another file (of appropriate size) is 
proving difficult.

Or if anyone would be able to direct me a little on looping through 
IlpImage pixels, I'm sure I could get around it that way either.
Cheers!
Tras.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


5 Nov 2003 Installation sur Mac Os X (Jaonary)
             

Bonjour tout le monde,
Je voudrai installer megawave sur un mac powerpc tournant sous 
mac os X si quelqu'un a deja tente l'exprience. 
Cordialement
Answer to this message Answer to this message


           6 Nov 2003 Re: Installation sur Mac Os X (Said Ladjal)
                        

Bonjour,

 J'ai installé MW sur un mac mais tournant sous linux, non pas 
sous OS X. Je compte me lancer dans l'adpatation a Mac OS X, mais 
la il me faudrait du temps.

 Si tu as installé linux, installer MW dessus est tres simple. Le 
seul probleme est que les char sont par defaut non signes sous 
ppc/linux/gcc. j'ai simplement renome l'executable gcc en 
gcc_veritable et remplace gcc par un script qui fait

gcc_veritable -fsigned-char $@

une fois installe MW on remet gcc a sa place en se souvenant (pour 
les programmes qu'on compte ecrire) que si on veut qu'un char soit 
signe il faut ecrire:

signed char blabla; /*qui est une bonne habitude sous PC/gcc aussi*/

 et non pas:

char blabla; 

comme on a l'habitude de le faire sous i486/linux/gcc.

 Si vous voulez plus de renseignements vous pouvez me mailer 
(attention a l'anti-spam...)

-- 
 Said.

Answer to this message Answer to this message

Back to Message Index Back to Message Index


3 Nov 2003 problem with mwp.y (Rahul Dabane)
             

I'm getting following error message with installing Megawave 2.20. 
Please let me know what I can do to resolve the issue. 
Thanks, 
Rahul Dabane. 
 
*** Install done for the system library on /megawave/megawave2 *** 
 
*** Install the MegaWave2 preprocessor (mwp Install) *** 
Makefile configuration parameters : arch = 'Linux ix86' opt='' 
Scanning ./Makefile.in and writing ./Makefile (200 
lines)...............................................................
.....................................................................
.................................................................... 
/bin/rm -f /megawave/megawave2/kernel_obj/mwp/obj/ix86/main.o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/symbol.o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/y.tab.o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/lex.yy.o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/io.o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/bintree.o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/fillmwarg.o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/omwarg.o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/odbgmwarg.o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/genmain.o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/genxmain.o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/genifile.o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/gentex.o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/mw_present.o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/printnod.o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/data_io.o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/lex.yy_.o lex.yy.c 
y.tab.c y.output y.tab.h mwp.output 
gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI 
-DXMWP -DLinux -DFLEX -O -DCPPCMD=\"/lib/cpp\" -c main.c -o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/main.o 
gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI 
-DXMWP -DLinux -DFLEX -O -c symbol.c -o 
/megawave/megawave2/kernel_obj/mwp/obj/ix86/symbol.o 
bison -dvt mwp.y 
mwp.y:2549.1: invalid character: `#' 
mwp.y:2549.8-15: parse error, unexpected "identifier", expecting ":" 
mwp.y:2550.32: invalid character: `(' 
mwp.y:2550.41: invalid character: `,' 
mwp.y:2550.59: invalid charainvalid character: `*' 
mwp.y:2659.32: invalid character: `,' 
mwp.y:2659.39: invalid character: `*' 
mwp.y:2659.45: invalid character: `)' 
mwp.y:2660.1: invalid character: `#' 
mwp.y:2661.6: invalid character: `*' 
mwp.y:2661.13: invalid character: `(' 
mwp.y:2661.18: invalid character: `,' 
mwp.y:2661.22: invalid character: `,' 
mwp.y:2661.29: invalid character: `)' 
mwp.y:2663.6: invalid character: `*' 
mwp.y:2663.7-8: parse error, unexpected "identifier", expecting ":" 
mwp.y:2664.6: invalid character: `*' 
mwp.y:2664.7-11: parse error, unexpected "identifier", expecting ":" 
mwp.y:2665.1: invalid character: `#' 
mwp.y:2666.1-2727.1: parse error, unexpected "{...}", expecting ":" 
mwp.y:2741.1: invalid character: `#' 
mwp.y:2742.6: invalid character: `*' 
mwp.y:2742.14: invalid character: `(' 
mwp.y:2742.20: invalid character: `*' 
mwp.y:2742.22: invalid character: `,' 
mwp.y:2742.29: invalid character: `,' 
mwp.y:2742.36: invalid character: `*' 
mwp.y:2742.41: invalid character: `,' 
mwp.y:2742.48: invalid character: `*' 
mwp.y:2742.53: invalid character: `,' 
mwp.y:2742.60: invalid character: `*' 
mwp.y:2742.65: invalid character: `,' 
mwp.y:2742.72: invalid character: `*' 
mwp.y:2742.77: invalid character: `)' 
mwp.y:2743.1: invalid character: `#' 
mwp.y:2744.6: invalid character: `*' 
mwp.y:2744.14: invalid character: `(' 
mwp.y:2744.16: invalid character: `,' 
mwp.y:2744.19: invalid character: `,' 
mwp.y:2744.25: invalid character: `,' 
mwp.y:2744.31: invalid character: `,' 
mwp.y:2744.37: invalid ch: invalid character: `#' 
mwp.y:2749.1-2755.1: parse error, unexpected "{...}", expecting ":" 
mwp.y:2769.1: invalid character: `#' 
mwp.y:2770.6: invalid character: `*' 
mwp.y:2770.14: invalid character: `(' 
mwp.y:2770.24: invalid character: `,' 
mwp.y:2770.31: invalid character: `*' 
mwp.y:2770.33: invalid character: `)' 
mwp.y:2771.1: invalid character: `#' 
mwp.y:2772.6: invalid character: `*' 
mwp.y:2772.14: invalid character: `(' 
mwp.y:2772.20: invalid character: `,' 
mwp.y:2772.23: invalid character: `)' 
mwp.y:2774.6: invalid character: `*' 
mwp.y:2774.7: parse error, unexpected "identifier", expecting ":" 
mwp.y:2775.1: invalid character: `#' 
mwp.y:2776.1-3266.0: unexpected end of file in a braced code 
mwp.y:2776.1-3266.0: parse error, unexpected "{...}", expecting ":" 
make: *** [/megawave/megawave2/kernel_obj/mwp/obj/ix86/y.tab.o] 
Error 1 
*** Error in 'make all' ! Abort mwp Install. *** 
=== Error in mwp Install ! Abort kernel Install. === 
***** Error while compiling kernel ! 
***** Abort mwfiles : 
+++++ /megawave/megawave2/sys/lib/ix86/.profile_adm_megawave2 
(Profile for Bourne-compatible shells) 
+++++ /megawave/megawave2/sys/lib/ix86/.cshrc_adm_megawave2 
(Csh for C-compatible shells) 
 
Answer to this message Answer to this message

Back to Message Index Back to Message Index


30 Jul 2003 installation Redhat 9
             

hello,
i have a big problem with installation with RedHat 9, 
in fact all the installation is ok, but when i want to CheckModules 
i have many segmentation Fault in all packages.
So if i do fview fimage (It's OK) 
but  if i do fview image.pgm (Segmentation Fault)
Compilation with gcc3.2 
ldd download/megawave2/bin/ix86/fview 
        libsysmw.so => /home/arno/download/megawave2/sys/lib/ix86/
libsysmw.so (0x40017000)
        libW_X11R4.so => /home/arno/download/megawave2/sys/lib/ix86/
libW_X11R4.so (0x401dd000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x401f9000)
        libm.so.6 => /lib/tls/libm.so.6 (0x 2003 i686 i686 i386 GNU/Linux
It's ok on Linux kernel 2.4.18 and libc-2.2.93
but me i have kernel 2.4.20 and libc-2.3.2
help me please 
Arnaud
Answer to this message Answer to this message


           6 Nov 2003 Re: installation Redhat 9 (JF)
                        

Hard to say what is happening. What are the system and versions 
you are using ? For example, my current versions are
uname -a : Linux 2.4.19-16mdk 
bison -V : bison (GNU Bison) 1.35
gcc -v : gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
and everythings run fine.


Answer to this message Answer to this message

Back to Message Index Back to Message Index


26 Aug 2003 question au sujet du débruitage
             

Bonjour,
j'essaie de faire de l'extraction de contours, à partir de photos 
prises à haute vitesse (1700 ips), mais j'ai un problème de bruit, 
sans doute dû à la caméra.

Ce bruit pollue cette extraction de contous.
Les 2 images mises en ligne à
http://el_gringo.monsite.wanadoo.fr/
permettent de se faire une idée du problème.

Y a-t-il moyen de débruiter ces images ?

Je dispose de séquences faisant de 120 à 150 images.

Merci par avance pour votre aide.

Answer to this message Answer to this message

Back to Message Index Back to Message Index


13 May 2003 Problems with installation at level 3 (Catalina Sbert)
             


I have problems at level 3
The message of error is:

********************************
***** Level 3 : Compile the modules *****
*****************************************
Module "ccopy" cannot be compiled !
Following the corresponding output. Please send these lines when reporting bugs:
--------------------------------------------------------------------------------

Welcome on the MegaWave2 Compiler V1.49 <<<
Beware, the target user is the system on /home/catalina/megawave2

  Phase 1 : MegaWave2 preprocessor
ccopy.c :
done.
  Phase 2 : production of sources and objects
     .so: undefined reference to `jpeg_read_scanlines'
/home/catalina/megawave2/sys/lib/ix86/libsysmw.so: undefined reference to 
`jpeg_calc_output_dimensions'
/home/catalina/megawave2/sys/lib/ix86/libsysmw.so: undefined reference to 
`jpeg_set_defaults'
/home/catalina/megawave2/sys/lib/ix86/libsysmw.so: undefined reference to 
`jpeg_start_decompress'
/home/catalina/megawave2/sys/lib/ix86/libsysmw.so: undefined reference to 
`jpeg_write_marker'
/home/catalina/megawave2/sys/lib/ix86/libsysmw.so: undefined reference to 
`jpeg_destroy_decompress'
/home/catalina/megawave2/sys/lib/ix86/libsysmw.so: undefined reference to 
`jpeg_std_error'
/home/catalina/megawave2/sys/lib/ix86/libsysmw.so: undefined reference to 
`jpeg_CreateDecompress'
/home/catalina/megawave2/sys/lib/ix86/libsysmw.so: undefined reference to 
`jpeg_set_marker_processor'
/home/catalina/megawave2/sys/lib/ix86/libsysmw.so: undefined reference to 
`jpeg_read_header'
/home/catalina/megawave2/sys/lib/ix86/libsysmw.so: undefined reference to 
`jpeg_start_compress'
/hom86/libsysmw.so: undefined reference to `jpeg_set_quality'
/home/catalina/megawave2/sys/lib/ix86/libsysmw.so: undefined reference to 
`jpeg_stdio_dest'
/home/catalina/megawave2/sys/lib/ix86/libsysmw.so: undefined reference to 
`jpeg_write_scanlines'
collect2: ld returned 1 exit status
          Link failed : exit.
--------------------------------------------------------------------------------
***** Modules cannot be compiled ! It means something went wrong during the 
kernel installation stage...
***** Abort mwinstall at level 3.
+++++ Installation NOT COMPLETE using
+++++      /home/catalina/megawave2/kernel/shell/mwinstall  -public=private 
-clear -debug /home/catalina/megawave2
+++++ Try to fix the problem (look at '/home/catalina/megawave2/Install.log') 
and rerun mwinstall.
+++++ If mwinstall has failed at a level greater than 1, you may save time
+++++ by adding the parameter '-level l'. In that case, make sure
+++++ your environment variables are correctly set.
+++++ The environment variables you need are initialized in the following files :
+++++ /home/catalina/megawave2/sys/lib/ix86/.profile_adm_megawave2 (Profile 
for Bourne-compatible shells)
+++++ /home/catalina/megawave2/sys/lib/ix86/.cshrc_adm_megawave2 (Csh for 
C-compatible shells)

Answer to this message Answer to this message


           23 Dec 2003 Re: Problems with installation at level (jeremie)
                        

I have the same problem.

I'm using a Slackware.
root@amande:~# uname -a
Linux amande 2.4.18 #4 Fri May 31 01:25:31 PDT 2002 i686 unknown

I do have the jpeg lib on my hd.
-rwxr-xr-x    1 root     root       139512 Mar 24  2002 libjpeg.so.62.0.0

Any help would be welcome.

jérémie
Answer to this message Answer to this message


           28 Dec 2003 Re: Problems with installation at level 3 (jérémie)
                        

I had exactly the same problem.
I'm using a Slackware 9.0 distribution.
Yet, I do have the jpeg.so.62 and jpeg-devel
on my disk, but it seems like the installation
script can't find them (but it can with tiff, X) although
all environement variables are correctly set : strange.
So I run independently the kernel installation script
$MEGAWAVE2/kernel/Install

and then for the modules, in the $MEGAWAVE2/ directory
cmw2_all -dep -2p -ljpeg src/
And it worked fine.

I hope you can do the same,

jérémie

Answer to this message Answer to this message

Back to Message Index Back to Message Index


26 Mar 2003 Installation (francesco)
             

In the Level 3\Phase 3 I've this problem for production of MegaWave 
command:
 linking MegaWave2 command "ccopy" on unknown with additional 
libraries[-lW_X11R4 -lX11 ]

How can I revolve it?


Answer to this message Answer to this message


           27 Mar 2003 Re: Installation (JF)
                        

On which architecture have you installed MegaWave2 ? 
Your message means content of the environmental variable
$MW_MACHINETYPE is unknown. This variable is normally
set by the script mwsetenv during the first installation
stage (level 1). If this script does not recognize the
machine architecture, a big "WARNING !!!" is issued. 
Did you get such message ? I believe no, since you probably
wouldn't reach level 3. Try to source the file which set
the environmental variables (as the message "To get the 
environement needed to use this PUBLIC MegaWave2, source 
the following files..." told you) and check now if the 
$MW_MACHINETYPE is set to a meaningfull value. If yes, you 
can go to level 3 to compile modules.

Sincerely,
JF.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


25 Mar 2003 abstract data types
             

Dear MegaWave Experts,
I am just discovering your software and I think it has a great potential 
for educational and research purposes. I would like to know in the modules 
can be coded in C++. Precisely, can I use external ADT libraries, like the 
STL, in my modules?
Thank you for your help.

Answer to this message Answer to this message


           27 Mar 2003 Re: abstract data types (JF)
                        

Yes, you can add external libraries by using switch -l
(and -L if needed) when calling cmw2 or cmw2_all.
However, code in MegaWave2 modules should be plain C
and not C++.

Sincerely,
JF.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


13 Mar 2003 utilisation de la fonction canny.c,fgrai (arnaud)
             

j'ai installer Megawave que je trouve particulierement bien fait mais 
j'ai un souci : Pourquoi il me retourne une segmentation fault sur ce 
bout de code:

l'erreur se produit dans l'appel de la fonction fgrain,
cela doit etre tout bete, mais j'avoue que je seche.
Merci pour votre aide.
 :/*--------------------------- MegaWave2 module -----------------------------*/
/* mwcommand
 name = {essai};
 author = {"Jacques Froment"};
 version = {"1.0"};
 function = {"Adds the pixel's gray-levels of two fimages (for demo #1)"};
 usage = {
   fimage1->A
      "Input fimage #1",

   result<-B
      "Output image"
};
*/
/*------------------------------------e.\n");
  printf("appel fderiv\n");
   fderiv(A,NULL,NULL,NULL,NULL,NULL,NULL,B,NULL,&zero,&huit);
  printf("fin appel fderiv\n");
   _mw_fimage_create_image("./image.img",B,type);
   fgrain(20,A,B);
}
Answer to this message Answer to this message


           17 Mar 2003 Re: utilisation de la fonction canny.c,fgrai (arnaud)
                        

ouais autant pour moi j'avais trop fait de matlab,

Answer to this message Answer to this message

Back to Message Index Back to Message Index


11 Mar 2003 user field in modules
             

Hello,
I have a beginner's question:
How can I use the field left to the user (void* data) in some modules? 
Do I have to change the data type and recompile the module?
Thanks for your help.
MW user.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


13 Dec 2002 A Solution for asm/io.h problem!!! (Victor Guerra)
             

Last time i reported that if u compile any file which includes 
asm/io.h it brakes down. Well im trying to write to the parallel 
port, so i had to use external functions that writes to the 
parallel port. For example lets say that u wanna initialiting 
the parallel port, so u need to write a C program that does the 
initialitation, and then u use the function that initialitates 
the parallel port as a external function. In this way u omit any 
kind of link with the library asm/io.h

Thanks for your attention, 
Any other solution?.. plz let me know!!!
Victor Guerra
Answer to this message Answer to this message

Back to Message Index Back to Message Index


7 Dec 2002 asm/io.h library's problem!! (Victor Guerra)
             

Hi megawave experts. This time, i am trying yo use the parallel port 
in megawave2. But when i include the asm/io.h library i found an error.
The erros is:

>>> Welcome on the MegaWave2 Compiler V1.47 <<<

  Phase 1 : MegaWave2 preprocessor
video_scan.c :
/usr/include/asm/io.h : parse error line 85
fatal error : 1 error detected. Stop.
Exit.

I guess that the problem with the library is the macro that is in this 
line. 
But when i try it with gcc o cc it works. I dont why with cmw2 it crashes, 
( cmw2 uses too gcc or cc ).
Thanks for your attentios.

VICTOR GUERRA
Answer to this message Answer to this message


           16 Dec 2002 Re: asm/io.h library's problem!!
                        

Hi,

The problem is that gcc uses a super-set of ANSI C
instructions, and some .h files written for gcc only use
such non-standard extensions (it may be the case of your
asm/io.h file). But the MegaWave2 grammar assumes plain C.
See the file $MEGAWAVE2/sys/include/Linux/README for more about this.
A solution is to modify the line MegaWave2 considers
as illegal, as it is done in $MEGAWAVE2/sys/include/Linux/

JF.


Answer to this message Answer to this message

Back to Message Index Back to Message Index


4 Dec 2002 Installation problem for solaris (Jenny)
             

I have difficulties in installing MegaWave2 to my unix machine. 
The error message is as following:
Cannot find the directory for the TIFF library.
(This one is optional. If you don't have it, type )
Please type the location with full pathname :
(Answer is )
May I rewrite Profile and Cshrc files for the Administrator 
located in
/.../umiacs.umd.edu/fs/homes/shaojie/megawave2/sys/lib/sun4_5/
.profile_adm_megawave2
and in
/.../umiacs.umd.edu/fs/homes/shaojie/megawave2/sys/lib/sun4_5/
.cshrc_adm_megawave2 [Y/N] ? [default Y]
(Answer is Y)
New Profile and Cshrc for Administrator set in
/.../umiacs.umd.edu/fs/homes/shaojie/megawave2/sys/lib/sun4_5/
.profile_adm_megawave2
/.../umiacs.umd.edu/fs/homes/shaojie/megawave2/sys/lib/sun4_5/
.cshrc_adm_megawave2
****************************************
***** Level 2 : Compile the kernel *****
*****************************************
***** Error while compiling kernel !
***** Abort mwinstall at level 2.
+++++ Installation NOT COMPLETE using
+++++      /.../umiacs.umd.edu/fs/homes/shaojie/megawave2/kernel/
shell/mwinstall  -clear /.../umiacs.umd.edu/fs/
homes/shaojie/megawave2
+++++ Try to fix the problem and rerun mwinstall. If this command 
has failed at a level l greater
+++++ than 1, you may save time by adding the parameter '-level l'. 
In that case, make sure
+++++ your environment variables are correctly set.
+++++ The environment variables you need are initialized in the 
following files :
+++++ /.../umiacs.umd.edu/fs/homes/shaojie/megawave2/sys/lib/sun4_5/
.profile_adm_megawave2 (Profile for Bourne-c
ompatible shells)
+++++ /.../umiacs.umd.edu/fs/homes/shaojie/megawave2/sys/lib/sun4_5/
.cshrc_adm_megawave2 (Csh for C-compatible s
hells)
====
==== Tue Dec 3 18:40:43 EST 2002: Run Install Vers 1.7 to install 
MegaWave2 Vers 2.10

Could you please help me to find out what's wring with my installation. 
Thanks a lot!


Yours sincerely 
Jenny

Answer to this message Answer to this message

Back to Message Index Back to Message Index


3 Dec 2002 Its done!! (Victor Guerra)
             

I fixed the problem using another library. This new one is a copy 
from linux/videodevice.h but the diference is the includeś 
lkibrarys. Instead of 

#include 
#include 

i use

include 
#include 
#include 

i know that this is not the best solution, but it works.
Thanks for your attention!!

Answer to this message Answer to this message

Back to Message Index Back to Message Index


25 Nov 2002 Compilation Problem!! (Victor Guerra)
             

Hi, few days ago, i sent a message, reportting an error compilation. 
When i try to compile the camview.c that you can find at 
http://www.cmla.ens-cachan.fr/Cmla/Megawave/stuff/webcam/camview.c
there is a problem, and i guess that its because in camview.c, there 
is added the library /usr/include/linux/videodev.h. But if you take a 
review of the code of this library, you will find that they include the 
library /usr/include/linux/types.h and because of this, theres a conflict 
between the types that are defined in /usr/include/linux/types.h an 
/usr/include/sys/types.h.

I have been trying to fix it. But it seems imposible to me. Meavy someone 
knows how to fix it.
Thank you very much for your help.
And congratulations because of MEGAWAVE2 its a great tool. 

VICTOR GUERRA
Answer to this message Answer to this message

Back to Message Index Back to Message Index


22 Nov 2002 Dear Megawave experts (Victor Guerra)
             

HI!!
I have a problem when i try to compile the camview.c, which i found 
in http://www.cmla.ens-cachan.fr/Cmla/Megawave/stuff/webcam/index.html
the output when i compile it is:
 Phase 1 : MegaWave2 preprocessor
camview.c :
done.
  Phase 2 : production of sources and objects
          production of document squeleton (doc/obj/camview.doc)
          production of arguments analyser object
          production of module object
/usr/include/linux/types.h:72: warning: useless keyword or type name 
in empty declaration
/usr/include/linux/types.h:72: warning: empty declaration
/usr/include/sys/types.h:34: redefinition of `u_char'
/usr/include/linux/types.h:63: `u_char' previously declared here
/usr/include/sys/types.h:35: redefinition of `u_short'
/usr/include/linux/types.h:64: `u_short' previously declared here
/usr/include/sys/types.h:36: redefinition of `u_int'
/usr/include/linux/types.h:65: `u_int' previously declared here
/usr/include/sys/types.h:37: redefinition of `u_long'
/usr/include/linux/types.h:66: `u_long' previously declared here
/usr/include/sys/types.h:49: redefinition of `ino_t'
/usr/include/linux/types.h:11: `ino_t' previously declared here
/usr/include/sys/types.h:61: conflicting types for `dev_t'
/usr/include/linux/types.h:10: previous declaration of `dev_t'
/usr/include/sys/types.h:66: conflicting types for `gid_t'
/usr/include/linux/types.h:21: previous declaration of `gid_t'
/usr/include/sys/types.h:71: conflicting types for `mode_t'
/usr/include/linux/types.h:12: previous declaration of `mode_t'
/usr/include/sys/types.h:76: conflicting types for `nlink_t'
/usr/include/linux/types.h:13: previous declaration of `nlink_t'
/usr/include/sys/types.h:81: conflicting types for `uid_t'
/usr/include/linux/types.h:20: previous declaration of `uid_t'
/usr/include/sys/types.h:87: redefinition of `off_t'
/usr/include/linux/types.h:14: `off_t' previously declared here
/usr/include/sys/types.h:99: redefinition of `pid_t'
/usr/include/linux/types.h:15: `pid_t' previously declared here
/usr/include/sys/types.h:109: redefinition of `ssize_t'
/usr/include/linux/types.h:39: `ssize_t' previously declared here
/usr/include/sys/types.h:115: redefinition of `daddr_t'
/usr/include/linux/types.h:16: `daddr_t' previously declared here
/usr/include/sys/types.h:116: redefinition of `caddr_t'
/usr/include/linux/types.h:59: `caddr_t' previously declared here
/usr/include/sys/types.h:122: redefinition of `key_t'
/usr/include/linux/types.h:17: `key_t' previously declared here
/usr/include/time.h:76: redefinition of `time_t'
/usr/include/linux/types.h:49: `time_t' previously declared here
/usr/include/sys/types.h:150: warning: useless keyword or type name 
in empty declaration
/usr/include/sys/types.h:150: warning: empty declaration
/usr/include/sys/types.h:151: redefinition of `ushort'
/usr/include/linux/types.h:70: `ushort' previously declared here
/usr/include/sys/types.h:152: redefinition of `uint'
/usr/include/linux/types.h:71: `uint' previously declared here
/usr/include/sys/types.h:162: redefinition of `int8_t'
/usr/include/linux/types.h:78: `int8_t' previously declared here
/usr/include/sys/types.h:163: redefinition of `int16_t'
/usr/include/linux/types.h:80: `int16_t' previously declared here
/usr/include/sys/types.h:164: redefinition of `int32_t'
/usr/include/linux/types.h:82: `int32_t' previously declared here
/usr/include/sys/types.h:171: redefinition of `u_int8_t'
/usr/include/linux/types.h:77: `u_int8_t' previously declared here
/usr/include/sys/types.h:172: redefinition of `u_int16_t'
/usr/include/linux/types.h:79: `u_int16_t' previously declared here
/usr/include/sys/types.h:173: redefinition of `u_int32_t'
/usr/include/linux/types.h:81: `u_int32_t' previously declared here
/usr/include/sys/select.h:49: redefinition of `suseconds_t'
/usr/include/linux/types.h:18: `suseconds_t' previously declared here
/usr/include/sys/select.h:78: conflicting types for `fd_set'
/usr/include/linux/types.h:9: previous declaration of `fd_set'
/usr/include/time.h:60: redefinition of `clock_t'
/usr/include/linux/types.h:54: `clock_t' previously declared here
          Error : exit

Thank you for your attention. 
and thak you any helpo u can give me... i

Victor Guerra
Answer to this message Answer to this message

Back to Message Index Back to Message Index


13 Nov 2002 compiling a new data type (Caroline Kuehnel)
             

Dear Megawave experts,

I have to modify the megawave data type "shapes" for my project. 
IN order to do so, I have -as far as I can say- properly defined 
a new data type "my_shapes" in my working directory, which extends 
the shapes type by some new fields.
 However, compiling a source file "set_depth_own.c", which contains 
functions using my_shape yields an error (see below). Has anyone 
got an idea what went wrong with this? Thanks a lot in advance,
Caroline 
 

>>> Welcome on the MegaWave2 Compiler V1.47 <<<
 
  Phase 1 : MegaWave2 preprocessor
set_depth_own.c :
error : '' : unknown i/o interface
/home/kuehnel/megawave2/sys/shell/cmw2: line 395:  1684 
Speicherzugriffsfehler  sh -c "$MWCMD $MWARG"    

note: Speicherzugriffsfehler means memory access error                
Answer to this message Answer to this message


           13 Nov 2002 Re: compiling a new data type (JF)
                        

Dear Caroline,

Each time you add a new data type, you have to add a new
declaration in the file $PRIVATE_MEGAWAVE2/kernel/mwp/megawave2.io,
using a syntax you will easily guess. Then install the
change by "make install" and, if needed, "make sysinstall".

I guess this is why you got the "unknown i/o interface"
message. Your impressive Speicherzugriffsfehler may be a
consequence of this error and may disappear.

Sincerely,
JF.



Answer to this message Answer to this message

Back to Message Index Back to Message Index


31 Oct 2002 compilation problem on Redhat 7.3 (songeb)
             

 Dear all, 
 
I'm having a problem while compiling Megawave on my Linux 
Redhat 7.3. The error msg is below: 
 
=== Thu Oct 31 15:23:37 UTC 2002 
=== Install done for the kernel on 
/mnt/data/download/megawave/megawave2 === 
***************************************** 
***** Level 3 : Compile the modules ***** 
***************************************** 
Module "ccopy" cannot be compiled ! 
Following the corresponding output. Please send these 
lines when reporting bugs: 
------------------------------------------------------------
-------------------- 
 
>>> Welcome on the MegaWave2 Compiler V1.47 <<< 
Warning: the target user is the system on 
/mnt/data/download/megawave/megawave2 
 
  Phase 1 : MegaWave2 preprocessor 
sh: 
/mnt/data/download/megawave/megawave2/sys/bin/ix86/mwp: No 
such file or directory 
------------------------------------------------------------
-------------------- 
***** Modules cannot be compiled ! It means something went 
wrong during the kernel installation stage... 
***** Abort mwinstall at level 3. 
+++++ Installation NOT COMPLETE using 
+++++      
/mnt/data/download/megawave/megawave2/kernel/shell/mwinstall  
-clear /mnt/data/download/megawave/megawave2 
+++++ Try to fix the problem and rerun mwinstall. If this 
command has failed at a level l greater 
+++++ than 1, you may save time by adding the parameter 
'-level l'. In that case, make sure 
+++++ your environment variables are correctly set. 
+++++ The environment variables you need are initialized 
in the following files : 
+++++ 
/mnt/data/download/megawave/megawave2/sys/lib/ix86/
.profile_adm_megawave2 
(Profile for Bourne-compatible shells) 
+++++ 
/mnt/data/download/megawave/megawave2/sys/lib/ix86/
.cshrc_adm_megawave2 
(Csh for C-compatible shells) 
 
 
----------------------------- 
Can anyone help me with this please? I need to use this 
application urgently. Or anyone can recommand me any other 
software run snake (countour model) but not gsnake please? 
 
Thank you so much 
songeb 
Answer to this message Answer to this message


           13 Nov 2002 Re: compilation problem on Redhat 7.3 (JF)
                        

Dear Ary,

Maybe the path you have given for megawave (/mnt/data/download/megawave)
is a link name or a automounted directory : you should always put the true
pathname, that is the one returned by the command /bin/pwd, and not by
the shell built-in command pwd (as explained in the Vol.1 User's Guide,
page 12). 

Sincerely,

Jacques Froment
Answer to this message Answer to this message

Back to Message Index Back to Message Index


28 Aug 2002 compuile problems (Volker Metzler)
             

Hello,

I'm trying to install MW2 on my Linux system. It works well 
up to level 3, where the compilation of the modules fails. 
Here is a part of the ompiler output:


---> Scan Subdirectory src/compression/ezwave <---
Cfezw Fezw cfezw.c (failed) cfiezw.c (failed) ezw.c (failed) 
fezw.c (failed) fiezw.c (failed) iezw.c (failed)

---> Scan Subdirectory src/compression/lossless <---
ardecode2.c (failed) arencode2.c (failed) cvsencode.c (failed) 
cvsfrecode.c (failed) cvsorgcode.c (failed) fencode.c (failed)

an so on it fails for each *.c file. 

Could anyone please give me a hint on this problem?
thanks a lot for your help, 
V Metzler.
Answer to this message Answer to this message


           12 Sep 2002 Re: compuile problems (JF)
                        

Dear Volker,

You have to see why modules cannot be compiled. Please make a cd 
to a directory where is the module you want to compile, e.g. 
"cd $MEGAWAVE2/src/image/io", and type "cmw2 module" where module 
is the name of your module, e.g. "cmw2 ccopy".
You should see the error message. If you cannot correct the error, 
please send us the output of "cmw2". And please tell us the 
version number of MegaWave2 you are using (output of mwvers).

Sincerely
JF.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


27 Aug 2002 installing openCV linux (Binks)
             

Hi,

I have downloaded openCV 0.9.2 but have trouble installing the software. 
I get stuck at the stage of ./configure 
where the error msg will include 

sed: can't read ./otherlibs/cvcam/sample/Makefile.in: No such file or 
directory
sed: can't read ./tests/cv/include/_include/Makefile.in: No such file 
or directory
sed: can't read ./tests/_cvts/Makefile.in: No such file or directory
sed: can't read ./tests/_cvts/_src/Makefile.in: No such file or 
directory

I already have the following packages installed on my linux machine.
gcc 2.96-81
cpp 2.96-81 
libstdc++ 2.96-81
libstdc++ devel-2.96-81
make 3.79.1-5
tcl 8.31-53
tk 8.3.1-53

can anyone please help? Thank you.
Regards,
Bink
Answer to this message Answer to this message


           2 Sep 2005 Re: installing openCV linux
                        

i think u need ffmpeg also for openCV
Answer to this message Answer to this message

Back to Message Index Back to Message Index


25 Jul 2002 wavelet denoising modules (gerardo_rosiles@yahoo.com)
             

Is the cpde for  "Reconstruction of Wavelet Coefficients Using Total 
Variation Minimization" by Durand and Froment already included in this 
version of MegaWave.

Thanks,

Gerardo
Answer to this message Answer to this message


           9 Aug 2002 Re: wavelet denoising modules (JF)
                        

Thank you for your attention on this article ! This code is currently 
not included in the public distribution, but it will be in the next 
update. 
Sincerely,
JF.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


27 Jun 2002 Porting to MacOSX (Duane Schwartzwald)
             

Hello,

I have been working on porting MegaWave to MacOSX, and have 
run into a problem that seems more difficult: perhaps you can 
provide a hint?

I modified the Makefile.in files and shell scripts to recognize 
"Darwin" and "ppc" as targets.  When I run Install, it runs 
successfully (it says) until it gets to level 4 (documentation).  
I commented that section of mwinstall out and reran.  This time 
I get a successful install, according to the output.

The problem is, no binaries are created.  There is no bin/ 
directory.  This may be related to the documentation problem.  
When I run cmw2_all from the megawave home directory, it says it 
is successful, but the doc/obj/ directory is empty.

If I install a public directory, it doesn't have a bin/ directory 
either.

Thanks for any help,

   duane

Duane Schwartzwald
SchwartzwaldD@navair.navy.mil
Answer to this message Answer to this message


           10 Jul 2002 Re: Porting to MacOSX (JF)
                        

Dear Duane,

Porting MegaWave2 to a new Unix system should not be
too painful, but a lot of files may have to be updated.
It is not possible here to list all the files you should 
care about. Maybe you could search e.g. for the strings 
"ix86" and "Linux" inside all source files, so that you 
would get the location of specific architecture 
instructions (at least for Linux). However, you should 
start by defining a new architecture name for MacOSX. 
In order for MegaWave to recognize this new architecture, 
you have to update the system macro mwarch. After that, 
check the environmental variables MW_MACHINETYPE and 
MW_SYSTEMTYPE that should get the right values. Anyway, 
the installation shells such as the different ./Install 
are designed to run on some limited systems only : you 
may have to try to run the installation manually (reading 
these shells is a good way to guess how to run the 
installation).

Good luck,
JF.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


23 Jun 2002 Diffusion (CB)
             

I have a question about the diffusion using total variation 
minimization (function cfdiffuse). What is the effect of the 
parameter epsilon? Is there a relation between epsilon and 
the contrast parameter lambda from Perona-Malik diffusion?

Thanks,

CB
Answer to this message Answer to this message


           25 Jun 2002 Re: Diffusion (JF)
                        

The meaning of epsilon is to avoid the singularity of
the Total Variation by changing, in the functional to
minimize, the TV norm by a L2-like norm. The result that
the minimizer of this new functional converges to the one
of the TV functional is obtained when epsilon tends to zero.
Therefore, you should take epsilon near zero (typically 1)
to perform the experiments. Taking a greater value leads to
minimize a functional far from TV, expressed by equation (2) 
in the documented module. 
Answer to this message Answer to this message

Back to Message Index Back to Message Index


5 Jun 2002 Compiling against other libraries (Daniel Déchelotte)
             

I would like to create a GUI for a program compiled with MW2. 
Do I have to use the "Wdevice facilities" or may I add some 
compilation flags to link against addional libraries (GTK+ or 
QT) ?

Cheers,
-- Dan

Answer to this message Answer to this message


           6 Jun 2002 Re: Compiling against other libraries (JF)
                        

Dear Daniel,

You have the choice. If you know GTK+ or QT, the best
is probably to use these libraries. Call cmw2 with
-lname where name is the library name. You may also
have to use -L to specify the library path.

Sincerely,
JF
Answer to this message Answer to this message

Back to Message Index Back to Message Index


10 May 2002 ICM champ de Markov (chahra)
             

bonjour

je travaille sur la segmentation d'images par les champs de markov

je cherche un programme qui utilise classe les pixels d'une image 
par les champs de markov utilisant ICM ou le recuit simulé
merci
Answer to this message Answer to this message

Back to Message Index Back to Message Index


18 Mar 2002 important on biowave2 (moovida)
             

I'd really need to now a few little but important things about 
biowave2. I really hope anyone can help me or give me a hint to 
documentation.

1-where do the filters used by biowave2 come from? I searched for 
the article found in the bibliography (biorthogonal bases...), but 
it doesn't have those coeffs in it.

2-in reconstruction (ibiowave2) I get perfect response only with 
images of 2^n dimensions, if there is a odd number of rows or cols 
in the game, the edges of the reconstructed image get dirty. Is 
there a explanation for this?

3-and last: how can I understand which filters go together? As for 
ex sp02.ir and sl05.ir (as JF told me once).


I'm sorry bout some of these questions, but I'm no mathematician 
and I'm trying to insert these moduls into the GRASS open source 
project to use them for geomorfological applications. So I need 
the informations for a test phase.

Thanks to everyone out there with the will to help...
Sincerely, Andrea
Answer to this message Answer to this message

Back to Message Index Back to Message Index


10 Mar 2002 Image format conversion
             

Dear colleagues:
How can I convert image from BMP (or PCX or JPG, ...) to MEGAWAVE image format? using ccopy?
Help me:
Teresa Alarcon. 
Answer to this message Answer to this message


           11 Mar 2002 Re: Image format conversion (LM)
                        

Dear Teresa,
Theses formats are not implemented in MegaWave2,
but you can use the command "convert" to get 
(e.g.) a TIFF file that will be automatically
read by MegaWave2. You can also use the command
ccimage2bmp for MW2 color image -> BMP conversion.
Best regards,
Lionel


Answer to this message Answer to this message

Back to Message Index Back to Message Index


19 Feb 2002 struct wtrans2d has inverted rows-cols (moovida)
             

Just a little guess: in the definition of the struct 
wtrans2d it should be:
 char filter_name[mw_max_nfilter][mw_namesize];
and not 
 char filter_name[mw_namesize][mw_max_nfilter];

It gives no problem if you don't need to write to file 
(and use it in future), but...

PS!!! Great Megawave2.1!!! I got not one problem in 
compiling it. Compliments!

Andrea

Answer to this message Answer to this message

Back to Message Index Back to Message Index


14 Feb 2002 no EDGE = 3 possibility in biowave2 ?? (moovida)
             

Is there a particular motivation to the fact that the 
"special treatment" of edges is "disabled" in the module 
biowave2.c? Is it somehow possible to enable it?

I beg for an answer..

Real thanks to anyone can answer.
Sincerely
Andrea

Answer to this message Answer to this message


           27 Feb 2002 Re: no EDGE = 3 possibility in biowave2 ?? (JF)
                        

Yes, the "special treatment" of edges is based on a 
theorical work done by A. Cohen, I. Daubechies and P. Vial
about orthogonal wavelets on the interval. 
biowave1/biowave2 are about biorthogonal wavelets, so it
is not possible to use the same algorithm to compute the
border filters. However, that does not mean that it should
not be possible to perform a biorthogonal decomposition
on the interval. This is simply not supported by MegaWave2.

JF.

Answer to this message Answer to this message

Back to Message Index Back to Message Index


4 Feb 2002 opencv
             

please help me install opencv2.1 windows!!
Answer to this message Answer to this message


           22 Jul 2002 Re: opencv
                        

To install OpenCV 2.1 you first need to download and install 
OpenCV 2.0 and then extract/overwrite the files of openCV 2.1 
into the directory which you installed openCV 2.0 into.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


30 Jan 2002 images to process with biowave2 (moovida)
             

I'm really not sure about these things I guess regarding 
to the geometry of an image:
(hope someone can tell me whether I'm right or not and 
give eventually some hints)
-the dimensions (row,col) have to be both something like 
2^n
-the image can be non square (but always 2^n) 

OR
-the image can be the way it likes and the edge processing 
gets it all on a right way?

Sincerely	Andrea


Answer to this message Answer to this message

Back to Message Index Back to Message Index


11 Jan 2002 Color information has been lost ! (Moovida)
             

If Gif is a standard for color raster images and ccimage 
is a color char format, then why do I loose the colors 
when converting from ccimage to GIF? Is it a question of 
"not char but float" in the GIF? 
Would be usefull if someone could give me a hint to 
understand what I'm missing.
Thanks in anticipation for any hint

PS:little question.Did I understand it right, that I can't 
use a color float image to be processed with biowave2?
PS:How can I convert a Gif to a Cfimage? 

Lots of thanks for this lifesaving forum!

Answer to this message Answer to this message


           18 Jan 2002 Re: Color information has been lost ! (JF)
                        

I don't know about other GIF formats, but the
GIF87a format (the only GIF format recognized
by MegaWave2 at this time) can handle color images using colormap
only. So true colors are impossible. That's because 
MegaWave2 does not use GIF to record color images.

To record color images in MegaWave2, you can use TIFF
format (-ftype TIFFC) or PM (-ftype PMC_C) and to apply
a conversion to or from color GIF, you can use external
programs such as xv.

The module biowave2 as well as other wavelet modules work
on gray level images. To compute a wavelet decomposition
on a color image, first extract the three channels from
your image using cfgetchannels and perform the wavelet
decomposition on each channel. To reconstruct an image
(e.g. if you are doing wavelet compression of color images),
use cfputchannels to make a color image from the three
channel images. Generally you get better results by doing
the computation not in the original RGB model, but on a color
model that separates the intensity from the color parameters,
such as the YUV, HSI or HSV color model. In this way, you can
adjust the parameter to your need. Continuing with the compression
problem, you may want to allow a greater bit rate on the luminance
since this is the channel that carries the geometric information
(edges). Use cfchgchannels to do the conversion between color
models.

Hope this will help you,
JF.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


13 Dec 2001 under redhat 7.2 (moovida)
             

I compiled Megawave under Redhat 7.2. The modules that 
recall the X libraries give the following error. I guess 
it's a problem between comments in C and the 
Megawavepreprocessor, but I'm not sure. I' trying to find 
out the problem.
Perhaps someone has seen it before. This is the error that 
occurs during compilation:

In file included from 
/home/moovida/mega/MegaWave2_V2.00/sys/include/Wdevice.h:16,
                 from 
/home/moovida/mega/MegaWave2_V2.00/sys/include/window.h:19,
                 from fview.c:30:
/usr/include/X11/Xlib.h:1423:5: "/* default to make 
interropt. easier */" is not valid in #if expressions
/usr/include/X11/Xlib.h:1441:5: "/* default to make 
interropt. easier */" is not valid in #if expressions
/usr/include/X11/Xlib.h:1788:5: "/* default to make 
interropt. easier */" is not valid in #if expressions
/usr/include/X11/Xlib.h:1805:5: "/* default to make 
interropt. easier */" is not valid in #if expressions
fatal error : Some problems in preprocessing ...
Exit.



Thanks to everyone, that could give me a hint. 
Andrea

Answer to this message Answer to this message


           14 Dec 2001 Re: under redhat 7.2
                        

Which version of gcc are you using ? Under Mandrake 8.x
the gcc version is >= 3.0 and it is known to be unusable.
In such a case, downgrate to (e.g.) 2.95.3 which is 
known to be stable. Otherwise, I suppose that the error
comes from the Linux system include files in
    $MEGAWAVE2/sys/include/Linux
that are read instead of the right ones, in order to
avoid errors by the MegaWave preprocessor. We are working
on a new version of the preprocessor which should avoid
such errors, due to non-ANSI C instructions in Linux include
files.

JF.
Answer to this message Answer to this message


                      9 Jan 2002 neither... nor (moovida)
                                   

The only problems I now have with MW on a 2.4 kernel is 
this (only for the grafic interface). But i really do not 
know how to go on.

Wdevice Library error: [WX_CreateXImage] No code to handle 
this display of 16 bits deep
Wdevice Library error: [WX_CreateXImage] No code to handle 
this display of 16 bits deep
Wdevice Library error: [WLoadBitMapImage] cannot load 
bitmap (pic is NULL)

I don't think it's neither a problem of gcc (got the <3 
version) nor of wrong path. I guess I will go on 
(temporarily bypassing the problem through convertion), 
hopefully waiting for the new version of MW.
Thanks for the great work and forum answers.
Sincerily	Andrea
Answer to this message Answer to this message


                                 9 Jan 2002 Re: neither... nor (JF)
                                              

Yes, the problem is with MegaWave2 (Wdevice), see the
answer I gave in the message 
  14 Dec 2000 Re: Installation problems
Solution proposed : wait for the next MegaWave2 release
(comming soon) or start X with 8 or 24 bits plane.

JF.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


28 Nov 2001 debugg (moovida)
             

I'd need to debugg through a few modules to understand 
exactly what (and how) goes in and comes out. Did anyone 
make a try? With which debugger?
Thanks, Andrea

Answer to this message Answer to this message


           29 Nov 2001 Re: debugg (LM)
                        

Dear Andrea,

You can use gdb to debug :
> cmw2 -g foo.c
...
> gdb foo
(gdb) run ...
If your module call some others, you may need to
compile them with -g too.

Good luck
Lionel


Answer to this message Answer to this message


                      10 Dec 2001 & biowave2 - the img size (Andrea)
                                   

Thanks a lot. I made it with the ddd-debugger. It works 
properly.
I now got problems with the img size. Could anyone give me 
a link to where I could read somithing more about this 
particular size. I'm not able to get the binary run. 
Either I use the wrong .img or I use the wrong high & low 
- pass filters.
Thanks, Andrea

Answer to this message Answer to this message


                                 14 Dec 2001 Re: & biowave2 - the img size
                                              

In biowave2, the default value of the option -r
(Number of level) is wrong : if you do not specify the
number of level, it is set to 0, and this is non-sense.
Try this (it is working for me) :

Decomposition :
 biowave2 -r 2 fimage w h/sp02.ir htilde/sl05.ir
Reconstruction :
 ibiowave2 -r 2 w r h/sp02.ir htilde/sl05.ir
Checking :
 fmse fimage r
SNR = inf
PSNR = inf
MSE = 0
MRD = 0

Sincerely,
JF.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


22 Nov 2001 megawave under mandrake 7.2 (saad)
             

hi all,

i didn't succeed in installing megawave under mandrake 7.2,
does it work in this version ?

thanx

saad
Answer to this message Answer to this message


           29 Nov 2001 Re: megawave under mandrake 7.2 (moovida)
                        

I can assure you: yes it works.

good luck
Andrea

Answer to this message Answer to this message

Back to Message Index Back to Message Index


12 Sep 2001 Compilation with Linux-Mandrake 8.0 (L. Arnaud)
             

Dear All,
I try to compile MW under Linux-Mandrake 8.0 and I have got the same errors as 
those describe by Bernard R.(12 Feb. 2001). Did you find a way to solve the 
last problem (list of unsucessful compilations... ) ? 
Thank you very much for answers.
L. Arnaud
 
Answer to this message Answer to this message


           22 Oct 2001 Re: Compilation with Linux-Mandrake 8.0
                        

We are currently working on a new version of MegaWav2 which will, together 
with lot of new modules, solve the compilation problems encountered with 
last versions of Linux kernel and libc, such with Mandrake 8.0.
Please be patient !
JF
Answer to this message Answer to this message

Back to Message Index Back to Message Index


10 Sep 2001 MegaWave on Win NT/2000 ? (weirdo)
             

How to compile on NT/2000 ?
Did someone made it ?
Answer to this message Answer to this message


           28 Sep 2001 Re: MegaWave on Win NT/2000 ? (JF)
                        

In my knowledge, nobody tries or succeeds in compiling MegaWave2 on 
Win NT/2000. You certainly know that it is possible to install both 
Win NT/2000 and Linux on PC. Why don't you try this solution ? 
Answer to this message Answer to this message


                      4 Oct 2001 Re: Re: MegaWave on Win NT/2000 ? (Weirdo)
                                   

All my apps are running on Win2k.
It is possible to run image processing on Win,
example:Intel's OpenCV.

I am searching for few programmers intrested
in compiling MegaWave on MS-Win.
It is to bring powerfull processing to the
MS-Win masses.

Answer to this message Answer to this message

Back to Message Index Back to Message Index


6 Aug 2001 User defined types as parameters
             

I'm creating a module that needs to receive a tree I've created as an argument,
but I couldn't find a natural way of doing this in MegaWave, as the glue you 
put behind my module to generate the command wouldn't know how to read/write 
files associated to the data type.

The modules I found that do this kind of thing (as the flst module) have 
inserted the data type in MegaWave's kernel, but it seems to laborious for 
such a little task, as it seems I'd have to modify the kernel, right?

I wanted to know if there's an easy (at least easier than modifying the kernel)
way of doing this in MegaWave.
Answer to this message Answer to this message


           6 Aug 2001 Re: User defined types as parameters (LM)
                        

We now have a generic data type that is well adapted to new
types that have not been "plugged" into the kernel. Its name
is Rawdata, and it is defined by

typedef struct rawdata {
  int size;               /* Number of samples */
  unsigned char *data;    /* data field */
} *Rawdata;

You can use it as I/O for your modules, and add in each 
module an appropriate "cast" to make it match your own 
data type (see the module ccimage2bmp for example).

For all this you need MegaWave2 version >= 2.01, available
on this site in early september. Until then (ie with 
version <= 2.00), you can use the Cimage structure 
(for example) instead of Rawdata (OK, it's ugly but it
works).

Sincerely,
Lionel


Answer to this message Answer to this message

Back to Message Index Back to Message Index


28 May 2001 Wavelets & Image processing (Mathieu)
             

Dear all,

Could anyone indicate me any publication or documentation on how to perform 
image processing (such as skeletonization or segmentation) directly on the 
wavelet transform of the image?

Thanx
Answer to this message Answer to this message


           28 May 2001 Re: Wavelets & Image processing (JF)
                        

Dear Mathieu,

the only MegaWave segmentation algorithm based on a wavelet 
transform I know about is the one developed by Georges Koepfler, 
Christian Lopez and Yann Guyonvarc'h.
Althought the original module using wavelets is no more
distributed, the module segtxt.c uses a similar approach.
Please ask G. Koepfler to get more information about that.

Sincerely,
JF.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


12 May 2001 make a movie (Tere)
             

Dear Professor Lionel Moisan:
Finally I resolved all my problems with the MegaWave Installation ( I participated 
in the school in mathemathical problem in Digital Image processing). Now I am 
reproducing all experiments that you showed me. Thanks for your help. 
Professor I have a list of images: lset_20, l_set40,..., lset240. How can I 
make a movie to view all these images with the command cmview?
Thanks, Tere.
Answer to this message Answer to this message


           12 May 2001 Re: make a movie (LM)
                        

Dear Tere,

MegaWave2 movie formats consist in a text file referencing
a sequence of images. In your case, you need to make a
text file like this:

MegaWave2 - DATA ASCII file -
def Cmovie
nimage:12
lset_20
lset_40
etc.

You can look at the (movie) file
$MEGAWAVE2/data/PUBLIC/movies/cmovie
to have an example.

Best regards,
Lionel

Answer to this message Answer to this message

Back to Message Index Back to Message Index


9 May 2001 Fast Level Sets Transform of an image
             

Just I want to know in which direction (clockwise vs. counterclockwise) the 
points of boundaries of shapes extracted from flst function are stored. 
Answer to this message Answer to this message


           16 May 2001 Re: Fast Level Sets Transform of an image (Pascal Monasse)
                        

The boundary of shapes is followed in counterclockwise
direction by FLST. 
The documentation will be explicit about that in the next
release.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


1 May 2001 Installation problem on Mandrake 8.0 (Hippolyte TAPAMO)
             

Dear Mr Froment

I have install successfully your beautiful image library Megawave several times on 
Linux Mandrake 6.2, 7.0 and 7.1 and even on RedHat 6.0 but at moment I want 
to do the same thing but I have this conflicting type error.
----------- This is a part of output of installation ------------------------
../include/unix_bsd.h:31: conflicting types for `usleep'
/usr/include/unistd.h:383: previous declaration of `usleep'
-----------------------------------------------------------------------
I have verify the two files and in /usr/include/unistd.h the declaration is :
           extern int usleep (__useconds_t __useconds) __THROW;
and in $HOME/MegaWave2_V2.00/kernel/lib/include/
           void usleep();

Please how can I do to solve this problem

Best regards, Hippolyte

Answer to this message Answer to this message


           14 May 2001 Re: Installation problem on Mandrake 8.0 (JF)
                        

Dear Hippolyte,

if the function usleep() is already defined by the system,
as it is the case in your file /usr/include/unistd.h,
just removed it from the file unix_bsd.h.

Sincerely,
Jacques Froment.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


20 Apr 2001 sr_normalize()
             

I would like to know the basic idea of the algorithm implemented in sr_normalize. 
I am looking for any English publication on the algorithm used. In the manual 
there is a reference to a phd thesis. Is there any english version of this 
thesis available online. Thank you!
Answer to this message Answer to this message


           24 Apr 2001 Re: sr_normalize() (LM)
                        

Here are the references cited in Thierry Cohignac's thesis.

R.K.Hu, Visual Pattern Recognition by moments invariants, 
IEEE trans. on information theory, pp. 179-187, 1962.

P.J.Davis, Plane regions determined by complex moments,
Journal of Approximation theory, 19, pp. 148-153, 1977.

H.Diritlen and T.G.Newman, Pattern matching under affine
transformations, IEEE trans. comput. C-26, pp.314-317, 1977.

T.Reiss, Recognizing planar objects using invariant image
features, Springer Verlag, 1993.

Sincerely,
Lionel

Answer to this message Answer to this message

Back to Message Index Back to Message Index


28 Feb 2001 Compilation: Bug report & question (Wolfgang)
             

Hi there,

after some troubles with compiling MegaWave2 I finally succeeded. I don't 
know whether everything works, but at least I can display the example 
images. :-)

My system is a SuSE Linux 7.1 (the new version) with a 2.4.0 kernel. I was 
unable to compile any of the modules. The reason was a change to 
/usr/include/sys/types.h. In prior versions, already defined types were 
detected via a preprocessor symbol with the same name. For some strange 
reason, this name has been changed from  to ___defined, which 
now conflicts with the definition of off_t in 
kernel/lib/include/Linux/stdio_2.2.h. I could fix the error by inserting 
an additional

#define __off_t_defined

into that file at the appropriate position.

Now for my question. I noticed, that optimization is done with the -O flag. 
The GNU C compiler knows some additional optimization levels which produce 
even better code. I would like to change the -O to -O2 but don't know the 
exact places where to apply this change (I believe there's more than just 
one). Are there any known bugs when the -O2 option is turned on?

Bye,

Wolfgang
Answer to this message Answer to this message


           5 Mar 2001 Re: Compilation: Bug report & question (JF)
                        

Hi Wolfgang,

Thank you for your comments on MegaWave2 with SuSE Linux 7.1. On most new versions of Linux
kernel we get trouble
because unexpected changes on the system include files, on gcc or on the preprocessor cpp.
This instability is quite boring, otherwise Linux is a very nice system !

About your question, first you have to decide whether the optimization flag you want to
change is related to the kernel (system libraries) or to the modules. To change flag -O to
-O2 in the kernel libraries, edit the various files named Makefile.in in subdirectories of
kernel and change the line
CCMODE = -O
to
CCMODE = -O2
Then, you will have to recompile the libraries (use the shell kernel/Install).

To change flag -O to -O2 for module compilation, I would suggest you to do that on selected
modules only (indeed, some bugs may appear with -O2). To compile a module just call cmw2 as
documented, with the option -O2. 

Hope this will help you,
JF.

Answer to this message Answer to this message


                      15 Mar 2001 Re: Compilation: Bug report & question (Wolfgang)
                                   

Hi Jaques,

thank you for your answer. It is not quite clear to me why the MegaWave2 
sources try to define datatypes with names similar to those in the system 
include files. If some system function needs such a type, there should 
already exist an include file defining it.

Regarding the module compilation, are there actually bugs when you switch 
on the -O2 option? I am using Gnu C for many years now and never had a 
function that would develop bugs with -O2 optimization turned on.

Wolfgang
Answer to this message Answer to this message


                                 16 Mar 2001 Re: Re: Compilation: Bug report & question (JF)
                                              

Hi Wolfgang,

Why do we need to change some system include files on Linux ? This is 
related to the C syntax in these files, which are not always ANSI C or 
K&R compliant and which cause our preprocessor to abort with 
"syntax error". You will find more information about that in the file 
kernel/lib/include/Linux/README. There is probably a better way to fix 
the problem than the one we used : if you are a Linux guru, feel free 
to help us ! On last Unix versions, such problems seem to have 
disappeared (as, I suppose, on your 2.4.0 kernel), so we should be 
able to remove kernel/lib/include/Linux in the near future.

About the -O2 switch, I got some surprising results in the past, but I 
don't remember on which systems and on which compilers (maybe not gcc). 
Anyway, I assume that if -O is named -O, it's because it should be the 
most widely used optimization mode, and not -O2 !

Jacques.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


20 Feb 2001 The Use of ezw &owave2 binaries (Alpha KEITA)
             

Dears Megawave's friends,
Hi!
Right now I 'm using megawave2,specially I try to use ezw
but I get some error messages,so if anybody use before those
two binaries (ezw and owave2) please send some examples.Thanks
Best regards,
Alpha keita

Answer to this message Answer to this message


           23 Feb 2001 Re: The Use of ezw &owave2 binaries (JF)
                        

Dear Alpha,

you may have a look to the Fezw macro, which shows how to
call fezw with right parameters. The module fezw uses ezw and owave2.

Sincerely,
JF.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


20 Feb 2001 ezw &owave2 (Alpha KEITA)
             

Bonjour!
Quelqu'un pourrait -il m'envoyer un example d'utitlisation de  ezw et owave2? Merci!
cordialement,
Alpha KEITA

Huazhong Univ.Of.Sce&Te,
Foreign Students BLdg #520
Wuhan,430074
China 

Answer to this message Answer to this message


           29 Jul 2004 Re: ezw &owave2 (foughali)
                        

voila un exemple de owave2

owave2 -r 3 -e 0 [nom de l'image en entrer][image en sortie] 
chemin de filtre par exemple /megawave2/data/wave/ortho/haar.ir
Answer to this message Answer to this message

Back to Message Index Back to Message Index


12 Feb 2001 Compilation of Megawave under RedHat 7.0 (Bernard Revet)
             

Dear Colleague
I tried to compile Megawave under Linux Red Hat 7.0 but got a lot of errors
cc -O -fpic -I../include -I/usr/include -DLinux -Dix86 -DXMWP  -c  -o
/home/bmrevet/Softs/Image/MegaWave2_V2.00/kernel_obj/lib/obj/ix86/tiff_io.o tiff_io.c
tiff_io.c:36: redefinition of `u_short'
/usr/include/sys/types.h:34: `u_short' previously declared here
tiff_io.c:37: redefinition of `u_char'
/usr/include/sys/types.h:33: `u_char' previously declared here
tiff_io.c:38: redefinition of `u_int'
/usr/include/sys/types.h:35: `u_int' previously declared here
make: *** [/home/bmrevet/Softs/Image/MegaWave2_V2.00/kernel_obj/lib/obj/ix86/tiff_io.o]
Erreur 1
*** Error in 'make shared' ! Abort lib Install. ***

comment in  tiff_io.c

/*typedef unsigned short u_short;
typedef unsigned char u_char;
typedef unsigned int u_int;*/

recompiled

then
gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI -DXMWP -DLinux -DFLEX -O -c io.c -o
/home/bmrevet/Softs/Image/MegaWave2_V2.00/kernel_obj/mwp/obj/ix86/io.o
io.c: In function `fprinttex':
io.c:390: `char' is promoted to `int' when passed through `...'
io.c:390: (so you should pass `int' not `char' to `va_arg')
io.c:515: `float' is promoted to `double' when passed through `...'
io.c: In function `PRDBG':
io.c:595: `char' is promoted to `int' when passed through `...'
io.c:636: `float' is promoted to `double' when passed through `...'
make: *** [/home/bmrevet/Softs/Image/MegaWave2_V2.00/kernel_obj/mwp/obj/ix86/io.o] Erreur 1


corrected io.c accordingly


then gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI -DXMWP -DLinux -DFLEX -O -c lex.yy.c -o
/home/bmrevet/Softs/Image/MegaWave2_V2.00/kernel_obj/mwp/obj/ix86/lex.yy.o
gcc -DDEBUG -DLEXDEBUG -DYYDEBUG -DACCEPT_ANSI -DXMWP -DLinux -DFLEX -O -c io.c -o
/home/bmrevet/Softs/Image/MegaWave2_V2.00/kernel_obj/mwp/obj/ix86/io.o
io.c: In function `fprinttex':
io.c:515: `float' is promoted to `double' when passed through `...'
io.c:515: (so you should pass `double' not `float' to `va_arg')

corrected io.c

then after compilation

List of unsuccessful compilations :
--------------------------------- 


First pass:

src/compression/ezwave/cfezw.c
src/compression/ezwave/cfiezw.c
src/compression/ezwave/ezw.c

<... truncated message ...>

src/wave/precond1d.c
src/wave/precond2d.c
src/wave/sconvolve.c

Second pass:

src/compression/ezwave/cfezw.c
src/compression/ezwave/cfiezw.c
src/compression/ezwave/ezw.c

<... truncated message ...>

src/wave/precond1d.c
src/wave/precond2d.c
src/wave/sconvolve.c

*******************************************************
***** Level 4 : Compile the documentation (guid3) *****
*******************************************************

---> Make doc for group ./compression <---

---> Make doc for group ./compression/ezwave <---
Cfezw Fezw make_mw2doc : Cannot find file
/home/bmrevet/Softs/Image/MegaWave2_V2.00/doc/obj/cfezw.doc
There is an inconsistency between the source of the module cfezw and its doc
Please re-install this copy of MegaWave2


---> Make doc for group ./compression/lossless <---
make_mw2doc : Cannot find file
/home/bmrevet/Softs/Image/MegaWave2_V2.00/doc/obj/ardecode2.doc
There is an inconsistency between the source of the module ardecode2 and its docPlease
re-install this copy of MegaWave2


---> Make doc for group ./compression/scalar <---
make_mw2doc : Cannot find file
/home/bmrevet/Softs/Image/MegaWave2_V2.00/doc/obj/fiscalq.doc
There is an inconsistency between the source of the module fiscalq and its doc
Please re-install this copy of MegaWave2


---> Make doc for group ./compression/vector <---
make_mw2doc : Cannot find file /home/bmrevet/Softs/Image/MegaWave2_V2.00/doc/obj/fivq.doc
There is an inconsistency between the source of the module fivq and its doc
Please re-install this copy of MegaWave2


---> Make doc for group ./compression/vqwave <---
Cfwivq Cfwvq Fwivq Fwlbg_adap Fwvq make_mw2doc : Cannot find file
/home/bmrevet/Softs/Image/MegaWave2_V2.00/doc/obj/fwivq.doc
There is an inconsistency between the source of the module fwivq and its doc
Please re-install this copy of MegaWave2



---> Make doc for group ./curve <---
make_mw2doc : Cannot find file /home/bmrevet/Softs/Image/MegaWave2_V2.00/doc/obj/disk.doc
There is an inconsistency between the source of the module disk and its doc
Please re-install this copy of MegaWave2


---> Make doc for group ./examples <---
make_mw2doc : Cannot find file
/home/bmrevet/Softs/Image/MegaWave2_V2.00/doc/obj/demohead1.doc
There is an inconsistency between the source of the module demohead1 and its docPlease
re-install this copy of MegaWave2

make_mw2doc : Cannot find file
/home/bmrevet/Softs/Image/MegaWave2_V2.00/doc/obj/genxmw2.doc
There is an inconsistency between the source of the module genxmw2 and its doc
Please re-install this copy of MegaWave2
***** Error while making documentation !
***** Abort mwinstall at level 4.


Any suggestions are welcome


/home/bmrevet/Softs/Image/MegaWave2_V2.00/kernel_obj/lib/lib/ix86 contained

-rwxr-xr-x    1 bmrevet  user         7501 fév 12 18:00 libnotiff.so
-rwxr-xr-x    1 bmrevet  user       498367 fév 12 18:00 libsysmw.so
-rwxr-xr-x    1 bmrevet  user        36062 fév 12 18:00 libxmwcom.so
-rw-r--r--    1 bmrevet  user          888 fév 12 18:00 mw_main.o

MegaWave2_V2.00/kernel_obj/lib/obj/ix86
contained
ascii_file.o  cmimage.o         fimage.o       module.o      shape_io.o
ccimage.o     cmimage_io.o      fimage_io.o    module_io.o   tiff_io.o
ccimage_io.o  cmovie.o          fmovie.o       mw.o          unix_bsd.o
ccmovie.o     cmovie_io.o       fmovie_io.o    mwio.o        window.o
ccmovie_io.o  convert_struct.o  fpolygon.o     notiff.o      wmax2d.o
cfimage.o     curve.o           fpolygon_io.o  pgm_io.o      wmax2d_io.o
cfimage_io.o  curve_io.o        fsignal.o      pm_io.o       wtrans1d.o
cfmovie.o     epsf_io.o         fsignal_io.o   polygon.o     wtrans1d_io.o
cfmovie_io.o  fcurve.o          gif_io.o       polygon_io.o  wtrans2d.o
cimage.o      fcurve_io.o       mimage.o       ps_io.o       wtrans2d_io.o
cimage_io.o   file_type.o       mimage_io.o    shape.o       xmw_com.o


Thank you for your help
Best regards

Bernard

PS Sorry for this long message

Answer to this message Answer to this message


           19 Feb 2001 Re: Compilation of Megawave under RedHat 7.0 (JF)
                        
Erratum on my former message : do not call cmw2 with
-adm, this option is depreciated ! 
JF.
Answer to this message Answer to this message


                      1 May 2001 Re: Re: Compilation of Megawave under RedHat 7.0
                                   

Dear JF,

I am encountering the same problem.
Which files do I have to modify in order to depreciate the option -adm?

Thank you for your help in advance.

Kenji

Answer to this message Answer to this message


           19 Feb 2001 Re: Compilation of Megawave under RedHat 7.0 (JF)
                        

Dear Bernard,

the errors you got are somewhat strange since I thought
some colleagues compiled MegaWave2 under RedHat 7.0
without difficulties. Could you do the following and tell
me the results ?

1- Give me the kernel number, as returned by 
   uname --release

2- Modules cannot be successfully compiled. It will help
   to now why. 
   In the  src/image/io/ directory, try a 
     cmw2 -adm ccopy
   and send me the output.

3- On last Linux versions, cpp has to be called without
   the option -undef. To remove this option, edit the
   file main.c in kernel/mwp, find the lines

#ifdef Linux
        /* Call cpp with -undef to remove definitions as __GNUC__ */
        sprintf(buffer, "%s -undef -C %s %s %s/mw%d.i", CPPCMD, bufcpp, argv[optind
],                                                             tmpdir, getpid());
#else

  and remove -undef in the sprintf. Then, run Install one
  more time on the original distribution.

However, I don't really think that your problem is related
to the -undef, but rather to confusion between ANSI C and
K&C C. Your compiler should be configured to accept both
ANSI C and K&R C features (yes I know, we should switch
to pure ANSI C standard...). Are your sure you didn't
change anything to the default Linux gcc distribution ?

Thanks for your help !
JF.

Answer to this message Answer to this message


                      15 Jun 2002 Re: Re: Compilation of Megawave under Re (Mouillé Jean-Pierre)
                                   

I sent you my problem but I solve it with the forum thank's for that.

Now I have the same problem as Bernard on feb the 12th, 2001

Every compilation of .c said (failed) and the installation stopped 
at level 4 without compiling documentation as a message said. 

I'm on Linux Mandrake 8.2 so I think it's not a Red Hat problem.

I need help because I've got an exam at Dauphine's University in two weeks

Thank's
JPM
Answer to this message Answer to this message


                      15 Nov 2001 Re: Re: Compilation of Megawave under Re (Claudia Landi)
                                   

Dear JF,

 I'm working with RedHat 7.1, Kernel 2.4.2-2 .
During the installation of Megawave2, I'm having exactly the same problem 
encountered by Bernard Revet some time ago. I have not found in this forum 
the solution you proposed to Bernard, so I would be very grateful if you 
could indicate it again.

To summarize,  after fixing some problems due to variables already defined, 
I managed to compile the kernel. 
However now I'm not able to compile the modules, the error list being 
identical to that of Bernard. 

The effect of the command cmw2 ccopy is:
>>> Welcome on the MegaWave2 Compiler V1.43 <<<
Warning: the target user is the system on /home/claudia/MegaWave2_V2.00
ccopy is not a module nor a macro


Thank you very much. Best Regards,
Claudia
Answer to this message Answer to this message


                      27 Feb 2001 Re: Re: Compilation of Megawave under RedHat 7.0 (Greg Blair)
                                   

I am having the identical problem.

To keep things very simple, I accepted all default choices to the questions asked by 'Install'.

The answer to your questions are:

Q1.
bash$ uname --release
2.2.16-22

Q2.
bash$ cd src/image/io
bash$ cmw2 -adm ccopy
 
>>> Welcome on the MegaWave2 Compiler V1.43 <<<
Warning: the target user is the system on /home/greg/MegaWave2_V2.00
arg "-adm" cannot be used in cmw2


I did the patch to kernel/mwp/main.c, re-ran Install, and obtained exactly the same results as before...


Answer to this message Answer to this message


                                 1 Mar 2001 Re: Re: Re: Compilation of Megawave under RedHat 7.0 (JF)
                                              

As I said in the erratum the Feb. 19, the option -adm
is not recognized in the version you have. Just don't
use it.
Answer to this message Answer to this message


           17 Sep 2001 Re: Compilation of Megawave under RedHat 7.0 (Hexamon)
                        

It could be RedHat 7.1

I had very same problems with RH 7.1, kernel 2.4.2-2

Most of errors are related to stuff that is already defined in RH system libraries. I fixed files that affected installation, put'em back in distribution and at 3-d try it installed as planned.

BTW, maybe it's a good idea to put list of files and patches for RH 7.x users somewhere on your site? 

regards
gg
Answer to this message Answer to this message

Back to Message Index Back to Message Index


8 Feb 2001 Error while compiling kernel (Paul de Zeeuw)
             

Dear Madam or Sir,
 when installing using "Install" the following errors
appear to be detected while compiling shape.c (see below).
How can I remedy this?
Thanking you in advance,
                         Paul de Zeeuw

        cc -O -KPIC -I../include -I/usr/include -DIRIX -Diris -DXMWP  -c  -o
/ufs/pauldz/MW/MegaWave2_V2.00/kernel_obj/lib/obj/iris/shape.o shape.c
"shape.c", line 244: error(1143): declaration is incompatible with
          "Shapes mw_alloc_shapes(Shapes, int, int, float)" (declared at line
          128 of "../include/shape.h")
  Shapes mw_alloc_shapes(shs, nrow, ncol, value)
         ^

"shape.c", line 309: error(1143): declaration is incompatible with
          "Shapes mw_change_shapes(Shapes, int, int, float)" (declared at line
          129 of "../include/shape.h")
  Shapes mw_change_shapes(shs, nrow, ncol, value)
         ^
2 errors detected in the compilation of "shape.c".
*** Error code 2 (bu21)
*** Error in 'make shared' ! Abort lib Install. ***
=== Error in lib Install ! Abort kernel Install. ===
***** Error while compiling kernel !
***** Abort mwinstall at level 2.
+++++ Installation NOT COMPLETE using
+++++      /ufs/pauldz/MW/MegaWave2_V2.00/kernel/shell/mwinstall
-public=private -clear /ufs/pauldz/MW/MegaWave2_V2.00
+++++ Try to fix the problem and rerun mwinstall. If this command has failed at
a level l greater
+++++ than 1, you may save time by adding the parameter '-level l'. In that
case, make sure
+++++ your environment variables are correctly set.
+++++ The environment variables you need are initialized in the following files
:
+++++ /ufs/pauldz/MW/MegaWave2_V2.00/sys/lib/iris/.profile_adm_megawave2
(Profile for Bourne-compatible shells)
+++++ /ufs/pauldz/MW/MegaWave2_V2.00/sys/lib/iris/.cshrc_adm_megawave2 (Csh for
C-compatible shells)


Answer to this message Answer to this message


           14 Feb 2001 Re: Error while compiling kernel
                        

I tried to fix the problem myself by adding the compiler
option -cckr as follows: CCMODE  = -cckr -O
Hereby the Install breaks down at a much further stage.
But it breaks down all the same. Suggestions?

Paul
---> Make doc for group ./examples <---
make_mw2doc : Cannot find file /ufs/pauldz/MW/MegaWave2_V2.00/bin/iris/demohead1
There is an inconsistency between the source of the module demohead1 and its binary file
Please re-install this copy of MegaWave2

make_mw2doc : Cannot find file /ufs/pauldz/MW/MegaWave2_V2.00/bin/iris/genxmw2
There is an inconsistency between the source of the module genxmw2 and its binary file
Please re-install this copy of MegaWave2
***** Error while making documentation !
***** Abort mwinstall at level 4.
+++++ Installation NOT COMPLETE using
+++++      /ufs/pauldz/MW/MegaWave2_V2.00/kernel/shell/mwinstall  -public=private -clear
/ufs/pauldz/MW/MegaWave2_V2.00
+++++ Try to fix the problem and rerun mwinstall. If this command has failed at a level l
greater
+++++ than 1, you may save time by adding the parameter '-level l'. In that case, make sure
+++++ your environment variables are correctly set.
+++++ The environment variables you need are initialized in the following files :
+++++ /ufs/pauldz/MW/MegaWave2_V2.00/sys/lib/iris/.profile_adm_megawave2 (Profile for
Bourne-compatible shells)
+++++ /ufs/pauldz/MW/MegaWave2_V2.00/sys/lib/iris/.cshrc_adm_megawave2 (Csh for
C-compatible shells)

Error message (partial) reads:

Answer to this message Answer to this message


                      15 Feb 2001 Re: Error while compiling kernel (JF)
                                   

Dear Sir,

Sorry but I won't be able to really help you, since we don't
have anymore access to a Irix Workstation. The errors you
get are strange, since function declarations in shape.c
are right. I suspect a ANSI-C issue: your compiler may be
configured to accept, by default, strictly ANSI-C features
only. Try to call your compiler with an option that turn
it into a "non-strict" mode, in order to accept both
ANSI-C and traditional (K&R) syntax. 

Sincerely,
JF.
Answer to this message Answer to this message


                                 19 Feb 2001 Re: Re: Error while compiling kernel (JF)
                                              

OK, the -cckr option seems to be a first answer. 
Just make sure that it does not remove ANSI C feature.

The error 
 make_mw2doc : Cannot find file      /ufs/pauldz/MW/MegaWave2_V2.00/bin/iris/demohead1
 There is an inconsistency between the source of the module demohead1 and its binary file
means that modules could not be successfully compiled.
We have to know why. Could you, into the src/examples
directory, run the command
  cmw2 demohead1 
and tell me the output ?

Sincerely,
JF
Answer to this message Answer to this message


                                            20 Feb 2001 Re: Re: Re: Error while compiling kernel (Paul de Zeeuw)
                                                         
Dear JF,

In the src/examples I ran:

../../sys/shell/cmw2 demohead1

which produced:

>>> Welcome on the MegaWave2 Compiler V1.43 <<<
Please set the $MW_MACHINETYPE environment variable

Answer to this message Answer to this message


                                                       23 Feb 2001 Re: Re: Re: Re: Error while compiling kernel (JF)
                                                                    

Hi,

first check if mwarch correctly recognizes your system :
when you call this system macro, it should return iris.
If it returns unknown, you will have to update this script
(please send us the patch). Then, set the environment
variable MW_MACHINETYPE to iris and try to compile the
module one more time, or run the installation procedure
one more time.

Sincerely,
JF.


Answer to this message Answer to this message

Back to Message Index Back to Message Index


13 Dec 2000 Installation problems (Teresa Alarcón Mart)
             

Dear colleagues Thanks a lot for the help, specially to professor Lionel Moisan, 
but something in my installation is not OK. The system recognizes all comands 
but when I used the "cview" the system gives the following information:

[teresa@madip MegaWave2_V2.00]$ Wdevice Library error: [WX_CreateXImage] No code to handle this display of 16 bits deep
Wdevice Library error: [WX_CreateXImage] No code to handle this display of 16 bits deep
Wdevice Library error: [WLoadBitMapImage] cannot load bitmap (pic is NULL)
 
[1]    Broken pipe                   cview cimage 

I don't know why, because when I use "XV" software  I can see images with high 
color resolution.
Please can you help me?.
Best regards, Tere.

Answer to this message Answer to this message


           14 Dec 2000 Re: Installation problems (JF)
                        

Dear Teresa,

As the error message tells you, there is no code (no driver) to handle a 
display of 16 bits deep. The drivers available in MegaWave2 V.2.00 are for 
displays of 1 bit (monochrome), 8 bits and 24 bits (true colors). If your 
graphics card can handle 24 bits, you should run X11 with this color deep. 
This can be done by calling startx with the option --bpp 24. If this does 
not work, try --bpp 8.

On the new version we are working on, drivers for 16 and 32 bits are added. 
So you won't get this problem in the future.

Sincerely,
JF.
Answer to this message Answer to this message


                      18 Dec 2000 Re: Re: Installation problems (Teresa Alarcón Mart)
                                   

Dear JF:
Thanks for your message. I tried to resolve the problem using 
startx --bpp 24 or startx --bpp 8, but I received error:

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock and start again.
When reporting a problem related to a server crash, please send the full 
server output, not just the last message

Please help me, what can I do to resolve the problem?
Sincerely,
Tere
Answer to this message Answer to this message


                                 21 Dec 2000 Re: Re: Re: Installation problems (JF)
                                              

It looks like a X server is already running. You have to stop it before to 
try to call startx. Or you can call startx on another screen, say 1, using 
the option -- :1.0. Anyway this has nothing to do with MegaWave and you 
should better ask your local administrator (root) to know how to run X 
with a color depth of 8 or 24.
Sincereley,
JF.

Answer to this message Answer to this message

Back to Message Index Back to Message Index


4 Dec 2000 Installation problems (Rosy)
             

Dear Mr. Froment &Co.,
I'm using (or better I'm going to use for the first time) your Megawave2 program, but I've
got some problems during the installation ... when I try to compile a c program (anfora) I
get this message:

     ultra4 5 > cmw2 anfora
 
>>> Welcome on the MegaWave2 Compiler V1.43 <<<
 
  Phase 1 : MegaWave2 preprocessor
anfora.c :
done.
  Phase 2 : production of sources and objects
          production of document squeleton (doc/obj/anfora.doc)
          production of arguments analyser object
          production of module object
          add objects to MegaWave2 user library
          production of interface with MegaWave2 interpretor source
          production of interface with MegaWave2 library object
  Phase 3 : production of MegaWave command
          linking MegaWave2 command "anfora" on sun4_5 with additional libraries
 [-lW_X11R4 -lX11  -lsocket -lnsl]
     (New command added... Type rehash)

then I go with running this program typing

    ultra4 8 > anfora l r

BUT I get this message:

    ld.so.1: anfora: fatal: libtiff.so.3: open failed: No   
    such file or directory
    Killed

What can I do with this library?
Thank you for listening to me
Rosy

Answer to this message Answer to this message


           8 Dec 2000 Re: Installation problems (Jacques Froment)
                        
Dear Rosy,

the libtiff library is needed to handle TIFF files. I got this library from the xv
software, but you may get it directly from http://www.libtiff.org. In order to avoid the
error you had, be sure that the environmental variable called MW_LIBTIFF contains the
directory name where the
libtiff is on your system. If you change the value of this variable, you will have to
re-compile the modules. If you don't have (and don't want) libtiff, simply unset this
variable. When doing the installation, MegaWave tries to
guess where this library is located. If it cannot find it, it is supposed do ask you the
correct location. I don't know why, but it seems that this failed for you.

Hope this will help you,
Jacques Froment.

Answer to this message Answer to this message

Back to Message Index Back to Message Index


24 Nov 2000 definition of images structure (Hazem Hamdan)
             

A mere question: in which file I can find the definition of the two
structures:  Rim, Img. I know that both for image file formats. I searched
for them, but I was unsuccessful. Thanks very much!

-Hazem M. Hamdan
Answer to this message Answer to this message


           24 Nov 2000 Re: definition of images structure (LM)
                        

Internal structures:

$MEGAWAVE2/sys/include/cimage.h
$MEGAWAVE2/sys/include/fimage.h

File structures:

$MEGAWAVE2/kernel/lib/src/cimage_io.c
$MEGAWAVE2/kernel/lib/src/fimage_io.c

Lionel
Answer to this message Answer to this message

Back to Message Index Back to Message Index


20 Nov 2000 Installation Problems (Msc. Teresa Alarcon Martinez)
             

Dear professor:
The software MEGAWAVE was very useful and interesting for me in the School in 
the ICTP , because of I installed in the PC Linux and dowloaded the MegaWave 
from your web, but I have problems during instalation. The following errors 
there are:

ERROR WHILE COMPILING KERNEl

 ABORT MWINSTALL AT LEVEL 2

......

I have Linux Mandrake v.7. I read in the README file that for Red Hat 5.2 and 
Mandrake 6.0 all is OK, but I have not another version. In other hand I am a 
beginner in Linux. Any way I wish to work using
MEGAWAVE2, because it is very useful for me. Please can you help me? 

Thanks in advance,

Msc. Teresa Alarcon Martinez
Answer to this message Answer to this message


           21 Nov 2000 Re: Installation Problems (LM)
                        

Dear Teresa,
I can help you but for that I need the full error message
you got during the installation.
Thanks,
Lionel
Answer to this message Answer to this message


                      21 Nov 2000 Re: Installation Problems (Msc. Teresa Alarcon Martinez)
                                   

Dear professor Lionel Moisan
Thanks for your answer. The full error is:
----------------------------------------------------------------------\
--------
Error in 'make all' !Abort mwp Install
Error in mwp Install !Abort kernel Install
Error while compiling kernel!
Abort mwinstall at level 2
Installation not complete using
/home/teresa/trieste/MegaWave2_v2.00/kernel/shell/mwinstall -public -c\
lear

Try to fix the problem and rerun mwinstall. If this command has failed\
 at a lev\el 1
greater than 1, you may save time by adding the parameter  '-level 1'.
----------------------------------------------------------------------\
-------------------
After this I did'nt do anything else. Only I removed in the line 242 i\
n the main.c the
-undef  in the sprintf.
Thanks for your attention again.
Best regards,
Teresa.
Answer to this message Answer to this message


                                 23 Nov 2000 Re: Installation Problems (LM)
                                              

Dear Teresa,
Thank you for your answer concerning MegaWave forum.
For your installation problems, I am sorry but I need more information
in order to try to identify the problem. Could you please give me a full 
copy of the screen output produced by the installation script 
(what you sent me is only the few last lines produced) ?
Personnally I have installed MegaWave2 V 2.00 on Linux Mandrake 7 
with only the modification you have mentionned 
(remove the "-undef" on the line 242 of the file kernel/mwp/main.c).
Hence, I have no idea of what kind of problem you have encountered,
and with the information you gave me I can only say that the failure 
occurs at level 2 (kernel compilation). Please tell me more !
Best regards
Lionel
Answer to this message Answer to this message


                                            24 Nov 2000 Re: Installation Problems (Msc. Teresa Alarcon Martinez)
                                                         

Dear professor:
Attached here the last screeen related to the instalation of MEGAWAVE 
(the file is stored in two format: Microsoftword format and text file). 
In these documents you can see the messages about errors.
Also I say you about answers that I gave during installation:

Do you want to create or to update a PUBLIC version different to the \
PRIVATE one [Y/N]  N
Do you want to make the PRIVATE version the public version for all us\
er[Y/N]:  N
Do you want to be able to debug the code [Y/N] : Y
Do you want to create STATIC kernel libraries [Y/N]: N

My kernel version is 2.2.14-15mdk
Thanks again,
With the best regards, Tere.

 
*** Install done for the system library on /home/teresa/trieste/MegaW\
ave2_V2.00 ***
 
*** Install the MegaWave2 preprocessor (mwp Install) ***
Makefile configuration parameters : arch = 'Linux ix86' opt=' debug'
Scanning ./Makefile.in and writing ./Makefile (200 lines)............\
.....................................................................\
.....................................................................\
..................................................
bison -dvt mwp.y
make: bison: Command not found
make: *** [/home/teresa/trieste/MegaWave2_V2.00/kernel_obj/mwp/obj/ix\
86/y.tab.o] Error 127
*** Error in 'make all' ! Abort mwp Install. ***
=== Error in mwp Install ! Abort kernel Install. ===
***** Error while compiling kernel !
***** Abort mwinstall at level 2.
+++++ Installation NOT COMPLETE using
+++++      /home/teresa/trieste/MegaWave2_V2.00/kernel/shell/mwinstal\
l  -clear -debug /home/teresa/trieste/MegaWave2_V2.00
+++++ Try to fix the problem and rerun mwinstall. If this command has\ 
 failed at a level l greater
+++++ than 1, you may save time by adding the parameter '-level l'. I\
n that case, make sure
+++++ your environment variables are correctly set.
+++++ The environment variables you need are initialized in the follo\
wing files :
+++++ /home/teresa/trieste/MegaWave2_V2.00/sys/lib/ix86/.profile_adm_\
megawave2 (Profile for Bourne-compatible shells)
+++++ /home/teresa/trieste/MegaWave2_V2.00/sys/lib/ix86/.cshrc_adm_me\
gawave2 (Csh for C-compatible shells)[teresa@madip MegaWave2_V2.00]$
Answer to this message Answer to this message


                                                       24 Nov 2000 Re: Installation Problems (LM)
                                                                    

Dear Teresa,
As reported in the_errors.txt, it seems that you have an incomplete
installation of Linux. In particular, you lack the command bison,
which lies in the package bison-1.28-4mdk (or equivalent).
The reason is probably that you removed a set of packages
during the installation of the Mandrake. 
You need to install this package and maybe some others (dependences):
get the file bison-1.28-4mdk (it's easy on the net), and then
install it (as root) with the command 
rpm -i bison-1.28-4mdk
Another possibility is to re-install a full version of the Mandrake.
Best regards
Lionel
Answer to this message Answer to this message

Back to Message Index Back to Message Index


19 Nov 2000 Next release of MegaWave2
             
When do you plan to upgrade the current version of MegaWave2 ?
Answer to this message Answer to this message


           21 Nov 2000 Re: Next release of MegaWave2 (LM)
                        
Very soon, probably in early 2001.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


12 Nov 2000 Enquiry (Hazem Hamdan)
             
Dear Sir,

I am trying to compile your package, MegaWave 2, using Visual C++ v.6. Of
course there are some difficulties that I face, esp. for window
display.  One of the problems, one header file is missing from your
package, "y.tab.h", for example it is needed in "fillmwarg.c".  I think it
contains the definitions of constants in the switch statement.

I am looking for your assistance on this issue, and thanks very much for
your interesting work. 

-Hazem M. Hamdan
Answer to this message Answer to this message


           13 Nov 2000 Re: Enquiry (JF)
                        
Are you telling me you want to compile MegaWave under Windows ?
I doubt this would be possible without a huge rewriting of the kernel,
especially the Wdevice (made for X11) and mwp (the preprocessor) parts.
The problem you have with "y.tab.h" is related to this second part.
You need programs like yacc and flex. I suppose such thinks exist
under Windows, but I don't have any idea about how they could be
compatible with the Unix ones. Sorry but I can't help you more...

Are you sure you don't want to switch to Linux ? 

Sincerely,
Jacques Froment.
Answer to this message Answer to this message


                      16 Nov 2000 Re: Enquiry (Hazem Hamdan)
                                   

Dear Sir,

I am interested in using the functions of the algorithms, not the
visual interface. I can not switch to Linux, because I do not have any
access to it, and I am really used to VC++ on windows. Dr. P. Monasse told
me that it is feasible to use his source code in any environment with
little effort. Anyway, I will try to do so, esp. I need the functions for
morpholines, level sets and wavelets. 

Thanks very much with my best regards,
  

Sincerey,

-Hazem M. Hamdan

Answer to this message Answer to this message

Back to Message Index Back to Message Index


9 Nov 2000 Perona-Malik module in MegaWave2 ? (Markus Mester)
             

Dear Lionel,

my name is Markus and I participated at the Oberwolfach seminar on digital
images last year. Now I want to start working with MegaWave and I have a
question: Is there already a kind of Perona-Malik Module
(anisotropic diffusion) implemented? I did not find such a module or a
module data base on the MegaWave-Server. Does such a module or such a data
base of modules exist?

thank you very much for your help

Sincerely, yours 

Markus Mester
Answer to this message Answer to this message


           10 Nov 2000 Re: Perona-Malik module in MegaWave2 ? (LM)
                        
Dear Markus,
The current version of MegaWave2 contains two anisotropic diffusion
algorithms (module amss): the affine morphological scale space (AMSS) 
and the Mean Curvature Motion. I am currently working on a much more 
complete version of the server, which will include an on-line manual.
Sincerely Yours
Lionel Moisan
Answer to this message Answer to this message

Back to Message Index Back to Message Index


21 Sep 2000 bugs in mschannel (Yu Chen)
             
Hi,

Thanks a lot for the great Megawave software! While I was testing the module
"segtxt", I thought I found a bug in the routine "mschannel", which is
callled in "segtxt". In the routine "mschannel" there are a few commands like 
"xxx = mw_change_fimage(NULL, in->ncol, in->nrow);". I think they should be 
"xxx = mw_change_fimage(NULL, in->nrow, in->ncol);" instead, because the
parameters of "mw_change_fimage" are (in the order) image, norw, ncol. Your
respnse is very much appreciated!

Thanks for your time!

Yu Chen
Research Scientist
Summus Ltd
Raleigh, NC
USA
Answer to this message Answer to this message


           25 Sep 2000 Re: bugs in mschannel (LM)
                        
Dear Mr. Yu Chen,
You are completely right. There is a similar confusion in the module 
fedge_detect (same author). However the results given by these modules
should be correct since this strange convention has been taken only 
(but everywhere) inside the modules. This will be corrected in the next
release of MegaWave. Thanks a lot for your help.
Sincerely Yours,
Lionel Moisan
Answer to this message Answer to this message


                      26 Sep 2000 Re: bugs in mschannel (Yu Chen)
                                   
Dear Mr. Moisan,

Thanks for your email. I am not sure if I understand the following sentence
in your messsage - "However the results given by these modules should be 
correct since this strange convention has been taken only (but everywhere) 
inside the modules." I run the module "segtxt", which calls mschannel, on 
several images. In a number of situations I got the following error messages: 
"mw_plot_fimage: Point (xxx, xxx) out of image", and the outcomes of 
segmentation were not desirable either. After I realized the problem 
mentioned in my first email, I resized the input images, if necessary, to make
sure that images have equal height and width. Then I run segtxt again. The
error messages disappeared and the outcomes were pretty good. So I think the 
bug in mschannel would effect the outcome of segmentation, right? Could you 
explain a little bit more on this point?

Thanks again for your attention.

Best regards,

Yu
Answer to this message Answer to this message


                                 3 Oct 2000 Re: bugs in mschannel (LM)
                                              

You're right, there is a problem with mschannel. It will be corrected
in the next release of MegaWave2.
Thanks
Lionel
Answer to this message Answer to this message


           4 Nov 2004 Re: bugs in mschannel (Mathoi)
                        

Oui ce serait plus logique!
En java, c'est également image.getPixel(nrow, ncol)!!!
Answer to this message Answer to this message

Back to Message Index Back to Message Index


23 May 2000 Megawave2 v. 2.00, installation problems (Roberto Lambertini)
             
Hello,

I'm trying to install Megawave 2.0 on an UltraSparc Solaris7 box but I 
have some problems with the C compiler (we use Gcc 2.8.1).
I have modified the makefiles generated by the Install script in order 
to call 'gcc' instead of 'cc' and deleted the '-X s' option since gcc 
doesn't support it. The first compilation is successful (W_X11R4.c) but 
then the compiler exits with this message :

gcc -I../include -I/usr/include -DSunOS -Dsun4_5 -DXMWP -c -o
/home/marconi/megaWave2/MegaWave2_V2.00/kernel_obj/lib/obj/sun4_5/mw.o mw.c
mw.c: In function `mwdebug':
mw.c:465: `__builtin_va_alist' undeclared (first use in this function)
mw.c:465: (Each undeclared identifier is reported only once
mw.c:465: for each function it appears in.)
mw.c: In function `mwerror':
mw.c:492: `__builtin_va_alist' undeclared (first use in this function)


Do you have any suggestion about it?

Thanks in advance

Best regards,
Roberto Lambertini
Answer to this message Answer to this message


           16 Jun 2000 Re: Megawave2 v. 2.00, installation problems (JF)
                        

Dear Robert,

sorry for the delay of my reply ! I cannot really help you since I don't have exactly the same
installation than you : I have tried the same changes than you, on a UltraSparc Solaris7 with
gcc version 2.95.1 . Everything in kernel/lib/src is compiling fine, including the file mw.c !

The error message you get is related to the way the C compiler handles functions with a variable
number of arguments. There are basically two ways, the old one uses the varargs interface
(see man varargs) and the second one the ANSI stdarg interface (see man stdarg). Each of
this way is associated to a different system include file. If __STDC__ is defined,
MegaWave2 uses stdarg, and varargs if not. Maybe there is a problem with your system includes 
files or with your predefined macros, such as __STDC__ ?

If you can fix this problem, please let me know how.

Sincerely,
Jacques Froment
Answer to this message Answer to this message

Back to Message Index Back to Message Index


2 Jun 2000 passage d'un string (char*) à un module (Laurent Jacques)
             

Bonjour,

Je débute dans l'utilisation de votre magnifique librairie MegaWave et
je tente actuellement l'écriture d'un module test.
J'aimerais connaître la procédure à suivre pour passer un string (char*)
en argument à ce module.
Quel ligne ou commande particulière dois-je ajouter à la partie 'usage'
du header  ?

Concrètement, lorsque je compile le fichier suivant

/*-------------------------------------------------------------------------------------*/

/* mwcommand
 name     = {test};
 author   = {"L. Jacques"};
 labo     = {"UCL-FYMA"};
 version  = {"0.0.1"};
 function = {"test"};
 usage    = {
    'l':entier->num "numéro à imprimer à l'écran",
    'f':nom->mot    "mot à imprimer à l'écran",
    Cimage->Input   "Non utilisé"
 };
 */
/*-------------------------------------------------------------------------------------*/



#include 
#include "mw.h"

void test (num,mot,Input)

int*   num;
char*  mot[20];
Cimage Input;

{
  if ((name != NULL)&&(num != NULL))
    printf("Numero:%i, String: %s\n", *num, *mot);
}

/*-------------------------------------------------------------------------------------*/

j'obtiens le message d'erreur

---
ljacques<11:36:50>:src$ cmw2 test.c

>>> Welcome on the MegaWave2 Compiler V1.43 <<<

  Phase 1 : MegaWave2 preprocessor
test.c :
fillmwarg.c : INTERNAL ERROR line 1333
              function or macro iotype.
Inappropriate ioctl for device
              Exit.
Exit.
---

Que dois-je faire ?

D'avance, merci.
Answer to this message Answer to this message


           2 Jun 2000 Re: passage d'un string (char*) à un module (LM)
                        
Merci pour le compliment. Pour répondre à votre question, actuellement
il n'est pas possible de passer un string en paramètre d'un module 
MegaWave. On ne peut passer que des types simples (int, float, double, char)
ou des types MegaWave (images, signaux, courbes,...). La raison réside
dans la manière dont le préprocesseur est actuellement implémenté.
Lorsque c'est vraiment nécessaire (ce qui est très rare en pratique),
personnellement j'emploie l'entrée standard.
Bien cordialement
Lionel Moisan
Answer to this message Answer to this message

Back to Message Index Back to Message Index


8 Apr 2000 Lancement de Megawave2 ? (Aime Obambi)
             
Bonjour!
je viens d'installer le logiciel Megawave2, je n'arrive pas a trouver le
fichier qui me permet de lancer l'environnement parmi les fichiers qui se
trouvent dans le repertoire /bin de MegaWave2.00
Est ce que je peux avoir la procedure de lancement du logiciel apres
l'installation ?
merci d'avance, de votre service.
Aime NGATSE
Un etudiant travaillant sur le traitement d'image a L'ESP /UCAD Dakar,
Senegal.
Answer to this message Answer to this message


           8 Apr 2000 Re: Lancement de Megawave2 ? (LM)
                        
Il n'y a pas de "logiciel" proprement dit, mais une série de modules 
et un préprocesseur pour la compilation de nouveaux modules. Après 
l'installation, mettez à jour vos variables d'environnement comme
indiqué à la fin de l'installation (par exemple, en C-shell sous PC-Linux,
source MegaWave2_V2.00a/sys/lib/ix86/.cshrc_adm_megawave2 ).
Vous avez alors accès à toutes les commandes MegaWave.
tapez "mwdoc 1" pour le "User's Guide" (mwdoc 2 / mwdoc 3 pour le reste)
essayez "cview cimage" pour tester l'affichage
etc...

Lionel Moisan
Answer to this message Answer to this message

Back to Message Index Back to Message Index


23 Mar 2000 X library ? (Linux Programmer)
             
Dear ,
i download the MegaWave package from your's site.
it seems to be a nice library.
i've a question :
is it build upon XLib, or you build a new XExtension ?

Thanks ,
Ahmed.
Answer to this message Answer to this message


           23 Mar 2000 Re: X library ? (JF)
                        

> i download the MegaWave package from your's site.
> it seems to be a nice library.

Thanks !

> i've a question :
> is it build upon XLib, or you build a new XExtension ?

I am not sure to understand your question. The Wdevice library
was built in a time when other graphical libraries like SunTools 
were running into workstations without XLib. Therefore we needed
a set of functions to be called from MegaWave2, working with 
different graphical libraries. That is the meaning of Wdevice.
Now all workstations run X11 so we update a X11 version of Wdevice
only. If we had to write the graphical part of MegaWave2 now,
we probably wouldn't create the Wdevice library but rather write
X11 code directly into MegaWave2 functions.

Hope this is answering your question !
Sincerely,
Jacques Froment.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


2 Mar 2000 problème d'installation (Serge ODOF)
             
Bonjour,

 Nous aimerions pouvoir utiliser votre logiciel sous linux, nous disposons
de la version Mandrake 7.0 mais lorsque nous lançons le script d'install
celui-ci nous envoie un certain nombre de message d'erreurs dont nous
ignorons la provenance. Pourriez vous nous éclairer sur le sujet ?

wich: no xdvi in (/sbin:/user/sbin:/bin:/user.bin:/user/x11R6/bin)

est-ce un problème de version de Linux ou propre à MegaWave ?

Merci d'avance. 
Answer to this message Answer to this message


           2 Mar 2000 Re: problème d'installation (JF)
                        
Vous pouvez ignorer ce message car il ne concerne que l'affichage du manuel,
il ne gene pas l'installation du logiciel. Cependant, pour utiliser la
documentation, vous aurez besoin d'utiliser le package LaTeX / xdvi, et donc
de positionner les path contenant ces logiciels.

Cordialement,
Jacques Froment.
Answer to this message Answer to this message


                      3 Mar 2000 Re: problème d'installation (Serge ODOF)
                                   
Nous vous remercions beaucoup pour votre réponse qui nous est très utile.
En vous félicitant encore pour la qualité de ce logiciel qui est
remarquable. Nous allons l'utiliser dans le cadre d'une expérience sur la
fluorescence X. En effet en acquerant le signal émis par un échantillon
"par tranche", il nous sera possible par déconvolution aveugle de remonter
à la constitution de l'échantillon. Dans le cas où cela donnerait des
résultats interressant soyez surs que nous n'oublierons pas de mentionner
votre contribution dans les publications à venir.

cordialement 
Serge Odof
Answer to this message Answer to this message


                                 7 Mar 2000 Re: problème d'installation (JF)
                                              
Merci beaucoup pour cette appreciation sur MegaWave2 ! Bien que le probleme
que vous abordez soit particulier, un membre de notre equipe, Francois 
Malgouyres, vient de soutenir sa these sur la restauration d'images 
satellitaires, probleme incluant notamment une etape de deconvolution. 
Il propose a la fois une approche classique basee sur Fourier et une approche
geometrique utilisant la variation totale.
Ses alorithmes sont implementes sous MegaWave2 mais pas dans la version
publique. Si vous pensez que ces approches sont susceptibles de vous
interesser, n'hesitez pas a le contacter pour qu'il vous envoye sa these
(malgouy 'at' cmla.ens-cachan.fr). Par la suite, il serait egalement possible
de vous envoyer les modules MegaWave2 correspondants.

Cordialement,
Jacques Froment.
Answer to this message Answer to this message

Back to Message Index Back to Message Index


4 Feb 2000 conversion de format (Laurent Garcin)
             
Bonjour,

J'aurais aime savoir si l'on peut convertir le format img de
MegaWave en un format plus repandu (gif, jpeg, ...) pour
inclure des images dans une page WEB.

Merci.

Laurent GARCIN
Answer to this message Answer to this message


           7 Feb 2000 Re: conversion de format (LM)
                        
MegaWave lit et convertit automatiquement la plupart des formats courants.
Le format de sortie d'un module est par defaut le meme que le format 
d'entree. Pour forcer la conversion sortie, on utilise l'option -ftype.
Ex: ccopy -ftype GIF image1 image2 
convertit image1 (format quelconque) en image2 (format GIF)
autres formats de sortie: TIFF, PGMA, PGMR, ... 
(voir $MEGAWAVE2/doc/guid2.dvi)
Lionel
Answer to this message Answer to this message

Back to Message Index Back to Message Index



Back to
 
Back to MegaWave Home Page  
Home Page