1834078 Members
2758 Online
110063 Solutions
New Discussion

GUI on HPUX

 
Henry Chua
Super Advisor

GUI on HPUX

Hi Guys,

What do you usually use to produce GUI program on HPUX? I am currently using 10.20b. Thank you?

Best regards
Henry
13 REPLIES 13
Roderik Hamers
Frequent Advisor

Re: GUI on HPUX

Unix-based version got mostly XWindow on them, so 'startx' should do the trick.
Robert-Jan Goossens
Honored Contributor

Re: GUI on HPUX

Henry,

Are you refering to CDE ?

Try
# /usr/dt/bin/dtconfig -e
# init 2
# init 3

Regards,
Robert-Jan
Alex Glennie
Honored Contributor

Re: GUI on HPUX

Henry,

A Gui requires the following regardless of the O/S version

a) a local graphics card

b) appropriate device files created for hpux use insf -evd framebuf.

c) At the minimum an Xserver, usually a windows manager such as CDE or VUE which sits ontop of the Xserver and makes life easier by giving you a desktop enviroment with icons etc etc.

this is normally setup at install time on a graphics workstation so nothing would have to be done ...

if this is a server things get more complicated unless it has a local graphics card and monitor ... why because X/CDE has no
display to appear on, how then do you see it.

Most people use either

Xemulator s/w reflections X, Exceed etc

make use of an already running remote Xserver, can be on linux,solaris or another hpux system etc as X is generic,you'd then remote login to your server from the remote host, export DISPLAY=:0
and then run the GUI

an xterminal

some depending on the GUI in question use xvfb, since this is 10.20 you won't have this installed by default and would most likely need the 10.20 depot from a local HP response
centre as it only became supported as an xserver extension at 11.x ... a quick search on google for xvfb depot should come up with the goods if needed.
Zygmunt Krawczyk
Honored Contributor

Re: GUI on HPUX

Hi Henry,

look at the following products:


http://www.pts.com/
UIM/X Motif GUI Builder and Code Generator

http://www.ist.co.uk/
X-Designer

http://www.scl.com/
BX PRO Motif GUI Builders

Regards,
Zygmunt
Sebastian Cesario_1
Occasional Advisor

Re: GUI on HPUX

Henry, I think you need a software in the host as Reflection X or something like that.
on the running session export DISPLAY vriable in this way:

export DISPLAY=xxx.xxx.xxx.xxx:0.0
the x´s refeers to ip address or it could be hostname too.
and after that with reflection X opened you can run Xterm or Xsession.

Regards,
Sebastian Cesario
Geoff Wild
Honored Contributor

Re: GUI on HPUX

As an aside - 10.20 of HP-UX was discontinued on June 30, 2002.

You should really upgrade to 11i

As far as GUI - do you mean on the server or from a PC?

On the server, CDE or Gnome works. From a PC - Exceed.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Alzhy
Honored Contributor

Re: GUI on HPUX

The easiest tool to use is TCL/TK. The program is pretty much script/shell like but you get practically all the "widgets" available out of Motif/CDE or whatever Window Manager your X-Windows is using.

Not as fast as native C-code Motif/X-Windows apps but usable enough.

Many many resources and download sites for TCL/TK... Google...
Hakuna Matata.
Alzhy
Honored Contributor

Re: GUI on HPUX

This is of course what you meant right? You know already X-Windows concepts, X-Servers, X-emulators, etc.... and you simply wanted how you can create X-Windows./GUI applications?
Hakuna Matata.
A. Clay Stephenson
Acclaimed Contributor

Re: GUI on HPUX

Although it's not ported to 10.20 (and you shouldn't be developing for 10.20 anyway), my weapon of choice for GUI development is Qt. It's probably the best GUI Development system that you've never heard of and it runs on a wide variety of platforms (UNIX, Linux, Mac, Windows).
If it ain't broke, I can fix that.
Tom Satinet
Frequent Advisor

Re: GUI on HPUX

Thanks - i installed the XPM for the utah hp mirror. I hadn't been able to find it on the UK one which is wierd. I also had to install 'libungif', but it's working now.

Thanks very much for the incredibly speedy response :-)
Michael Morgan_5
New Member

Re: GUI on HPUX

Java Swing Windows Toolkit will work. There's odd font issues with HPUX 10.20 and certain java apps, so test a lot or upgrade.

Looking at the forum for a tip on running the app on HPUX with the display on Fedora Core 3.

tcp/7000 is NOT listening. How do I turn that service on in Linux?

Regards
Michael
H.Merijn Brand (procura
Honored Contributor

Re: GUI on HPUX

It's so funny that you all answer with desktop environments when he asks for "GUI program".

My first association was about applications, not the desktop. 10.20 comes with CDE and HP VUE standard, so it should be no problem getting the X11 server up and running in VUE, which is 10.20's default. (That later moved to CDE, which was neither worse nor better: still a resource hog)

Now when you talk about GUI *applications*, I would use perl/Tk myself, but that is because I am used to it. If you are familiar with GUI programming, you could also try to go for native X11 libraries like gtk+ or Qt. Both need an awful lot of work to get compiled. I would guess that getting Qt-3.3.6 up and running on 10.20 without prebuilt packages takes more than a day, whereas getting perl/Tk up and running is about an hour (or less, if you use prebuilt distributions, which *are* still available from my site).

With Qt and GTK+, you have much more control over the resulting GUI, but you will also have to do a lot of C programming. With Tk and perl/Tk, you are scripting, which is a lot faster.

I'm now curious which of the two you were asking for: the desktop environment, or the application GUI?

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor

Re: GUI on HPUX

Sorry for also answering in this half year old thread. I didn't look close enough. :/

Enjoy, Have FUN! H.Merijn [ who opposes to revivivication of old threads unless absolutely needed :) ]
Enjoy, Have FUN! H.Merijn