X11 R6 C++ program on a X11 R5 machine?

X11 R6 C++ program on a X11 R5 machine?

Post by William Paul Berris » Fri, 02 May 1997 04:00:00



Hi

I use Solaris 2.5 (SunOs 5.5) on a Sun SPARC machine
(Sparc Center 2000 server).
Could anyone tell me if the following is possible.

I have some C++ source code ( a lot of it) which is for
a 3D visualisation of 3D data, you can rotate the 3 axes etc.
It requires the CC C++ compiler which I have been using.

It requires libraries libICE.so libSM.so etc for
Inter-Client Exchange and Session Management etc.
I am told by our Computer Services Centre that these
libraries are in X11 R6, but we only have X11 R5.

I tried to compile it by obtaining the missing libraries
from a web site and putting them in my compile directory,
BUT, although it very nearly all compiled/linked, my final error
implies incompatible libraries. (See Errors below).

My question is, if I obtained ALL the X11 R6 libraries that I need
to compile/link this program on this machine (putting them in the
compile directory) and thus getting the code to compile and link,
would the executable program be able to RUN on this machine
or would it complain of not having some libraries and terminate?
i.e. Are any R6 libs needed during run-time??

I know very little about this which is why I ask if it is
possible before I attempt it.

Please advise if you can.

Thanks

Will Berriss
------------

The compilation / linking error:

CC  -lrwtool -L/usr/dt/lib/ -L/var/scratch/WillBerriss/Proggy -lXm -lXt
-lX11 -lICE -lSM -lm -lXpm -o ./ColourSpace.v2 ColourSpace.v2.o
RGBValue.o RGBList.o orderedList.o setList.o array.o RGBImage.o
matt_string.o ColourSpace.mainWindow.o cspace_obj.o cuboid_obj.o
sphere_obj.o 3d_data.o ColourSpace.cmap.o ColourSpace.rotCallbacks.o
ColourSpace.menu.o ColourSpace.file.o ColourSpace.ppm.o
ColourSpace.bitmaps.o ColourSpace.filter.o ColourSpace.3D.o
ColourSpace.setAxes.o ColourSpace.options.o SpherePoint.o
ColourSpace.points.o ColourSpace.help.o ColourSpace.setFilter.o
Undefined                       first referenced
 symbol                             in file
XAddConnectionWatch                
/var/scratch/WillBerriss/Proggy/libXt.so
XDrawPoint                          ColourSpace.v2.o  (symbol belongs to
implicit dependency /usr/openwin/lib/libX11.so.4)
XInternAtoms                      
/var/scratch/WillBerriss/Proggy/libXt.so
XUndefineCursor                     ColourSpace.bitmaps.o  (symbol
belongs to implicit dependency /usr/openwin/lib/libX11.so.4)
XFreePixmap                         ColourSpace.ppm.o  (symbol belongs
to implicit dependency /usr/openwin/lib/libX11.so.4)
XAllocColorCells                    ColourSpace.cmap.o  (symbol belongs
to implicit dependency /usr/openwin/lib/libX11.so.4)
XCopyArea                           ColourSpace.ppm.o  (symbol belongs
to implicit dependency /usr/openwin/lib/libX11.so.4)
...etc .......
--


Department of Engineering
The University of Reading
Whiteknights
Reading                     Tel:  0118 987 5123
Berkshire                     (+44 118 987 5123 outside UK)
RG6 6AY    
England                     Fax:  0118 931 3327    

World Wide Web Home Page:

http://www.elec.rdg.ac.uk/people/postgrads/will.html

--


Department of Engineering
The University of Reading
Whiteknights
Reading                     Tel:  0118 987 5123
Berkshire                     (+44 118 987 5123 outside UK)
RG6 6AY    
England                     Fax:  0118 931 3327    

World Wide Web Home Page:

http://www.elec.rdg.ac.uk/people/postgrads/will.html