Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 22 Nov 2014, 12:51
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
pUPnGO - 6Mb ISO - Basic Building Block Puplet
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 52 of 58 [868 Posts]   Goto page: Previous 1, 2, 3, ..., 50, 51, 52, 53, 54, 55, 56, 57, 58 Next
Author Message
goingnuts

Joined: 07 Dec 2008
Posts: 783

PostPosted: Fri 01 Nov 2013, 04:14    Post subject:  

Ibidem wrote:
...
Thanks. It's working nicely...urxvt is working, etc.
In fact, I'm typing this from links2 with the X driver, running under tinyxserver.
I'm using mwm for window manager at present.
...

Good! Any links for the sources of urxvt & mwm? I would like to test as well.

Found cflow-2.0 which will give:
Code:
# ./cflow 9menu.c 
/root/bin/prcg: cannot redefine:
/root/bin/prcg: cannot redefine:
1       main {9menu.c 236}
2               strrchr {}
3               args {9menu.c 167}
4                       strcmp {}
5                       getenv {}
6                       getcwd {}
7                       strlen {}
8                       malloc {}
9                       sprintf {}
10                      putenv {}
11                      printf {}
12                      exit {}
13                      usage {9menu.c 476}
14                              fprintf {}
15                              exit {}
16              usage ... {13}
17              fopen {}
18              fprintf {}
19              exit {}
20              fgets {}
- there seems to be newer project with same name but lower version number - haven't tested though.
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4376

PostPosted: Fri 01 Nov 2013, 21:25    Post subject:  

there is also cscope
http://cscope.sourceforge.net/
and its tk frontend cbrowser
http://sourceforge.net/projects/cbrowser/files/cbrowser/0.8/
(many versions of emacs support cscope too)
... and the defacto
http://www.graphviz.org/
or a qt3 alternative:
http://sourceforge.net/projects/bouml-ng/files/0/4.22.2/
which is now ported to qt4 and renamed douml
and lxr (written in perl)
or opengrok (in java)

there is also silentbob which requires ruby to build ... wtf, screw that! Do this.
g++ -Os -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -I$PWD/gclib/include -I$PWD/include gclib/src/*.c* sblib/src/*.c* silentbob/src/*.c* -o sbob -Wl,-O4,--gc-sections,-s

This geany gdb wrapper plugin could be helpful too:
http://git.geany.org/geany-plugins/tree/scope

_________________
Web Programming - Pet Packaging 100 & 101

Last edited by technosaurus on Sat 02 Nov 2013, 11:18; edited 1 time in total
Back to top
View user's profile Send private message 
Ibidem

Joined: 25 May 2010
Posts: 522
Location: State of Jefferson

PostPosted: Sat 02 Nov 2013, 11:14    Post subject:  

goingnuts wrote:
Ibidem wrote:
...
Thanks. It's working nicely...urxvt is working, etc.
In fact, I'm typing this from links2 with the X driver, running under tinyxserver.
I'm using mwm for window manager at present.
...

Good! Any links for the sources of urxvt & mwm? I would like to test as well.


Mwm is the "Motif Window Manager": it's part of the Motif source code that was recently relicensed as LGPL. I grabbed the source from git://git.code.sf.net/p/motif/code
I passed --disable-shared when building Motif; I had to run autogen.sh on a Debian box, since autoconf requires so much crap.
For urxvt see:http://dist.schmorp.de/rxvt-unicode/
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 783

PostPosted: Sat 02 Nov 2013, 13:10    Post subject:  

Thanks - the "all-pink" has gone. Do you have application and icon name set? urxvt is calling XmbTextListToTextProperty to set the name, XmbTextListToTextProperty is in tinyX11lib but name is not set. That means in older jwm if application is minimized, jwm crash if pointer is over taskbar/un-named...

Could you pass your config flags for urxvt? I would like to get the transparency to work but have to disable to get the thing compile...

Update: Below patch will set app&icon name if/when XmbTextListToTextProperty fails:
Code:
--- ./src/main.C.01   2013-02-17 00:51:51.000000000 +0000
+++ ./src/main.C   2013-11-02 20:30:32.000000000 +0000
@@ -917,6 +917,8 @@
 void
 rxvt_term::set_title (const char *str)
 {
+   XStoreName(dpy, parent, str);   // Set windowname for tinyXlib
+   
   set_mbstring_property (XA_WM_NAME, str);
 #if ENABLE_EWMH
   set_utf8_property (xa[XA_NET_WM_NAME], str);
@@ -926,6 +928,7 @@
 void
 rxvt_term::set_icon_name (const char *str)
 {
+   XSetIconName(dpy, parent, str);   // Set windowname for tinyXlib
   set_mbstring_property (XA_WM_ICON_NAME, str);
 #if ENABLE_EWMH
   set_utf8_property (xa[XA_NET_WM_ICON_NAME], str);
Back to top
View user's profile Send private message Visit poster's website 
Ibidem

Joined: 25 May 2010
Posts: 522
Location: State of Jefferson

PostPosted: Tue 05 Nov 2013, 02:39    Post subject:  

goingnuts wrote:
Thanks - the "all-pink" has gone. Do you have application and icon name set? urxvt is calling XmbTextListToTextProperty to set the name, XmbTextListToTextProperty is in tinyX11lib but name is not set. That means in older jwm if application is minimized, jwm crash if pointer is over taskbar/un-named...

Could you pass your config flags for urxvt? I would like to get the transparency to work but have to disable to get the thing compile...

Update: Below patch will set app&icon name if/when XmbTextListToTextProperty fails:
Code:
--- ./src/main.C.01   2013-02-17 00:51:51.000000000 +0000
+++ ./src/main.C   2013-11-02 20:30:32.000000000 +0000
@@ -917,6 +917,8 @@
 void
 rxvt_term::set_title (const char *str)
 {
+   XStoreName(dpy, parent, str);   // Set windowname for tinyXlib
+   
   set_mbstring_property (XA_WM_NAME, str);
 #if ENABLE_EWMH
   set_utf8_property (xa[XA_NET_WM_NAME], str);
@@ -926,6 +928,7 @@
 void
 rxvt_term::set_icon_name (const char *str)
 {
+   XSetIconName(dpy, parent, str);   // Set windowname for tinyXlib
   set_mbstring_property (XA_WM_ICON_NAME, str);
 #if ENABLE_EWMH
   set_utf8_property (xa[XA_NET_WM_ICON_NAME], str);


I had guessed that the all-pink was thanks to the color stuff, due to the errror messages I got.
Didn't check name/resources.

I disabled everything (--disable-everything or some similar option). So no transparency here.
Back to top
View user's profile Send private message 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Mon 11 Nov 2013, 11:16    Post subject: Hi All!  

Anyone knows a difference between -fPIC and -fpic options of GCC for making
a position independent code?
I have already read documentation but unfortunately cannot get an answer
of one question:
Is it safe to use -fpic instead of -fPIC when build a shared library for x86_32 Linux based system?
Discovered that -fpic produces smaller binary and takes less memory than -fPIC.
Several libraries built with -fpic work on my custom system without problems, all needed
symbols are exported and all tested applications work with these libraries
but ... "It works" not means "It must work".

Thanks in advance !

_________________
SUUM CUIQUE.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4376

PostPosted: Mon 11 Nov 2013, 12:24    Post subject:  

IIRC pic has a limited number of symbols that almost never is reached in unbloated software. If you build seamonkey/firefox with a single libxul instead of many small libs, you will hit the limit. Combining the libraries _can_ reduce size and startup time, so it will depend on your project size which is the better option.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Mon 11 Nov 2013, 13:15    Post subject:  

technosaurus wrote:
IIRC pic has a limited number of symbols that almost never is reached in unbloated software. If you build seamonkey/firefox with a single libxul instead of many small libs, you will hit the limit. Combining the libraries _can_ reduce size and startup time, so it will depend on your project size which is the better option.

Thanks for answer !
I combined gtk1 with its dependencies to one library (glib+gmodule+gthread+gdk+gtk) then built some small apps based on it (Xdialog, gamix etc..). These apps work without problems either when library was built with -fpic or -fPIC.
About limitations:
GCC manual says that x86 based systems hasn't any size limitations of global offset
table.

_________________
SUUM CUIQUE.
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 783

PostPosted: Thu 21 Nov 2013, 15:37    Post subject:  

PANZERKOPF: Was it dynamic linked apps?

I started converting some static linked apps to dynamic linked to evaluate the reduction in total file size (tinyX11+uclibc). Seems to be a delicate balance depending on type and number of apps.

Experimented with Xvesa/Xfbdev from XFree86-4.8.0 compared to the tinyXservers. The first observation is that there are no reason to not link them static - the increase in size is minor. Second the stability and features of XFree86-4.8.0 versions are better than the tinyXserver versions (ex. Abiword works, keyboard in qemu/rxvt works). And size seems to be "ok".

Also working on a gxwin-based front end for pkginstall/pkgremove - sort of Synaptic wanna-be. Making package manager for static linked packages-only...really makes things so much easier...
snap0001.png
 Description   
 Filesize   13.63 KB
 Viewed   277 Time(s)

snap0001.png

Back to top
View user's profile Send private message Visit poster's website 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Fri 22 Nov 2013, 20:03    Post subject:  

goingnuts wrote:
Was it dynamic linked apps?

Seems I was wrong there. No size differences between -fPIC and -fpic.
Maybe this affects to some particular code only?

_________________
SUUM CUIQUE.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4376

PostPosted: Fri 22 Nov 2013, 20:27    Post subject:  

PANZERKOPF wrote:
goingnuts wrote:
Was it dynamic linked apps?

Seems I was wrong there. No size differences between -fPIC and -fpic.
Maybe this affects to some particular code only?
They are the same on x86, but not always. In fact on x86 (32bit), IIRC, it is not necessary to compile with -fpic or -fPIC at all for shared libs... correct me if I am wrong.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Fri 22 Nov 2013, 22:38    Post subject:  

technosaurus wrote:
In fact on x86 (32bit), IIRC, it is not necessary to compile with -fpic or -fPIC at all for shared libs... correct me if I am wrong.

IIRC, a non-PIC shared library can be used on 32-bit x86 systems but has more RES and less SHR memory usage.

_________________
SUUM CUIQUE.
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 783

PostPosted: Tue 03 Dec 2013, 15:47    Post subject:  

Anyone know of a torrent client - not gtk2, qt, perl, python - but with a GUI?
Found none...but transmission-1.50 comes with a web-interface and transmission seems to work out of the box (that is connects and downloads/seeds).
Start transmission with
Code:
transmission-daemon

and access the web interface at address:
http://localhost:9091
Unfortunately you need more than links-2.7 or dillo as support for javascript is a must Sad
snap0000.png
 Description   
 Filesize   62.99 KB
 Viewed   181 Time(s)

snap0000.png

Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4376

PostPosted: Tue 03 Dec 2013, 20:04    Post subject:  

http://suckless.org/rocks lists btpd, but there is also rtorrent (curses) and dtorrent (enhance ctorrent)

Though hopefully netsurf-fb with javascript support is useable now.

if you use curses/termcap, jupp is a nice little highlighting text editor from mirBSD based on JOE that can build against curses or termcap
btw you can use this commit of termbox for a light ncurses
Code:
https://github.com/nsf/termbox/commit/a2e217f0fb97e6bbd589136ea3945f9d5a123d81


see also:
http://wiki.musl-libc.org/wiki/Alternative_libraries

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Tue 03 Dec 2013, 20:24    Post subject:  

goingnuts wrote:
Anyone know of a torrent client - not gtk2, qt, perl, python - but with a GUI?
Found none...but transmission-1.50 comes with a web-interface and transmission seems

IIRC old versions of Transmission have Gtk1 based GUI.

_________________
SUUM CUIQUE.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 52 of 58 [868 Posts]   Goto page: Previous 1, 2, 3, ..., 50, 51, 52, 53, 54, 55, 56, 57, 58 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

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
[ Time: 0.1095s ][ Queries: 12 (0.0136s) ][ GZIP on ]