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 Tue 21 May 2013, 20:28
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
WMX won't "make"...
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [13 Posts]  
Author Message
starhawk

Joined: 22 Nov 2010
Posts: 1812
Location: Everybody knows this is nowhere...

PostPosted: Fri 13 Jan 2012, 00:03    Post subject:  WMX won't "make"...
Subject description: [STILL HAVING ISSUES CUZ I BROKE IT]
 

Hey, trying to compile WMX in Wary 511-Uniproc. I have attached what I have after running "compile" and "make" (in that order) and screenshots of the output from the console after running "make".

Seems to find a goof somewhere, but I don't know cr*p about C, so I don't know what to do to fix it... if someone could tell me what to do, that would be very helpful here.
wmx-starhawk-puppy.tar.gz
Description  Currently NOT working set of files...
gz

 Download 
Filename  wmx-starhawk-puppy.tar.gz 
Filesize  314.07 KB 
Downloaded  81 Time(s) 
Screen2.png
Description  Screenshot two of two...
png

 Download 
Filename  Screen2.png 
Filesize  68.62 KB 
Downloaded  89 Time(s) 
Screen1.png
Description  Screenshot one of two...
png

 Download 
Filename  Screen1.png 
Filesize  71.63 KB 
Downloaded  87 Time(s) 

_________________
siht daer nac uoy fi uoy od os dna skcor yppup Razz

Last edited by starhawk on Fri 13 Jan 2012, 17:31; edited 1 time in total
Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 1812
Location: Everybody knows this is nowhere...

PostPosted: Fri 13 Jan 2012, 00:46    Post subject:  

Update... did some goooooooooooogling around... looks like it's really a gcc error (you can tell how much I know about this stuff, right?)...

The specific errors relate to two lines, each in a different file. The files are Menu.C and Menu.h, and it's line 624 in Menu.C and line 92 in Menu.h...

Here's the specific bits of code; the numbers at the front of each line are (duh) line numbers...

Menu.C:
Code:

623  CommandMenu::CommandMenu(WindowManager *manager, XEvent *e,
624 char* otherdir = NULL)


Menu.h
Code:

89 class CommandMenu : public Menu
90 {
91 public:
92 CommandMenu(WindowManager *, XEvent *e, char *otherdir = NULL);
93 virtual ~CommandMenu();


Best I can figure, gcc doesn't like the taste of the word "NULL", so what do I put instead of it? ...or am I confused?

EDIT: gotta be me being confused; there's six and a half bazajillion other "NULL"s in there, so that's not it at all...

EDIT2: not the misplaced asterisk (in Menu.C) either... moved it over and it didn't fix anything. So I'll move it back.

_________________
siht daer nac uoy fi uoy od os dna skcor yppup Razz
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Fri 13 Jan 2012, 01:43    Post subject:  

Go to line 624 of Menu.C and make this change.

Code:
          char* otherdir = NULL)


Code:
          char* otherdir)
Back to top
View user's profile Send private message Visit poster's website 
starhawk

Joined: 22 Nov 2010
Posts: 1812
Location: Everybody knows this is nowhere...

PostPosted: Fri 13 Jan 2012, 12:02    Post subject:  

Thank you, Jemimah! That worked quite well...

Always an honor to receive help from someone as accomplished as you!

_________________
siht daer nac uoy fi uoy od os dna skcor yppup Razz
Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 1812
Location: Everybody knows this is nowhere...

PostPosted: Fri 13 Jan 2012, 13:57    Post subject:  

Everything works... except for the keybindings. I think I know where I messed up, though.

xmodmap reveals the key code for the left alt key (for a menu popup) to be:
Code:
Alt_L Meta_L


But I don't know how to enter the "spacebar" character in there... leaving it in there breaks Make.

Whadda I do?

_________________
siht daer nac uoy fi uoy od os dna skcor yppup Razz
Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 1812
Location: Everybody knows this is nowhere...

PostPosted: Fri 13 Jan 2012, 18:22    Post subject:  

Betcha ya'll are all chucklin' at me fer that one. I didn't know, but "Alt_L" and "Meta_L" are two different keys that are mapped, on my keyboard, to the same key!

In related news, I still can't figure this one out. I've sent off an email to the developer (a Chris Cannam); I'll post here when I hear back.

If anyone else has some other suggestions, though, that would be right nifty.

_________________
siht daer nac uoy fi uoy od os dna skcor yppup Razz
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 2209
Location: Gatineau (Qc), Canada

PostPosted: Fri 13 Jan 2012, 19:41    Post subject:  

Hello, starhawk.

Nope, not chuckling at all. I'm actually glad someone else is interested in this nice window manager.

I did 3-4 compiles of the previous version (7), with various colours, and came upon the same problems as you did with the wmx bindkeys. Spent hours and hours trying to figure them out...

See this thread: http://www.murga-linux.com/puppy/viewtopic.php?search_id=645938557&t=39411&start=15

I succeeded partially because jemimah -- angel that she is -- gave me a few hints, as she did to you. And also because I didn't fixate on that "keys" problem.

Compile with a regular Alt+key combination. The Puppy keyboard doesn't come with the default wmx bindkeys configured anyway. So you'd have to rebuild Puppy just to have access to those keys. Not worth the trouble since there are work-arounds.

For example, use the xbindkeys program and bind say, < Shift-right-click > to aragon's spm (aka aemenu) to have a more standard and manageable menu? Just my 2 cents.

Another thing if I may, which I discovered recently. To solve the problem of thin menus in wmx, put a dummy file/directory with a long(er) line in it. This will spread the menu and make it easier to navigate it when it pops up.

Bye for now.

_________________
Wink "...l'industrie de l'informatique n'aura besoin que de très peu de temps pour ramener l'humanité aux dessins rupestres." (M. Goebbel, Order of the Command Line; [ma trad.])

Last edited by musher0 on Fri 13 Jan 2012, 19:49; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 2209
Location: Gatineau (Qc), Canada

PostPosted: Fri 13 Jan 2012, 19:46    Post subject:  

BTW, starhawk, I rock !!! Wink
_________________
Wink "...l'industrie de l'informatique n'aura besoin que de très peu de temps pour ramener l'humanité aux dessins rupestres." (M. Goebbel, Order of the Command Line; [ma trad.])
Back to top
View user's profile Send private message Visit poster's website 
starhawk

Joined: 22 Nov 2010
Posts: 1812
Location: Everybody knows this is nowhere...

PostPosted: Fri 13 Jan 2012, 20:09    Post subject:  

I see you speak French... Bonjour! (I speak it, horribly... my tongue refuses to contort itself sufficiently for proper pronunciation...)

I like your reply to my signature Laughing

What I'm really after is a menu of any sort, so that one does not have to rely on icons alone (or worse, console!) to access programs. If bindkeys is too much trouble, then I'm forced to choose one of two paths:

(1) Use a different WM, or
(2) Ask someone here to write me a menu/tray/applauncher type widget.

I'm a little hesitant with either approach... I really like the look of WMX, but my only coding experience (at least, the only successful coding experience I've had) was with a little interpreted sequential language called QBASIC. Time has long since left that junky stuff behind... and I'm stuck with it!

All I would really need would be an "applauncher" type tray... I think they call it a "dock" on Mac-type systems... nothing flashy, just sits centered in the bottom of the screen with a few useful app icons and a Menu button... maybe even a clock if someone's feeling really extravagant (I don't know about the rest of ya'll, but I use a watch for that). Doesn't even need to be skinnable/themeable.

The only thing is that I can't code a line of C... I could barely figure out what I needed to do in the config.h file! So I would need someone else to do all the work for me, and I'm not sure how I feel about that.

_________________
siht daer nac uoy fi uoy od os dna skcor yppup Razz
Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 1812
Location: Everybody knows this is nowhere...

PostPosted: Sat 14 Jan 2012, 16:47    Post subject:  

Been thinking about this. Guess how I feel is: if someone is willing to do up that menu for me, that would be great, but if no-one will, I can (try to) use fluxbox instead of WMX... guess it doesn't matter that much.

Would also be good if the box on the side of a WMX window closed the window rather than just hiding it...

_________________
siht daer nac uoy fi uoy od os dna skcor yppup Razz
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Sat 14 Jan 2012, 18:50    Post subject:  

That's the problem with WMX - it doesn't actually have any features. Smile

I think you'll find openbox better than fluxbox.
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 2209
Location: Gatineau (Qc), Canada

PostPosted: Sat 14 Jan 2012, 19:20    Post subject:  

jemimah wrote:
That's the problem with WMX - it doesn't actually have any features. Smile


Oh, how I disagree, Madame, how I disagree! Very Happy

On the contrary, wmx is quite original, with the program name on the side of the windows, and the use of corners as "mini command posts", to change desktops (top right), and to close the wm (bottom left). Also it's the ONLY wm intelligent enough to create a new desktop automatically as needed. Now that's what I call A REAL FEATURE! Very useful if you are a power user.

It's just that the wmx menu is awfully awkward. You need a very good three button mouse, for starters. And then you need to add a line in each directory to make menu wider.

jwm is the one that lacks features:

* no flexibility for the general user, unless (s)he gets help from a XML programmer
* you can't use bindkeys with it, since jwm monopolizes the mouse/root contact
* is you use only two mouse clicks, it doesn't work, you have to comfigure the three mouse buttons
* no way to see what's running on your desktops by middle clicking (pekwm and icewm and almost every popular wm have that).

Shall I continue on jwm black holes?

Sure, wmx is still imperfect, but certainly it gives it its best shot at each of the above problems and comes up with an original solution. For example, I think that using the right click to focus on the next window is a great idea. It's quick, clean. Performance, it's called.

In any case, Happy New Year, even if late.

BFN.

_________________
Wink "...l'industrie de l'informatique n'aura besoin que de très peu de temps pour ramener l'humanité aux dessins rupestres." (M. Goebbel, Order of the Command Line; [ma trad.])

Last edited by musher0 on Sat 14 Jan 2012, 19:33; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 2209
Location: Gatineau (Qc), Canada

PostPosted: Sat 14 Jan 2012, 19:30    Post subject:  

Starhawk said:
> All I would really need would be an "applauncher" type tray...

Well, there are lots of those here:

spm (simple puppy menu), for example , can be integrated a number of ways, in gkrellm, stalonetray or icedock, even tint, just to name a few.
Packages for those have been either uploaded to the forum or at ibiblio/puppy.

BTW, I downloaded and perused your package, and a question popped up: why were you trying to compile wmx 6pl rather than the latest wmx 7.4 ?

BFN.

_________________
Wink "...l'industrie de l'informatique n'aura besoin que de très peu de temps pour ramener l'humanité aux dessins rupestres." (M. Goebbel, Order of the Command Line; [ma trad.])
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [13 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
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.0844s ][ Queries: 12 (0.0131s) ][ GZIP on ]