On Tue, Jul 05, 2016 at 06:07:03PM +0300, Andrei Borzenkov wrote:
05.07.2016 17:46, Dutch Ingraham пишет:
On Tue, Jul 05, 2016 at 06:14:07AM +0300, Andrei Borzenkov wrote:
05.07.2016 00:56, Dutch Ingraham пишет: No, solution is to add
-I/usr/include/freetype2
to CFLAGS.
Thanks - that worked. However, I'm now getting two further errors:
dwm.c: In function ‘updatestatus’: dwm.c:1996:23: error: expected ‘)’ before ‘VERSION’ strcpy(stext, "dwm-"VERSION); ^ dwm.c: In function ‘main’: dwm.c:2127:13: error: expected ‘)’ before ‘VERSION’ die("dwm-"VERSION "\n"); ^ Makefile:18: recipe for target 'dwm.o' failed make: *** [dwm.o] Error 1
Most likely you overwrote your CFLAGS instead of adding to them.
That's a distinct possibility. I've tried two ways: dutch@linux-uoyk:~/bin/dwm-6.1> make CFLAGS+=-I/usr/include/freetype2 and dutch@linux-uoyk:~/bin/dwm-6.1> make CFLAGS=-I/usr/include/freetype2 The above errors are the same either way. I have not modified the Makefile. Looking at the Make manual[1] in the section "Appending more text to variables" indicates the first way is correct. However, others have had some issue with that not working as expected[2] but the solution is not clear to me. Do you have a recommended command to append and not overwrite? [1]http://www.gnu.org/software/make/manual/make.html#Appending [2]http://stackoverflow.com/questions/2129391/append-to-gnu-make-variables-via-... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org