You are not logged in.
Hello all!
I was using a very stock version of DWM. Now I want to get my hands dirty and customize it more.
I downloaded the nmaster.c patch off of the official dwm website. I then made the changes to the config.h as directed by the website. I then placed the nmaster.c file in the same directory as the other dwm files. However, I try to compile it with makepkg -i --skipinteg and I get this:
==> Making package: dwm 5.8.2-2 (Wed Aug 11 18:12:03 CDT 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Found dwm-5.8.2.tar.gz
-> Found config.h
-> Found dwm.desktop
==> WARNING: Skipping integrity checks.
==> Extracting Sources...
-> Extracting dwm-5.8.2.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
dwm build options:
CFLAGS = -march=x86-64 -mtune=generic -O2 -pipe -g -std=c99 -pedantic -Wall -O0 -I. -I/usr/include -I/usr/include/X11 -DVERSION="5.8.2" -DXINERAMA
LDFLAGS = -Wl,--hash-style=gnu -Wl,--as-needed -g -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
CC = cc
CC dwm.c
In file included from dwm.c:279:0:
config.h:17:21: fatal error: nmaster.c: No such file or directory
compilation terminated.
make: *** [dwm.o] Error 1
Aborting...
What am I doing wrong?
Offline
I then placed the nmaster.c file in the same directory as the other dwm files.
Did you place it in dwm/src/dwm-5.8.2/ ? Because it looks like it is not there...
If you did, it might help to post your config.h.
Offline
Wow, I put it in the wrong directory... 1 folder too high
Here's my config.h http://pastebin.com/6K1wMTZz
When I try to compile now, I get this error:
In file included from config.h:17:0,
from dwm.c:279:
nmaster.c: In function 'incnmaster':
nmaster.c:23:2: error: too few arguments to function 'arrange'
dwm.c:157:13: note: declared here
nmaster.c: In function 'setnmaster':
nmaster.c:31:2: error: too few arguments to function 'arrange'
dwm.c:157:13: note: declared here
make: *** [dwm.o] Error 1
Offline
I'd need to look into further, but it looks like nmaster was a patch for 5.6 and you are, presumably, running 5.8.2
You could try with the newer nmaster-sym - a few of the 5.7.2 patches apply to 5.8 with no issues...
# edit typo
Offline
Alright, will do.
It compiled, but if I pick either of the new layouts, dwm crashes.
EDIT:
This is what happens when a newbie doesn't think. I forgot to modify two crucial lines in my config.h and had a key conflict. I apologize. It works now.
Last edited by rednano12 (2010-08-11 23:53:14)
Offline