Make sure to remove your config.cache file that would have been created from previous configures. Then rerun configure and see what happens.

David

Hello,

I try to compile the latest OpenDX on my linux PC. I have installed

compiled from source:
   lesstif 0.89.9
from RPM:
   Mesa 3.2-2
   Mesa-devel 3.2-2
   egcs 1.1.2-27
   egcs-c++ 1.1.2-27
   [and many more from RedHat 6.2 Linux distro]

I set the env. vars:
setenv CFLAGS "-I/usr/local/lesstif/include -L/usr/local/lesstif/lib"
setenv CPPFLAGS "-I/usr/local/lesstif/include -L/usr/local/lesstif/lib"

Then, in the DX directory, I type:
  ./configure
  make

After a long while, the 'make' ends with an error message:
[snip]
c++ -DHAVE_CONFIG_H -I. -I. -I../../../include -I../base
    -I../../../include -I../dxuilib -Dlinux
    -I/usr/local/lesstif/include -L/usr/local/lesstif/lib
    -I/usr/X11R6/include  -g -O2 -I/usr/X11R6/include
    -c ViewControlWhichCameraCommand.C
c++ -DHAVE_CONFIG_H -I. -I. -I../../../include -I../base
    -I../../../include -I../dxuilib -Dlinux
    -I/usr/local/lesstif/include -L/usr/local/lesstif/lib
    -I/usr/X11R6/include  -g -O2 -I/usr/X11R6/include -c Main.C
c++ -g -O2 -I/usr/X11R6/include -o dxui ColormapDefinition.o
   ColormapNode.o [...many more .o files] ../dxuilib/libDXUI.a
   ../base/libBASE.a ../widgets/libWIDGETS.a -L/usr/X11R6/lib
   -L/usr/local/lib -lm -lXm -lXmu -lXt -lX11 -lXext -lnsl -ltiff
   -ljpeg -lpng -lbz2 -lz -ldl -lm -lSM -lICE -lXm -lXext -lXt
   -lX11 -L/usr/X11R6/lib
/usr/bin/ld: cannot find -lXm
collect2: ld returned 1 exit status
make[3]: *** [dxui] Error 1
make[3]: Leaving directory `/home/software/DX/dx/src/uipp/dxui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/software/DX/dx/src/uipp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/software/DX/dx/src'
[~/dx] $

Where is the "-L...lesstif/lib" and "-I...lesstif/include"
in the last c++ line? Not needed ?!?
I'm lost at this point. I hoped that the "-L..." option in the
FLAGS would help finding -lXm.

The listing in /usr/local/lesstif/lib shows:
X11/
libMrm.la -> ../LessTif/Motif1.2/lib/libMrm.la
libMrm.so -> ../LessTif/Motif1.2/lib/libMrm.so
libMrm.so.1 -> ../LessTif/Motif1.2/lib/libMrm.so.1
libMrm.so.1.0.2 -> ../LessTif/Motif1.2/lib/libMrm.so.1.0.2
libMrm.so.2 -> ../LessTif/Motif2.0/lib/libMrm.so.2
libMrm.so.2.0.0 -> ../LessTif/Motif2.0/lib/libMrm.so.2.0.0
libXbae.la
libXbae.so -> libXbae.so.4.0.7
libXbae.so.4 -> libXbae.so.4.0.7
libXbae.so.4.0.7
libXm.la -> ../LessTif/Motif1.2/lib/libXm.la
libXm.so -> ../LessTif/Motif1.2/lib/libXm.so
libXm.so.1 -> ../LessTif/Motif1.2/lib/libXm.so.1
libXm.so.1.0.2 -> ../LessTif/Motif1.2/lib/libXm.so.1.0.2
libXm.so.2 -> ../LessTif/Motif2.0/lib/libXm.so.2
libXm.so.2.0.0 -> ../LessTif/Motif2.0/lib/libXm.so.2.0.0


What am I missing?

Thanks for help.

Rob.

PS: There's the "-g" flag for all compilations. Can I change that by
doing
    "setenv CXXFLAGS -O2" (without the -g)  before running ./configure ?

--
.............................................................................
David L. Thompson                          The University of Montana
mailto:[EMAIL PROTECTED]                 Computer Science Department
http://www.cs.umt.edu/u/dthompsn           Missoula, MT  59812
                                           Work Phone : (406)257-8530

Reply via email to