Porting graphical Solaris application to Linux


 
Thread Tools Search this Thread
Operating Systems Solaris Porting graphical Solaris application to Linux
# 1  
Old 12-07-2012
Computer Porting graphical Solaris application to Linux

I don't expect any quick answers, but if people have links to resources I can investigate I'd be extremely appreciative. Here is what we have today:
The "application" is a multi-process train control system that uses the Unix desktop, currently CDE, several motif-based applications and sound, communications with a mainframe, XML message passing and miscellaneous processes. The graphics are mostly written in C/C++ with Motif calls. Pretty sure there is also use of Xview. The dialogs are done with UIL/UID. The XML parser is in Java. Of course there are plenty of startup & wrapper scripts and various C source, but I'm most concerned with the Graphics.
My initial target was to be Centos 6, but I have flexibility there. I see that Xview is available as open-source as well as Motif. But CDE is alpha-only and anyway do I need it? We don't use much of the Desktop tools, but we do use X and CDE resources and the dtwm as a "bucket" for the application. I'm also worried about the Video interfaces at a low-level since we use mutiple heads.
How hard do you think this is going to be? Should I bother with CDE? I really want to hear from people who have done any of this and maybe have a cache of resources or some books to recommend.
Thanks to all. Smilie
# 2  
Old 12-14-2012
X/Motif apps need X and Motif libs, and an X desktop, but should not care what desktop they pop out on! In fact, you can switch wm while the app is running. Your only issues are getting compatible behaviors for all the C and Motif calls from Xfree and lesstif or open Motif or such. It seems like it should not be a big deal, but the devil is always in the details. Do your video thingies go below X, or are they just pixelating a window that may be displayed whole or in part on one desktop on parts of one or more displays?
This User Gave Thanks to DGPickett For This Post:
# 3  
Old 03-14-2013
Most of the application calls are Motif or Xview. There is some Xlib access but that's it. the application uses double-buffering for smooth zooming.
I wonder if it would be easier to transition to Solaris containers and X Terminals.
# 4  
Old 03-14-2013
I would think you could use a motif X desktop on LINUX and see half of the behavior right now.

Is the X Client porting that hard?
# 5  
Old 03-18-2013
Computer

Ah, great idea, set my DISPLAY over on the Linux box and see if I can get the application screens up on there. Excellent unit test! I'll try it an post back. That should give at least a warm fuzzy as to how much a different window manager would matter.
As for building under Linux -- yes, it is hard. I have a 32-bit version of Xview as that seems to be the only version of that library available for Linux (it implements the old Sunview calls) so I have to build all of the graphical application as 32-bit and that requires it's own set of headers and libraries, etc. So it gets involved.Smilie
# 6  
Old 03-20-2013
Remember that the chosen X window manager is another X client, and can run anywhere there is connectivity! The X Server mainly varies in screen dimensions, I bet. I run everything local for top speed and vnc out the desktop. The big worry in X is that an app will start playing ping-pong with the X server, and the latency will kill you, and sometimes the app times out, too. I put a vnc desktop on each server, so no x on the net.
# 7  
Old 04-01-2013
Remote application screens worked OK

I ran the application on a Solaris 10 box and sent the display the the Linux box and it doesn't look horrible. There was at least one font not found, so the default chosen made everything too big. The other problem was the colormap. We run 8/24 on Solaris because the app needs that (not sure in you can double-buffer with more bit depth than that, but anyway that's what it is now).
Other than that, it looks reasonable. That was a good first step.
Also we have got the app build and linked in 32-bit mode, but it looks like the 32-bit gcc packages conflict with the 64-bit packages. Quite odd. I've got to think they can co-exist.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cannot get terminal application to launch with a graphical launcher when successful in terminal

I have been having an extremely annoying problem. For the record, I am relatively new at this. I've only been working with unix-based OS's for roughly two years, mostly Xubuntu and some Kali. I am pretty familiar with the BASH language, as that's the default shell for debian. Now, I've made this... (16 Replies)
Discussion started by: Huitzilopochtli
16 Replies

2. Shell Programming and Scripting

Closing a graphical application by pid

Hi all, I have a small graphical application whose only purpose is to pop up certain types of messages. Currently, I'm using it in a Bash script like this: ./MyProg "this is my message" while do ... do things ... done What I want to do is after the while loop is over (it does... (4 Replies)
Discussion started by: Zel2008
4 Replies

3. Shell Programming and Scripting

Porting script from Solaris to Linux

I have a script which has commands that are located in different paths on my Linux o/s than on Solaris. For example, to make uname work, I need to do it this way in Solaris: my $host= `/usr/bin/uname -n` But in Linux it is: my $host = `/bin/uname -n`I have this issue with at least 5... (8 Replies)
Discussion started by: newbie2010
8 Replies

4. Shell Programming and Scripting

Porting from Solaris to Linux

Can any one please help the use of "cu command in Solaris" and as well as in Linux :confused: (1 Reply)
Discussion started by: sabee.prakash
1 Replies

5. UNIX and Linux Applications

invoke remote graphical application..and display locally

Hi, I want to invoke(run) a graphical application remotely, and the display should be in remote itself. (no X redirect).i want to do this through ssh. like if i login to a remote machine and run firefox it should display there itself. how can i do this..? (2 Replies)
Discussion started by: madhusudankh
2 Replies

6. Solaris

Porting a Linux Driver to Solaris

Hi all, Has anyone experience with proting a Linux driver (C-code) to Solaris 10? I have a Sunix SATA card with a inicio1622 chipset, but no driver available. From the website of inicio I downloaded the drivercode for Linux 2.4. Having done some investigation I found a Solaris driver... (4 Replies)
Discussion started by: longwave
4 Replies

7. AIX

porting an application on 64-bit AIX version 5

Hi all, I am facing problem in porting to 64 bit AIX especially with compiling options to compile and run under 64 bit kernel.Can any one put some light on the issue thanks in advance vishal (14 Replies)
Discussion started by: vishalzone2002
14 Replies

8. Programming

Porting Win32 application into Linux

I need port Win32 console application, which was developed with MS Visual Studio 6.0 (without MFC using) into Linux. What is the best way to port project? Are there any standard tools or decisions? Thank you in advance, Sergey (0 Replies)
Discussion started by: Sergeyy
0 Replies

9. UNIX for Advanced & Expert Users

Application can't startup?? Solaris and Linux RedHat

can someone tell me what could cause an application not to startup? I'm getting calls from users saying they cant' startup a particular application. how do I troubleshoot this? i tried doing ps -ef | grep (application) i saw the application running. now, am wondering, would it be safe to... (1 Reply)
Discussion started by: TRUEST
1 Replies

10. Programming

Porting the server part of a VC++ Application on UNIX OS

Hello, I am a VC++ programmer. I want to port my existing , working VC++ application on windows NT using MS-Word on to Unix as an OS.... My requirement is just to port the server part of the application on UNIX and client part would remain in NT. I have many issues to handle to finally... (1 Reply)
Discussion started by: real_rachna
1 Replies
Login or Register to Ask a Question