LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2016, 11:02 AM   #1
DiPepper
LQ Newbie
 
Registered: Oct 2015
Location: louisiana
Posts: 6

Rep: Reputation: Disabled
Build a GUI on legacy Unix 5.1.5


I'm a N00b to Linux. I have been tasked to upgrade/re-create a program for a legacy system on Solaris 5.1.5. The current program in use is written in .c with Xview, a widget toolkit. Unfortunately, the .h files cannot be found on the system, example of a few Here:
#include <xview / canvas.h>
#include <xview / scrollbar.h>
#include <time.h>
#include <values.h>
#include <xview / notice.h>
I am not able to see what these header files are doing. Since I am new to Unix/Linux--could I use another program like Python to build the GUI? If not, then can someone suggest what I could use to build a GUI for this legacy software. BTW--my company has no intention of upgrading the software any time in the near or far future.

Thanks in advance!
 
Old 04-19-2016, 11:20 AM   #2
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 309

Rep: Reputation: 104Reputation: 104
Quote:
Originally Posted by DiPepper View Post
I'm a N00b to Linux. I have been tasked to upgrade/re-create a program for a legacy system on Solaris 5.1.5. The current program in use is written in .c with Xview, a widget toolkit. Unfortunately, the .h files cannot be found on the system, example of a few Here:
#include <xview / canvas.h>
#include <xview / scrollbar.h>
#include <time.h>
#include <values.h>
#include <xview / notice.h>
I am not able to see what these header files are doing. Since I am new to Unix/Linux--could I use another program like Python to build the GUI? If not, then can someone suggest what I could use to build a GUI for this legacy software. BTW--my company has no intention of upgrading the software any time in the near or far future.

Thanks in advance!
Here ya go, the source code to xview itself.
https://www.physionet.org/physiotool...1.4-18c.tar.gz
 
1 members found this post helpful.
Old 04-19-2016, 11:29 AM   #3
DiPepper
LQ Newbie
 
Registered: Oct 2015
Location: louisiana
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks - but I would rather use Python

Thank you dev/Random. I had already found the Xview code. I guess I wasn't too specific on my question.
Could I use Python to build a GUI on this legacy box? Do you think that is a good idea or not?

Thanks in advance.
 
Old 04-19-2016, 11:33 AM   #4
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 309

Rep: Reputation: 104Reputation: 104
Quote:
Originally Posted by DiPepper View Post
Thank you dev/Random. I had already found the Xview code. I guess I wasn't too specific on my question.
Could I use Python to build a GUI on this legacy box? Do you think that is a good idea or not?

Thanks in advance.
I personally don't think that would be a good idea.
The box is older and python is object oriented, which would mean that each object you introduce will cause slightly more overhead
for older boxes I would stick to C

Also there is no guarantee that the python that is on the box is going to play nice with any newer eggs.
 
1 members found this post helpful.
Old 04-19-2016, 11:37 AM   #5
DiPepper
LQ Newbie
 
Registered: Oct 2015
Location: louisiana
Posts: 6

Original Poster
Rep: Reputation: Disabled
Ok Xview it is...

Ok, Xview it is then!!
Thank you for your advice. You probably saved me much trouble!!
 
Old 04-20-2016, 01:31 PM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,842

Rep: Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472
Quote:
Originally Posted by DiPepper View Post
Ok, Xview it is then!!
Thank you for your advice. You probably saved me much trouble!!
Note: xview is not 64bit capable. There MAY be a project at porting it... but the 32 bit version of Xview will not be updated, and may not work on current systems either. Recompiling xview takes some rather old software tools (imake, and a C preprocessor that is compatible - the current C compiler preprocessors are NOT compatible with xview).

I wish Sun had done a better job of the original implementation... Much of the problem is that the toolkit assumes a pointer is the same size as an integer... and that is NOT true, nor can redefining the opaque structure to 64 bit work as many places use it as an integer (tried that, doesn't work). There are also many hidden/implied casts operations being done that don't work any more (some depending on the fact that the opaque structures are integer types...)

Last edited by jpollard; 04-20-2016 at 01:34 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Considering Legacy UNIX/Linux Issues LXer Syndicated Linux News 0 08-28-2014 01:32 PM
What distros can I use with my machine? Legacy Build FlexBuffChest92 Linux - Desktop 14 10-16-2013 07:02 AM
GUI-less Linux/UNIX Blackened Justice Linux - Newbie 15 06-26-2011 04:08 PM
LXer: Build a faster and more secure UNIX file system LXer Syndicated Linux News 0 02-23-2009 09:51 PM
I want to cheaply build my own Linux/Unix PC, but don't know where to start Mrrrr. Nice Guy Linux - Hardware 5 12-21-2005 01:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration