Hacked aemenu

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Message
Author
User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#21 Post by vovchik »

Dear musher0,

Thanks for asking. Not everything is glorious and peachy at the moment, but I will manage, I hope. :) As for aemenu not recognizing #ff0000, I just tested and, for example, the following works fine:

Code: Select all

<span color='#ff0000'>items</span>
I do not know how well those spans work when nested, but I think they do.

You need the hash (#), and it should make no difference whether your hex nums are upper or lower case. When something is wrong with pango markup, gtk usually spits out some useful info in the terminal. Are you getting any errors or warnings?

With kind regards,
vovchik

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#22 Post by musher0 »

Hello all.

Here is an update of my most recent DefaultMenuPlus script based on
vovchick's work.

All comments and captures related to it in the posts above still apply.

Enjoy!
Attachments
MenuDefautPlus-160909.sh.zip
(3.64 KiB) Downloaded 175 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#23 Post by musher0 »

@all:

I also applied vovchick's aemenu-pango in this MRUF/MRUD menu,
which is potentially of interest to all Puppyists.

Now we have another illustration of how interesting and efficient
marked-up (ae)menus can be. Again: thanks to vovchick! :)

TWYL.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#24 Post by musher0 »

Hello vovchik.

Does a 64-bit version of your aemenu-pango exist?

There would perhaps be a need for it. Lazy Puppy is having difficulty
compiling it on Tahr64. Please see here:
http://murga-linux.com/puppy/viewtopic. ... ost#924488

There is an ".h" file missing.

TIA.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#25 Post by vovchik »

Hi musher0,

I don't think we have a 64-bit binary. I have only 32-bit installed, and my version compiles fine. I wonder why that system header file is missing. And I wonder whether others reading this who have a development system and are running 64-bit could try and see see whether it compiles. Head-scratching time. :(

With kind regards,
vovchik

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#26 Post by LazY Puppy »

Checked the devx's of

- lucid 528-4
- precise 571
- tahr 602, 605
- tahr64 605
- vivid beta2
- unicorn 60
- xenial 704
- xenial64 707
- slacko64 630

All of them are missing the glibconfig.h !!!

I wonder how you could compile...
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#27 Post by vovchik »

Hi Lazy Puppy,

Here is the file in question - you will see by examing it that it is generated. I don't know what genereated it and when. All I can say is "weird".

With kind regards,
vovchik
Attachments
glibconfig.h.tar.gz
(1.82 KiB) Downloaded 163 times

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#28 Post by 01micko »

64 compiles ok here.

Just add -lX11 to the GTKLIB line in Makefile.. no need of the compile script.

Alternatively, hack the compile script to suit your system.
Puppy Linux Blog - contact me for access

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#29 Post by musher0 »

01micko wrote:64 compiles ok here.

Just add -lX11 to the GTKLIB line in Makefile.. no need of the compile script.

Alternatively, hack the compile script to suit your system.
Funny guy. Gives us the recipe but not the pie. ;)
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#30 Post by LazY Puppy »

I don't understand this.

This is the GTKLIB line:

Code: Select all

GTKLIB = `pkg-config --libs gtk+-2.0`
Where to add -lX11?

This is the compile script (it has already -lX11):

Code: Select all

#!/bin/bash

# brute force compilation of aemenu, without the rest
# later run strip and upx for 8k binary

gcc -g -O2 -Wall -I/usr/include -c parser.c -o parser.o
gcc -g -O2 -Wall -I/usr/include -c atom.c -o atom.o
gcc -g -O2 -Wall -I/usr/include -c common.c -o common.o
gcc -g -O2 -Wall -I/usr/include -c menu.c -o menu.o
gcc -I/usr/include/gtk-2.0 -I//usr/include/glib-2.0 \
-I/usr/lib/i386-linux-gnu/glib-2.0/include \
-I/usr/include/cairo -I/usr/include/pango-1.0 \
-I/usr/lib/i386-linux-gnu/gtk-2.0/include \
-I/usr/include/gdk-pixbuf-2.0 \
-I/usr/include/atk-1.0 \
aemenu.c common.o atom.o menu.o parser.o \
-lX11 `pkg-config --libs gtk+-2.0` -o aemenu
Edit: just tried to compile aemenu in tahr 32bit and it compiles fine. No complains (no glibconfig.h added to my system) about missing files.

I don't understand this either...
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#31 Post by LazY Puppy »

Ok.

Compiling in tahr64 605 with glibconfig.h added to the system (/usr/include/...) gives another complain about some gdkconfig.h missing.

Changed the GTKLIB line in makefile to:

Code: Select all

GTKLIB = -lX11 `pkg-config --libs gtk+-2.0`
Opened up a terminal and typed make did compile successfully.

The 64bit aemenu attached (fake .gz).
Attachments
aemenu.gz
(77.39 KiB) Downloaded 175 times
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#32 Post by musher0 »

Bravo, Lazy Puppy. Bravo, bravo, bravo!!! :D
A thousand thanks!!!
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#33 Post by musher0 »

Have you tested it yet with the MRUF or similar script?
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#34 Post by LazY Puppy »

musher0 wrote:Have you tested it yet with the MRUF or similar script?
No.

And I don't even have the time to do so until the end of the week, sorry.
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#35 Post by musher0 »

No problem. Don't feel pressured. Just asking.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#36 Post by musher0 »

@vovchik
Hi!

Where can one find a 64-bit version of the bcm utility -- or its source?
(In light of the 64-bit aemenu-pango that LP managed to compile.)

TIA
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#37 Post by 01micko »

musher0 wrote:
01micko wrote:64 compiles ok here.

Just add -lX11 to the GTKLIB line in Makefile.. no need of the compile script.

Alternatively, hack the compile script to suit your system.
Funny guy. Gives us the recipe but not the pie. ;)
Give a man a fish :P
Puppy Linux Blog - contact me for access

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#38 Post by musher0 »

01micko wrote:
musher0 wrote:
01micko wrote:64 compiles ok here.

Just add -lX11 to the GTKLIB line in Makefile.. no need of the compile script.

Alternatively, hack the compile script to suit your system.
Funny guy. Gives us the recipe but not the pie. ;)
Give a man a fish :P
:lol:
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#39 Post by vovchik »

Dear musher0,

The source of bcm (bcm.bac) I posted in the weather stuff. In any case, here is the link. Bcm was written in Bacon and you need a recent Bacon to compile it. I know it works in 64-bit Tahr, since the author of Bacon compiled it there and it worked. :) I can ask him to send me the binary, or a puppian with bacon installed can give it a whirl.

[/url]http://murga-linux.com/puppy/viewtopic. ... h&id=99754[/url]

With kind regards,
vovchik

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#40 Post by musher0 »

vovchik wrote:Dear musher0,

The source of bcm (bcm.bac) I posted in the weather stuff. In any case, here is the link. Bcm was written in Bacon and you need a recent Bacon to compile it. I know it works in 64-bit Tahr, since the author of Bacon compiled it there and it worked. :) I can ask him to send me the binary, or a puppian with bacon installed can give it a whirl.

[/url]http://murga-linux.com/puppy/viewtopic. ... h&id=99754[/url]

With kind regards,
vovchik
Hello vovchik

It seems the url above is not valid...

TIA
Last edited by musher0 on Mon 27 Feb 2017, 00:29, edited 2 times in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply