how to compile service agent?
Hi, It is difficulty to get the service agent to compile, as there are no Makefile in the project, and that it seams to recommend Meson. I was able to compile the where-am-i.c by simply comment out the // #include <config.h> And use
gcc -o where-am-i where-am-i.c $(pkg-config --cflags --libs libgeoclue-2.0)
It did complain over a deprecated function, but it worked.
warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead warning: ‘g_date_time_new_from_timeval_local’ is deprecated: Use 'g_date_time_new_from_unix_local' instead
But doing the same for the service agent does not work as it have references to header files not found in the project?
gcc -o agent agent.c gclue-service-agent.c $(pkg-config --cflags --libs libgeoclue-2.0 gio-unix-2.0 gio-2.0 libnotify)
gclue-service-agent.h:27:10: fatal error: geoclue-agent-interface.h: No such file or directory 27 | #include "geoclue-agent-interface.h"
How to resolve this? Or how to compile these binaries, step by step using native gcc?
Thanks in advance