Thanks for many helpful reply.
Here is a typical answer which I used as a summary.
----- Begin Included Message -----
>From firstname.lastname@example.org Thu Feb 1 13:40:21 1996
Subject: Re: X11R5 for Solaris 2.x
Date: Thu, 1 Feb 1996 09:12:04 +0000 (GMT)
X-Mailer: ELM [version 2.4 PL24]
Content-Type: text/plain; charset=US-ASCII
Jeffrey Liu said
> My question is that do we need to install X11R5 and Motif package
>for Solaris 2.x (2.4/2.5)?
> The Solaris migration FAQ says Solaris features a standard X11R5 release
>of the X Window System. Does it means that Solaris has X11R5 library and
>include file? If yes, what environments should be set for compiler?
>And same question to Motif library.
Solaris 2.x comes with an X11R5 server and the Motif run-time libraries. This
is enough to do development work with Motif. You will have to use the
following flags to the compilation of object files:
And the following to the final linking of the binary:
-R/usr/openwin/lib:/usr/dt/lib -L/usr/openwin/lib -L/usr/dt/lib
The use of the -R flag *is* important as it removes the need for the setting
of LD_LIBRARY_PATH which can be used to easily shoot yourself in the foot :)
/usr/openwin is the start of the standard X11 includes, libs, binaries, etc.
/usr/dt has the Motif shared library and some includes.
Note that you should have the Motif libraries (ie -lXm) specified first in the
list of X libraries included otherwise your programs will die in weird and
wonderful ways :)
-- Simon Burr (email@example.com) | http://www.tcp.co.uk/staff/simes/ Systems Manager and Programmer | Total Connectivity Providers Ltd I *don't* speak for my company, my boss does that I've gone through over-stressed to physical exhaustion... what's next ?
----- End Included Message -----
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:52 CDT