I have recently upgraded my Linux distribution to Mandrake 9
(which uses GCC 3.2) and I have managed to compile and use OpenDX 4.2
on my system. So, I would like to share my experience with you.

I downloaded the two source archives (program+samples) from the DX
site. To build the program, I did a "./configure" several times before I
could get all dependencies correctly (my fault!). Still, for some packages
(ImageMagick is surely one), I got a
"...package not complete" message, even though I had properly installed
the -lib- and -devel- packages of my distribution. Any ideas on that? I
could provide my build logs for more information...

Anyway, the only thing I had to correct manually (because of compilation
problems that appeared later on) was that 'configure' thought I did not
have strstream.h (possibly because GCC 3.2 issues a warning about
deprecated headers etc. when you use these). So I edited
include/dxconfig.h and changed the relevant #undef to
   #define HAVE_STRSTREAM_H 1
I believe 'configure' should be changed at this point, or probably add a
-Wno-deprecated compilation flag.

After that, compilation went fine and my DX binaries work very well.

I should add that I did not compile JavaDX (I did try to, but not much
as I don't need it). Moreover, I compiled with both lesstif and openmotif 2.1.30, both compilations went fine but OpenDX always works better with openmotif. Finally the samples were processed with no problems at
all.

Furthermore, I tried to compile a module I have been writing. I had two
problems with that, which required some hand-editing of DX include
files:
   1. inlude/dx/array.h:481: 'void(*or)' must be changed, to something
      like 'void(*oor)', possibly because 'or' is now a reserved word
      in C++.

   2. include/dx/object.h:227: 'enum copy' must be changed to something
      like 'enum ccopy' (the same in the function declaration that
      follows), again due to name clash problems.

That is what I have so far.
Keep up the good work!

Nikos Platis

--
-----------------------------------------------------------------------
Nikos Platis                                  e-mail: [EMAIL PROTECTED]
Department of Informatics                        tel: +30 10 727-5102
University of Athens                             fax: +30 10 727-5114

"The empires of the future are the empires of the mind." - W. Churchill
-----------------------------------------------------------------------

Reply via email to