I tried to build a plugin for DNSCrypt, but it keeps telling me that it needs some other files.
I need to know how I can build it, and I've never compiled a package from scratch. I've always been able to use a repository.
I use Ubuntu 14.04 (64 bit) with gcc on CodeAnywhere
Here is the link to the plugin: GeoIP Plugin
Here is the link to dnscrypt: DNSCrypt
Here is what I get when I try to compile:
cabox@box-codeanywhere:~/workspace$ cmake . && make
CMake Error: The source directory "/home/cabox/workspace" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
cabox@box-codeanywhere:~/workspace$ cd plugin
cabox@box-codeanywhere:~/workspace/plugin$ cmake . && make
-- Configuring done
-- Generating done
-- Build files have been written to: /home/cabox/workspace/plugin
[100%] Building C object CMakeFiles/geoip-block.dir/geoip-block.c.o
/home/cabox/workspace/plugin/geoip-block.c:14:29: fatal error: dnscrypt/plugin.h: No such file or directory
#include <dnscrypt/plugin.h>
^
compilation terminated.
make[2]: *** [CMakeFiles/geoip-block.dir/geoip-block.c.o] Error 1
make[1]: *** [CMakeFiles/geoip-block.dir/all] Error 2
make: *** [all] Error 2
If more info is needed, I will add it as soon as possible.
Dnscrypt build was all fine but i still get http://pastebin.com/MeU4Q24W