David, Thanks, but that doesn't help. There's no config.cache, when I run ./configure. The make still ends with an error message that complains about not finding -lXm.
What is it actually looking for? I have libXm.la and libXm.so in /usr/local/lesstif/lib (which is included through the FLAGS env. vars). The FLAGS are generally added to the cc and c++ commands. However, the last c++ line, that causes the -lXm error, does not have these FLAGS. Is that right? If not, there could be something wrong with the configure or generated Makefiles. Regards, Rob. "David L. Thompson" wrote: > > 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 -- dr. R.J.W.E. Lahaye Center for Ion-Surface Reaction Department of Chemistry Pohang University of Science and Technology San 31 Hyojadong, Namgu Pohang Kyoungbuk Republic of Korea Tel : +82-562-279-2780 Fax : +82-562-279-8157 email: [EMAIL PROTECTED]
