My original question:
> From sun-managers-request@uniq.com.au Sun Sep 25 21:59 EST 1994
> Date: Fri, 23 Sep 94 09:32:21 EDT
> From: asargusi@sbrsim.ed.dreo.dnd.ca (Ayrton Sargusingh)
> Reply-To: asargusi@sbrsim.ed.dreo.dnd.ca (Ayrton Sargusingh)
> To: sun-managers@eecs.nwu.edu
> Subject: Mosaic viewers for SunOS 4.1.3_U1
> X-Lines: 57
>
> Hi Sun-Managers:
>
> Does anyone know where I can get viewers compiled for SunOS 4.1.3_U1?
>
> I am not lazy, just pressed for time especially since I have already located
> two much needed viewers, mpeg_play-2.0 and xv-3.00a, only to have difficulty
> building them.
>
> Here's what I get when I try to compile mpeg_play-2.0:
>
> sbrsim-17% make
> cc -O3 -DSH_MEM -DNDEBUG -DBSD -DNONANSI_INCLUDES /usr/openwin/include/X11 -target sun4 -c util.c
> cc: Warning: File with unknown suffix (/usr/openwin/include/X11) passed to ld
> ./video.h: 25: Can't find include file X11/Xlib.h
> ./video.h: 26: Can't find include file X11/Xutil.h
> ./video.h: 31: Can't find include file X11/extensions/XShm.h
> *** Error code 2
> make: Fatal error: Command failed for target `util.o'
>
> Here's what I get when I try to compile xv-3.00a:
>
> sbrsim-26% make depend
> depending in ./jpeg...
> make: Fatal error: Don't know how to make target `depend'
> Current working directory /usr/local/xv-3.00a/jpeg
> *** Error code 1
> make: Fatal error: Command failed for target `depend'
> sbrsim-22% make
> making all in ./jpeg...
> making all in ./tiff...
>
> Did you remember to 'make depend' first?
>
> building xv ...
>
> cc -O -I. -Ijpeg -Itiff -DHAVE_JPEG -DHAVE_TIFF -DHAVE_PDS -DBACKING_STORE -target sun4 -c xv.c
> ./xv.h: 100: Can't find include file X11/Xos.h
> ./xv.h: 217: Can't find include file X11/Xlib.h
> ./xv.h: 218: Can't find include file X11/Xutil.h
> ./xv.h: 219: Can't find include file X11/cursorfont.h
> ./xv.h: 220: Can't find include file X11/keysym.h
> ./xv.h: 221: Can't find include file X11/Intrinsic.h
> ./xv.h: 222: Can't find include file X11/Xatom.h
> ./xv.h: 223: Can't find include file X11/Xmd.h
> xv.c: 90: Can't find include file X11/Xatom.h
> *** Error code 2
> make: Fatal error: Command failed for target `xv.o'
>
> At this point it is obvious that I am missing some crucial X includes.
> Perhaps X11R5 includes? SunOS 4.1.3_U1 is still based on X11R4, I believe.
>
> Thanks for any assistance provided.
>
> -------
> Ayrton Sargusingh
> SBR System Manager
> asargusi@sofkin.ca
>
Well, everything has been solved. I managed to build xv-3.00a and
mpeg_play-2.0, but not without some tweaking of the Makefiles.
I must say that the Makefile for mpeg_play-2.0 needs work [Authors?]
You cannot include an include path by simply appending the include
directory in CFLAGS, especially not without the '-I' prefix, as I found
out as well as some of the respondents as well.
INCLUDEDIR = /usr/openwin/share/include/X11
CFLAGS = -O3 -DSH_MEM -DNDEBUG -DBSD -DNONANSI_INCLUDES $(INCLUDEDIR)
Also hard paths such as these, especially when they are incorrect, do
not make life easy:
LIBS = /usr/lib/libX11.a /usr/lib/libXext.a
I used the following as suggested:
LIBS = -lX11 -lXext
There are also errors in the Imakefile for xv-3.00a for SunOS 4.1.3 builds.
SunOS 4.1.3's X11 include path was not in /usr/lib/X11 but rather in
/usr/openwin/lib/X11 and the include files are in /usr/openwin/include/X11.
For authors, here's what the old Makefile looked like:
USRLIBDIR = $(DESTDIR)/usr/lib
BINDIR = $(DESTDIR)/usr/bin/X11
INCROOT = $(DESTDIR)/usr/include
BUILDINCROOT = $(TOP)
BUILDINCDIR = $(BUILDINCROOT)/X11
BUILDINCTOP = ..
INCDIR = $(INCROOT)/X11
ADMDIR = $(DESTDIR)/usr/adm
LIBDIR = $(USRLIBDIR)/X11
Thanks to those who responded including:
rauthenberg@HHI.DE (Stefan Rauthenberg)
Richard Skelton <rich@brake.demon.co.uk>
bern@penthesilea.Uni-Trier.DE (Jochen Bern)
glenn@uniq.com.au (Glenn Satchell)
Paul Southworth <pauls@CIC.Net>
To Paul Southworth <pauls@CIC.Net> who wrote:
> Get rid of Openwindows!!!
I am not picking on you, but I wanted to state for the record that, due to
painstaking development, we have a very unique simulator running here that
is 8 years in the making. And after $40 million bucks, it's not easy to do
a rewrite. Sun has unfortunately put people like us into a hole. Either
stay with an obviously obsolete product, or spend megabucks to port every-
thing over to Solaris 2.x. If we ask this of our department, we won't have
a simulator... and no project to speak of.
-------
Ayrton Sargusingh
SBR System Manager
asargusi@sofkin.ca
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:10 CDT