my first port: gXipmsg

IRIX/Nekoware development, porting and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
geo
Posts: 525
Joined: Tue Jul 21, 2009 5:07 am
Location: Shenzhen, P.R.C

my first port: gXipmsg

Unread postby geo » Thu Aug 23, 2012 3:01 am

hi everyone!

at last i finished something for my SGI projects hehe hope you can try this on your side for me, really thanks for any comments and suggestion :)

README:
//created: geo (August 2012)
https://github.com/gorais/gXipmsg.git


gXipmsg is a Motif version of the wonderful tool IPMsg found on this site: http://ipmsg.org/index.html.en
This project taught me a lot about Motif and TCP/UDP. The goal was to design an application that can be build and run
on all *nix platforms with as much as possible no need of modifiyng anything, as inspired by the O'Reilly book and sample codes.

The main goal for this project is to utilize the fast and easy file transfer on any *nix system between other platforms without
setting up NFS,SAMBA or other client-server apps for this purpose. Current release is ALPHA.

APLHA release: (done)
* Messaging thru UDP protocol
* Can broadcast message to specific people

BETA release: (next)
* File/folder transfer thru TCP


gXipmsg was tested on the following:

1. Intel x86:
* Windows XP through Cygwin
* Solaris 10 through VMWare
* FreeBSD 9 with OpenMotif through VBox
* Ubuntu 12.04 with OpenMotif through VBox

2. MIPS:
* IRIX 6.5 on SGI O2 and Octane

If you have any chance to try this on other platform, i'll be delighted to hear your feedback :)
You can contact me via email: orais.georgephillip@gmail.com

To try, please download the Windows version on your Windows box.
Then build using make or GNU make with Makefile.
PLease note, BSD and SUN has its own Makefile, please use this with -f option.

Hope you enjoy trying this as much i enjoyed coding this, thanks!!!


gXipmsg_ALPHA.tar.gz
(60 KiB) Downloaded 304 times
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein

User avatar
geo
Posts: 525
Joined: Tue Jul 21, 2009 5:07 am
Location: Shenzhen, P.R.C

Re: my first port: gXipmsg

Unread postby geo » Thu Aug 23, 2012 6:53 am

ops! did a quick compile test on my O2 and it seems the Makefile has a glitch, sorry when i updated the Makefile i only try it on my Cygwin.
Anyway, i already updated them on my github.
But ill just quote it here for your convenience. (im using FF on my O2 now and cannot attach the Makefile hmmm)

Please overwrite the Makefile with this: (even quote doesn't work, strange FF on my O2...)

DEBUG = -g
INCDIR =
LIBDIR =
FLAGS = -lXm -lXt -lSM -lICE -lX11

gXipmsg : main.o udp.o pack.o appIcon.o sendDialog.o recvDialog.o
cc $(INCDIR) $(DEBUG) -o gXipmsg main.o udp.o pack.o appIcon.o sendDialog.o recvDialog.o $(LIBDIR) $(FLAGS)

main.o : main.c main.h gXipmsg.h
cc $(INCDIR) $(DEBUG) -c main.c

udp.o : udp.c udp.h
cc $(INCDIR) $(DEBUG) -c udp.c

pack.o : pack.c pack.h
cc $(INCDIR) $(DEBUG) -c pack.c

appIcon.o : appIcon.c appIcon.h
cc $(INCDIR) $(DEBUG) -c appIcon.c

sendDialog.o : sendDialog.c sendDialog.h
cc $(INCDIR) $(DEBUG) -c sendDialog.c

recvDialog.o : recvDialog.c recvDialog.h
cc $(INCDIR) $(DEBUG) -c recvDialog.c

clean :
rm -f gXipmsg *.s *.o *.exe *.stackdump
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein

User avatar
mia
Posts: 988
Joined: Wed Feb 19, 2003 1:54 pm

Re: my first port: gXipmsg

Unread postby mia » Thu Aug 23, 2012 8:44 am

Screenshots would be nice!
:Onyx2:

User avatar
geo
Posts: 525
Joined: Tue Jul 21, 2009 5:07 am
Location: Shenzhen, P.R.C

Re: my first port: gXipmsg

Unread postby geo » Thu Aug 23, 2012 9:50 am

mia wrote:Screenshots would be nice!

hi mia! before i sleep here are some quick screenshots that i took:

gXipmsg in action under Cygwin
gXipmsg on WinXP.JPG


IPMsg under WinXP (downloaded for testing)
IPMsg on WinXP.JPG


gXipmsg from Octane
gXipmsg from Octane.jpg


btw, please ignore the time stamps, i forgot to properly set my Octanes system time.
Tomorrow will post some screenshots for Solaris, FreeBSD and Ubuntu, coz all these are just running on my office vmware and vbox. For FreeBSD, it compiles but i cannot get any UDP response, my suspicion is firewall? Any BSD user here can help me? :) thanks... so, will hit the sack now, its 12:47am now... hope you guys can try this for me :) ciao!!
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein

User avatar
geo
Posts: 525
Joined: Tue Jul 21, 2009 5:07 am
Location: Shenzhen, P.R.C

Re: my first port: gXipmsg

Unread postby geo » Thu Aug 23, 2012 9:55 am

Just for excitement, this release just contains the main feature which is sending messages thru UDP.
Next release will focus to implement the file/folder transfer thru TCP. With this nice feature, we can share files from any platform
without setting up NFS, Samba or others.. :)

night everyone!
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein

User avatar
canavan
Posts: 754
Joined: Mon Jul 21, 2003 6:19 am

Re: my first port: gXipmsg

Unread postby canavan » Thu Aug 23, 2012 11:45 am

The SGI Screenshots don't look IRIXy enough. If your app supports Xresources (it should), try setting the following resourced (prefixed by gXipmsg or whatever it's using as an internal name). Use xrdb -merge to merge your new resources with those already set at the start of your session.

Code: Select all

*schemeFileList:        SgiSpec
*useSchemes:            all
*useEnhancedFSB:        True
*sgiMode:               true

User avatar
jirka
Posts: 135
Joined: Tue May 04, 2004 7:55 am
Location: Czech Republic
Contact:

Re: my first port: gXipmsg

Unread postby jirka » Thu Aug 23, 2012 11:59 am

geo wrote:Hope you enjoy trying this as much i enjoyed coding this, thanks!!!


Hi,

It looks very nice! Can you please provide also the IRIX binary? I don't have SGI compiler and I'm not able to compile it here :-(
:O2: :Indy: :Indy:

User avatar
geo
Posts: 525
Joined: Tue Jul 21, 2009 5:07 am
Location: Shenzhen, P.R.C

Re: my first port: gXipmsg

Unread postby geo » Thu Aug 23, 2012 6:08 pm

canavan wrote:The SGI Screenshots don't look IRIXy enough. If your app supports Xresources (it should), try setting the following resourced (prefixed by gXipmsg or whatever it's using as an internal name). Use xrdb -merge to merge your new resources with those already set at the start of your session.

Code: Select all

*schemeFileList:        SgiSpec
*useSchemes:            all
*useEnhancedFSB:        True
*sgiMode:               true

hi canavan! thanks for this suggestion! ok will put this on my todolist for the next version :)


jirka wrote:Hi,

It looks very nice! Can you please provide also the IRIX binary? I don't have SGI compiler and I'm not able to compile it here

hi jirka! thanks! ok here is the binary compiled on my Octane. Not sure to ask this but if i compile it on Octane, its runable on any SGI right? or should it compiled on specific machines? My feeling is it should work but i remember O2 uses 32bit while others are 64bit? But i guess these specs doesn't matter right? OK thanks for trying this out! :)
gXipmsg.zip
(20.34 KiB) Downloaded 118 times
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein

User avatar
geo
Posts: 525
Joined: Tue Jul 21, 2009 5:07 am
Location: Shenzhen, P.R.C

Re: my first port: gXipmsg

Unread postby geo » Thu Aug 23, 2012 7:49 pm

other screenshots as promised:

on x86 Solaris 10 via VMware
gXipmsg on x86 Solaris 10 via VMWare.JPG


on Ubuntu 12.04 via Virtual Box
gXipmsg on Ubuntu 12.04 via VirtualBox.JPG


FreeBSD still working with firewall option :(
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein

User avatar
jirka
Posts: 135
Joined: Tue May 04, 2004 7:55 am
Location: Czech Republic
Contact:

Re: my first port: gXipmsg

Unread postby jirka » Fri Aug 24, 2012 12:19 pm

geo wrote:Hi,
hi jirka! thanks! ok here is the binary compiled on my Octane. Not sure to ask this but if i compile it on Octane, its runable on any SGI right? or should it compiled on specific machines?


Hello,
Thanks much! It works on my O2 (IRIX 6.5.27) so it must be 32-bit binary. I can even receive messages from the IPmessenger (I have tried the version 0.9 on my old PowerPC iMac)! Only the sending to that IPmessenger don't work for me.
Attachments
1.png
:O2: :Indy: :Indy:

User avatar
geo
Posts: 525
Joined: Tue Jul 21, 2009 5:07 am
Location: Shenzhen, P.R.C

Re: my first port: gXipmsg

Unread postby geo » Fri Aug 24, 2012 5:46 pm

jirka wrote:Hello,
Thanks much! It works on my O2 (IRIX 6.5.27) so it must be 32-bit binary. I can even receive messages from the IPmessenger (I have tried the version 0.9 on my old PowerPC iMac)! Only the sending to that IPmessenger don't work for me.

Hi jirka! Thanks too for trying this :) so I guess it doesn't matter which machine as long as the app is not particular with the bit width right?

Anyway, nice screenshoot! hehe but i notice the gXipmsg didn't show the xpm icon, i forgot to mention that you should place the ipmsg.xpm together with the binary, next version ill add a make install on the makefiles ;)

Oh! i see, sorry i dont have any mac here to replicate it but hmm which IPmessenger did you use again on the iMac? is it the GNOME2 version? if so, could you please try compile gXipmsg on the iMac and see if still not able to send message? Or you can also try the X11R6 version on the iMac, just what is convenient for you, this will let us know which has the bug, is it on my Motif version, or the other IPmessnger.

Really thanks a lot to try it out, this way we can polish this more and soon i will focus on the file transfer, just imagine a file sharing to any platforms without installing anything, would be great right? :)
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein

hamei
Posts: 10101
Joined: Tue Feb 24, 2004 4:10 pm
Location: over the rainbow

Re: my first port: gXipmsg

Unread postby hamei » Fri Aug 24, 2012 9:20 pm

This is a useful piece of work, geo. Thank you. :D

User avatar
geo
Posts: 525
Joined: Tue Jul 21, 2009 5:07 am
Location: Shenzhen, P.R.C

Re: my first port: gXipmsg

Unread postby geo » Sat Aug 25, 2012 1:57 am

hamei wrote:This is a useful piece of work, geo. Thank you. :D

thanks hamei!! Yeah esp here in our company, we use this to communicate with others and pass files like schematics, firmware, pcb drawing, mechanical drawing or office files :) sending it to bldg B is just a drag n drop n clik away hehe so this is why i want this to work on our NIX machines ;) coz im a bit lazy to setup again NFS hehe so lets finish this fast! Wanna lend a hand there hehe or still busy with your motif browser? :) if im done with this i can also help you.
:Octane: (Sakura) :O2: (Sasuke) :1600SW: (Naruto) ... lil Jesse! (O2 laptop)
“Imagination is more important than knowledge.“ – A. Einstein

User avatar
Geoman
Posts: 670
Joined: Thu May 26, 2005 3:37 am
Location: Munich, Germany
Contact:

Re: my first port: gXipmsg

Unread postby Geoman » Sat Aug 25, 2012 2:37 am

well done!
:Octane2: 2xR12000 400MHz, 4GB RAM, V12
SGI - the legend will never die!!

hamei
Posts: 10101
Joined: Tue Feb 24, 2004 4:10 pm
Location: over the rainbow

Re: my first port: gXipmsg

Unread postby hamei » Sat Aug 25, 2012 6:29 am

geo wrote: Wanna lend a hand there hehe or still busy with your motif browser? :) if im done with this i can also help you.

I'd love to, but kind of busy right now getting the text big enough so I can put the magnifying glass away :)


Return to “SGI: Development”

Who is online

Users browsing this forum: No registered users and 1 guest