Closed DmitriyKarl closed 2 years ago
Hi, get this error when compile on FreeBSD:
... [ 53%] Building CXX object CMakeFiles/p2pool.dir/src/json_rpc_request.cpp.o /path/to/p2pool/src/json_rpc_request.cpp:21:10: fatal error: 'curl/curl.h' file not found #include <curl/curl.h> ^~~~~~~~~~~~~ 1 error generated. *** Error code 1 Stop.
CURL package is installed:
build % pkg info curl curl-7.84.0 Name : curl Version : 7.84.0 ...
Include file curl.h file is there:
build % ll /usr/local/include/curl/curl.h -rw-r--r-- 1 root wheel 121972 31 jul. 00:27 /usr/local/include/curl/curl.h
CURL is found:
build % fgrep -rHni curl . | fgrep -i include ./CMakeFiles/p2pool.dir/flags.make:8:C_INCLUDES = -I/path/to/src/p2pool/CURL_INCLUDE_DIRS -I/path/to/src/p2pool/src -I/path/to/src/p2pool/external/src -I/path/to/src/p2pool/external/src/cryptonote -I/path/to/src/p2pool/external/src/libuv/include -I/path/to/src/p2pool/external/src/cppzmq -I/path/to/src/p2pool/external/src/libzmq/include -I/path/to/src/p2pool/external/src/RandomX/src -I/path/to/src/p2pool/external/src/rapidjson/include -I/path/to/src/p2pool/external/src/robin-hood-hashing/src/include ./CMakeFiles/p2pool.dir/flags.make:14:CXX_INCLUDES = -I/path/to/src/p2pool/CURL_INCLUDE_DIRS -I/path/to/src/p2pool/src -I/path/to/src/p2pool/external/src -I/path/to/src/p2pool/external/src/cryptonote -I/path/to/src/p2pool/external/src/libuv/include -I/path/to/src/p2pool/external/src/cppzmq -I/path/to/src/p2pool/external/src/libzmq/include -I/path/to/src/p2pool/external/src/RandomX/src -I/path/to/src/p2pool/external/src/rapidjson/include -I/path/to/src/p2pool/external/src/robin-hood-hashing/src/include ./CMakeCache.txt:260:CURL_INCLUDE_DIR:PATH=/usr/local/include ./CMakeCache.txt:514://ADVANCED property for variable: CURL_INCLUDE_DIR ./CMakeCache.txt:515:CURL_INCLUDE_DIR-ADVANCED:INTERNAL=1 ./CMakeCache.txt:521:FIND_PACKAGE_MESSAGE_DETAILS_CURL:INTERNAL=[/usr/local/lib/libcurl.so][/usr/local/include][c ][v7.84.0()] ./CMakeCache.txt:532:PC_CURL_CFLAGS:INTERNAL=-I/usr/local/include ./CMakeCache.txt:536:PC_CURL_INCLUDEDIR:INTERNAL=/usr/local/include ./CMakeCache.txt:537:PC_CURL_INCLUDE_DIRS:INTERNAL=/usr/local/include ./CMakeCache.txt:549:PC_CURL_STATIC_CFLAGS:INTERNAL=-I/usr/local/include ./CMakeCache.txt:552:PC_CURL_STATIC_INCLUDE_DIRS:INTERNAL=/usr/local/include ./CMakeCache.txt:563:PC_CURL_libcurl_INCLUDEDIR:INTERNAL=
Can you suggest how to fix?
Fixed in https://github.com/SChernykh/p2pool/commit/47f40c0be3489558b19f94ffb4fd2c7a1d1c534c
Thanks!
Hi, get this error when compile on FreeBSD:
CURL package is installed:
Include file curl.h file is there:
CURL is found:
Can you suggest how to fix?