The time now is Thu 23 May 2013, 06:53
All times are UTC - 4 |
|
Page 8 of 8 [112 Posts] |
Goto page: Previous 1, 2, 3, ..., 6, 7, 8 |
| Author |
Message |
seaside
Joined: 11 Apr 2007 Posts: 835
|
Posted: Sat 26 Jan 2013, 21:28 Post subject:
|
|
| jamesbond wrote: | Patch:
1. Remove default include files path (if this path doesn't exist, execution fails - bad)
2. change popen mode from "r" to "w" - otherwise no output
3. ensure pclose after popen so that we don't get zombie process
4. close pid from g_spawn_async
5 add version numbering so we know which version of sit this is.
6. modify build process so that it is 64-bit compatible (should still work on 32-bit)
7. modify build process so that it tests correctly |
jamesbond,
Thank you for the improvements.
The original sit-master binary compiled by technosaurus runs in Puppy precise 5.4.1 and this one failed after patching.....
| Code: | ./build
/usr/bin/ld: /tmp/cckw5xNo.o: undefined reference to symbol 'g_file_monitor_file'
/usr/bin/ld: note: 'g_file_monitor_file' is defined in DSO /usr/lib/libgio-2.0.so.0 so try adding it to the linker command line
/usr/lib/libgio-2.0.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status |
I added the link to -L/usr/lib/libgio-2.0.so.0 on the command line and that didn't make any difference.
I think it would be great to have this generally in Puppy and ideally one version for all, but I don't know enough about compiling.
Regards,
s
(EDIT: I just tried to compile the master-sit original and got the same error, so something must be different in Puppy Precise 5.4.1, even though the binary included works)
|
|
Back to top
|
|
 |
jamesbond
Joined: 26 Feb 2007 Posts: 1540 Location: The Blue Marble
|
Posted: Sat 02 Feb 2013, 07:45 Post subject:
|
|
I agree.
This is how to fix the compile it recent puppies (tested in my homebrew slackware-based 32-bit puplet). Do it after you apply the patch.
Change line 7 in "build" from
| Code: | | sit.c -o sit -lgtk-x11-2.0 && strip --strip-all -R .note -R .comment sit | To | Code: | | sit.c -o sit -lgtk-x11-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 && strip --strip-all -R .note -R .comment sit | Note the addition of -lgio-2.0 -lgobject-2.0 -lglib-2.0.
The easier way to compile without having to remember all this thingamagic is
| Code: | | sit.c -o sit $(pkg-config --libs gtk+-2.0) && strip --strip-all -R .note -R .comment sit | but technosaurus will disapprove of it (because, although it does make it easier to compile, it causes the compile to pull in unnecessary dependencies and make it slightly larger).
_________________ Fatdog64, Slacko and Puppeee user. Puppy user since 2.13
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3843
|
Posted: Sat 02 Feb 2013, 10:45 Post subject:
|
|
I think I was adding the -Wl,--as-needed flag too, which tells the linker to look in the deps. Amazingly it builds and runs fine on windows, so I would guess its the hacky canonical patches. I cant' check the puppy build right now since my classes all require windows and/or a full java sdk.
-btw thanks for the patches
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 835
|
Posted: Mon 04 Feb 2013, 13:46 Post subject:
|
|
| jamesbond wrote: |
Change line 7 in "build" from
| Code: | | sit.c -o sit -lgtk-x11-2.0 && strip --strip-all -R .note -R .comment sit | To | Code: | | sit.c -o sit -lgtk-x11-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 && strip --strip-all -R .note -R .comment sit | Note the addition of -lgio-2.0 -lgobject-2.0 -lglib-2.0.
|
jamesbond,
Thanks. It worked nicely.
In case anyone wants the compiled binary made in Precise 5.4.3, I've attached it here.
Regards,
s
| Description |
James patch to technosaurus sit-master
|

Download |
| Filename |
sit-james-master-bin.tar |
| Filesize |
20 KB |
| Downloaded |
43 Time(s) |
|
|
Back to top
|
|
 |
eadmaster
Joined: 09 Feb 2013 Posts: 24
|
Posted: Sun 14 Apr 2013, 07:32 Post subject:
|
|
is it possible to set the tooltip as a command instead of a fixed string?
So when the mouse is hovering, the cmd is executed and the output is displayed in the tooltip...
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3843
|
Posted: Sun 14 Apr 2013, 11:54 Post subject:
|
|
You can set something up in your control script to modify the tooltip file ... either by periodically running said command or running it based on some event.
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
eadmaster
Joined: 09 Feb 2013 Posts: 24
|
Posted: Sun 14 Apr 2013, 12:36 Post subject:
|
|
oh, you're right... i didn't think about it!
|
|
Back to top
|
|
 |
|
|
Page 8 of 8 [112 Posts] |
Goto page: Previous 1, 2, 3, ..., 6, 7, 8 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|