From f8470df22a13b413fcc5dc97531074eef3dbfb3c Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Sun, 2 Feb 2020 16:21:11 -0600 Subject: [PATCH] - Added notes for compiling kintox11 with static json-c library --- kintox11/src/kintox11.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kintox11/src/kintox11.c b/kintox11/src/kintox11.c index 6e44ff0..f5fb0a5 100644 --- a/kintox11/src/kintox11.c +++ b/kintox11/src/kintox11.c @@ -5,9 +5,12 @@ get the active window on X window system http://k-ui.jp/blog/2012/05/07/get-active-window-on-x-window-system/ */ -// To compile +// To compile without static libraries // gcc kintox11.c -lX11 -lXmu -ljson-c // +// To compile with static library json-c +// Make sure archive with object files exist ar -t /usr/local/lib/libjson-c.a +// gcc -L/usr/local/lib/ kintox11.c -ljson-c -lXmu -lXt -lX11 -o kintox11 // #include