Xpad compile (success)

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
necron2600
Posts: 279
Joined: Tue May 26, 2015 10:38 pm
Location: Boston

Xpad compile (success)

Unread postby necron2600 » Thu Aug 20, 2015 11:12 pm

I have been using an SGI system as a daily driver the past month (better late than never...) and I can stand slow firefox, no youtube, etc.. but I really could not stand missing a sticky post-it note app. Having 10 or more nedit windows open didnt work well for me.

So, I set out to find any existing sticky post-it note-style app that would work on IRIX. I have all Nekoware packages as of a couple months ago.. up-to-date, etc.. I did not seem to find anything equivalent.. or existing already that still works. (I hope I didnt miss any!)

XPad ( https://launchpad.net/xpad ) fit the bill. Lightweight, cross-platform, C code.
All versions failed to pass a configure due to an older intltool on my system.
However. the older xpad version 3.0 worked fine.

Download xpad-3.0.tar.bz from https://launchpad.net/xpad

I set my PATH to have gcc4.7 first.. instead of using nekoware's gcc version 3 in /usr/nekoware/bin:
export PATH=/usr/nekoware/gcc4.7/bin:$PATH
Note I am using bash shell...

./configure

edit po/Makefile
GMSGFMT = is empty for some reason and a gmake errors out.. but the following line MSGFMT has /usr/nekoware/bin/msgfmt.
I added /usr/nekoware/bin/msgfmt as the value to GMSGFMT:
GMSGFMT = /usr/nekoware/bin/msgfmt
MSGFMT = /usr/nekoware/bin/msgfmt

Fix a bug for xpad with newer versions of glib/gdk2 that come from nekoware:
Error message: (xpad:15313): GLib-GObject-WARNING **: IA__g_object_set_valist: construct property "type" for object 'XpadPad' can't be set after construction

fix source: http://www.murga-linux.com/puppy/viewtopic.php?t=65343
--- orig/xpad-4.0/src/xpad-pad.c 2009-05-11 03:44:09.000000000 +0200
+++ xpad-4.0/src/xpad-pad.c 2010-04-09 14:36:50.000000000 +0200
@@ -275,7 +275,7 @@
"gravity", GDK_GRAVITY_STATIC, /* static gravity makes saving
pad x,y work */
"skip-pager-hint", !xpad_settings_get_has_decorations
(xpad_settings ()),
"skip-taskbar-hint", !xpad_settings_get_has_decorations
(xpad_settings ()),
- "type", GTK_WINDOW_TOPLEVEL,
+ //"type", GTK_WINDOW_TOPLEVEL,
"type-hint", GDK_WINDOW_TYPE_HINT_NORMAL,
"window-position", GTK_WIN_POS_MOUSE,
"child", vbox,

What the above means is:
edit src/xpad.pad.c and comment out "type", GTK_WINDOW_TOPLEVEL, line

gmake # note to use gmake not make, or else strange errors show up (bu42, etc..)

all done.. working binary in src/xpad

as root run:
gmake install
to install to /usr/local

I hope this helps someone. Sometime soon I will see about creating a nekoware tardist.

User avatar
foetz
Moderator
Moderator
Posts: 6593
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Xpad compile (success)

Unread postby foetz » Fri Aug 21, 2015 12:42 am

thanks for the guide. if you just wanna share it without going through creating a correct nekoware tardist you could also just attach the compressed package

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

Re: Xpad compile (success)

Unread postby hamei » Fri Aug 21, 2015 12:56 am

foetz wrote:thanks for the guide. if you just wanna share it without going through creating a correct nekoware tardist you could also just attach the compressed package

Nekochan also has a /contrib directory structure with a ton of non-nekoware stuff (as foetz well knows, he's the leader in that field :D) Contact Mr Neko and he'll set you up.
I spent a fortune on booze, birds, and fast cars ... the rest I just squandered

User avatar
foetz
Moderator
Moderator
Posts: 6593
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Xpad compile (success)

Unread postby foetz » Fri Aug 21, 2015 2:58 am

haha yes of course, but that only makes sense if you plan to offer a bunch of stuff

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

Re: Xpad compile (success)

Unread postby hamei » Fri Aug 21, 2015 6:30 am

I knew I remembered something about this ...

viewtopic.php?f=7&t=16726484&p=7349428&hilit=stickynotes#p7349428

so I took advantage of jimmer's absence
jimbo.jpg

to throw a compiler against it, came out with
notery.jpg

for those what's adwenturous, here's the binneries and readme.1st
jimmernotes.tar.gz
(94.13 KiB) Downloaded 25 times

but one thing ... read up on the vulcan death grip first. Jimmer may not welcome this ghost-ex-closetus :shock:
I spent a fortune on booze, birds, and fast cars ... the rest I just squandered

User avatar
duck
Donor
Donor
Posts: 746
Joined: Mon Oct 27, 2003 5:22 pm
Location: Jakobstad, Finland
Contact:

Re: Xpad compile (success)

Unread postby duck » Fri Aug 21, 2015 6:32 am

In case Xpad doesn't work out for you, there's also the thing jimmer cooked up (viewtopic.php?t=13785), though the link is dead (and that's an old version anyway). I have a copy here: http://duck.at.shangtai.net/files/sgi/.

Damnit, hamei, you ninja :-P
:Octane: halo, octane Image knightrider, d i g i t a l AlphaPC164, pond, soekris net6501, misc cool stuff in a rack
N.B.: I tend to talk out of my ass. Do not take it too seriously.

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

Re: Xpad compile (success)

Unread postby hamei » Fri Aug 21, 2015 6:36 am

duck wrote:Damnit, hamei, you ninja :-P

There's plenty of room here for a team ... maybe you can get it to not seize up the desktop ?
I spent a fortune on booze, birds, and fast cars ... the rest I just squandered

User avatar
duck
Donor
Donor
Posts: 746
Joined: Mon Oct 27, 2003 5:22 pm
Location: Jakobstad, Finland
Contact:

Re: Xpad compile (success)

Unread postby duck » Fri Aug 21, 2015 6:41 am

hamei wrote:
duck wrote:Damnit, hamei, you ninja :-P

There's plenty of room here for a team ... maybe you can get it to not seize up the desktop ?


Notes then? I have no issues running it since I first installed it...
:Octane: halo, octane Image knightrider, d i g i t a l AlphaPC164, pond, soekris net6501, misc cool stuff in a rack
N.B.: I tend to talk out of my ass. Do not take it too seriously.

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

Re: Xpad compile (success)

Unread postby hamei » Fri Aug 21, 2015 9:35 pm

duck wrote:Notes then? I have no issues running it since I first installed it...

Okay le, went back to jimmer's preferred opto of -O2 instead of -O3, it seems better.

However, it still exhibits the marks of the Dreaded SIQ if I play with the notes too much. And "hide" does not do anything. I could be misusing it, I'm not much of a postit notes guy, prefer the mmb-to-a-textfile trick.

Could still be several things - Viewkit here at 21 and so is the os. Also I have 2 p's ? One would think everything in Irix would be careful about smp but you never know.

Anyhoo, here's a better binnery. Don't use the other one, she is bad. Do you want to tar yours and stick it up for comparison, duck ?

This is just the executable, the README and chestrc are still in the earlier attachment. No point to getting carried away until we find the problem :(
notes.tar.gz
(92.13 KiB) Downloaded 20 times
I spent a fortune on booze, birds, and fast cars ... the rest I just squandered

User avatar
duck
Donor
Donor
Posts: 746
Joined: Mon Oct 27, 2003 5:22 pm
Location: Jakobstad, Finland
Contact:

Re: Xpad compile (success)

Unread postby duck » Sat Aug 22, 2015 12:15 am

hamei wrote:
duck wrote:Notes then? I have no issues running it since I first installed it...

Could still be several things - Viewkit here at 21 and so is the os. Also I have 2 p's ? One would think everything in Irix would be careful about smp but you never know.


Yup, dual R12ks here too, and ViewKit 2.1. I thought I had the 1.0 tardist installed (linked in my earlier post), but the binary is in /usr/local and I don't have a 'notes' package installed, so perhaps I'm running 0.9? I have a vague memory of one of the versions being kind of broken.

Yup, "About Notes" says 0.9.

Find my binary enclosed.

It's not something I use every day (these notes are OLD :-), but quite handy...

snap.png
Attachments
notes.gz
Notes binary
(41.2 KiB) Downloaded 23 times
:Octane: halo, octane Image knightrider, d i g i t a l AlphaPC164, pond, soekris net6501, misc cool stuff in a rack
N.B.: I tend to talk out of my ass. Do not take it too seriously.

User avatar
jimmer
Donor
Donor
Posts: 483
Joined: Tue Oct 12, 2004 3:54 pm
Location: London, Ingerlund

Re: Xpad compile (success)

Unread postby jimmer » Sat Aug 22, 2015 1:13 am

Hey there Earthlings,

Thrilled to see somebody is looking into using my spit+ducttape Notes thingy. Will look into the various issues and see if/what to fix.

In the meantime here's something completely unrelated yet utterly useful, coz I always forget. Yay!

Code: Select all

#!/bin/sh

motif_version=`ls -l /usr/include/Xm/ | awk '{FS="/"; print $6}'`
text="Currently\ using\ $motif_version"

btn_result=`eval xconfirm -c -header "Motif" -t ${text} -B Ok -icon info`
:Fuel: redbox 800Mhz 4Gb V12
:O2: bluebox 200Mhz 256Mb AV1+O2Cam

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

Re: Xpad compile (success)

Unread postby hamei » Sat Aug 22, 2015 1:59 am

jimmer wrote:Hey there Earthlings ...

came a voice from the sky on that magical night ...

Thrilled to see somebody is looking into using my spit+ducttape Notes thingy. Will look into the various issues and see if/what to fix.

Heck, if that's all it takes, keep writing software and we'll take care of the rest :D

Meanwhile, I tried duck's with the same result, all is fine until I try < notes - hide >.

Then I looked at the source ... there doesn't appear to be any code for < -hide > ?

Seems like that'd do it :D
I spent a fortune on booze, birds, and fast cars ... the rest I just squandered

User avatar
necron2600
Posts: 279
Joined: Tue May 26, 2015 10:38 pm
Location: Boston

Re: Xpad compile (success)

Unread postby necron2600 » Tue Aug 25, 2015 3:30 pm

XPad 3.0 compiled for mips4 (using gcc4.7)
Extract into /usr/local

-Kevin
Attachments
xpad-extract-in-usr-local.tar.gz
XPAD 3.0 for mips4
(267.97 KiB) Downloaded 22 times


Return to “SGI: Development”

Who is online

Users browsing this forum: No registered users and 1 guest