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 10 Dec 2019, 16:43
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
adwm
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
musher0

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

PostPosted: Tue 05 Mar 2019, 22:55    Post subject:  adwm
Subject description: A new window manager based on echinus
 

Hello all.

Cont'd from a post by williams2, here, so as not to burden that thread.

@williams2:
This is the error I got at the end of the < make >:
Quote:
libtool: error: cannot find the library 'adwm-adwm.la' or unhandled argument 'adwm-adwm.la'
make[2]: *** [Makefile:808: adwm] Error 1
make[1]: *** [Makefile:618: all] Error 2
make: *** [Makefile:462: all-recursive] Error 1

Any ideas?

BFN.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
ITSMERSH

Joined: 02 May 2018
Posts: 911

PostPosted: Tue 05 Mar 2019, 23:16    Post subject:  

This should be in Compiling section.
_________________
RSH

Beware of the Dog ähem nic007! Wink
Back to top
View user's profile Send private message 
williams2

Joined: 14 Dec 2018
Posts: 206

PostPosted: Wed 06 Mar 2019, 02:59    Post subject:  

I had problems getting it to compile. It did not know what reallocarry was. reallocarray is a BSD extension to C. It is available as a GNU C (C++?) extension (on newer versions of gcc,) but the extensions are not enabled by default. This line is in configure.ac:

AC_USE_SYSTEM_EXTENSIONS

and it should enable the GNU extensions, but it wasn't. So I tried putting

CPPFLAGS="-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE"

in configure.sh. That seemed to work. I think. I'm not sure how I got it to compile. And now I can compile it without changing anything in the source. I don't know why. Confusing.

I can compile it in bionicpup64-7.9.7. I can not compile it in xenialpup64-7.5, maybe it is too old.

After compiling and installing I have:

adwm-adwm.la 946 bytes
adwm-adwm.so 154k (43k stripped)

in /usr/lib/adwm/modules/
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Wed 06 Mar 2019, 03:09    Post subject:  

Thanks, williams2.

I have edited configure.sh as you suggested, but no luck.
Maybe later, then.

BFN.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
williams2

Joined: 14 Dec 2018
Posts: 206

PostPosted: Wed 06 Mar 2019, 04:41    Post subject:  

Maybe if you set the preprocessor flag to a value, like:

CPPFLAGS="-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE=2"

I think CPPFLAGS was the only thing I changed to get it to compile.

I remember "cannot find the library 'adwm-adwm.la'", I think. I don't think it needs to be preinstalled. I'll attach it anyway.
adwm-adwmlib.tar.gz
Description 
gz

 Download 
Filename  adwm-adwmlib.tar.gz 
Filesize  14.11 KB 
Downloaded  181 Time(s) 
Back to top
View user's profile Send private message 
williams2

Joined: 14 Dec 2018
Posts: 206

PostPosted: Wed 06 Mar 2019, 12:41    Post subject:  

Ok, maybe I have this figured out.

I think you need the CPPFLAGS trick to get it to compile the first time. Or not.

After it compiles, the first time, make stops with an error message:

... make: *** [Makefile:462: all-recursive] Error 1

But if you look in hidden dir ./src/.lib (something like that) you can see the adwm executable and lib files. It did compile, and this should work:

make install

Then if you run make again, it completes with no error message.

I think that is what is happening.

I found adwm crashes sometimes, so I wrote a script to start it.

If you read the docs, there are statments that are not true. Particularly the key assignments. It's better to look at the keysrc file to see how the keys are setup.

I found it easier to read the man pages from the command line. I wrote my own man script. pman is supposed to work, but i wrote my own. My Puppy does not have col so I used sed to get rid of the BS characters. Like this:
Code:
nroff -mandoc "$f" | sed 's/.\x08//g' | less
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Wed 06 Mar 2019, 15:58    Post subject:  

Hi williams2.

Thanks a lot for this valuable info about compiling adwm. I will give it a try a little later.
Would you have a couple of screen captures of adwm, by any chance?

Precious one-liner you have there, to read the man pages! IMO, it deserves its own
thread. Users need something like this, I think. There is man2html, but the result is
not as direct.

Have a great day!

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 975
Location: Staffordshire

PostPosted: Wed 06 Mar 2019, 17:03    Post subject:  

I tried to compile this on Easy but it wouldn't work.
Did find a solution though, after a bit of searching. Seems like reallocarray won't work on older glibc. Someone made a workaround for some other project, so I nicked it and pasted it into adwm.c :
Code:
/**
 * Allow libapparmor to build on older glibcs and other libcs that do
 * not support reallocarray.
 */
#ifndef HAVE_REALLOCARRY
void *reallocarray(void *ptr, size_t nmemb, size_t size)
{
   return realloc(ptr, nmemb * size);
}
#endif


Got it from here
Not tried the binary yet, but at least it exists.
[EDIT] It does run. Been a bit too lazy to read the manual yet, but found I needed to press the Alt key to get focus of a window with the mouse, and do other actions. A bit hit and miss at the moment.
Screenshot is not very interesting:
adwm.jpg
 Description   
 Filesize   43.73 KB
 Viewed   280 Time(s)

adwm.jpg

Back to top
View user's profile Send private message 
musher0

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

PostPosted: Wed 06 Mar 2019, 18:20    Post subject:  

Thanks, Keef.
_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
williams2

Joined: 14 Dec 2018
Posts: 206

PostPosted: Wed 06 Mar 2019, 18:58    Post subject:  

Quote:
one-liner you have there, to read the man pages

Actually, you don't need sed to read a man page, less can handle BS (backspace) characters. Sed is really for man 2 txt. So this is fine:
Code:
nroff -mandoc "$f" | less
adwm1.png
 Description   adwm with 8 windows automatically tiled.
 Filesize   162.27 KB
 Viewed   254 Time(s)

adwm1.png

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
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.0480s ][ Queries: 12 (0.0074s) ][ GZIP on ]