Decred compile ccminer on Arch for CUDA
pkg-config --list-all | grep curl
[1:01]
pkg-config --print-variables libcurl
[1:03]
cat /usr/lib64/pkgconfig/libcurl.pc
[1:03]
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
supported_protocols="DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS POP3 POP3S RTSP SCP SFTP SMB SMBS SMTP SMTPS TELNET TFTP"
supported_features="SSL IPv6 UnixSockets libz AsynchDNS GSS-API PSL SPNEGO Kerberos NTLM NTLM_WB TLS-SRP HTTPS-proxy"
Name: libcurl
URL: https://curl.haxx.se/
Description: Library to transfer files with ftp, http, etc.
Version: 7.53.1
Libs: -L${libdir} -lcurl
Libs.private: -lssh2 -lpsl -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lz
Cflags: -I${includedir}
[1:05]
you can check my cpuminer-multi repo on arch first
[1:05]
just use ./build.shmake clean
make distclean
CC=/usr/bin/gcc-5 \
CXX=/usr/bin/g++-5 \
PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig \
CFLAGS+=" -I/usr/include/openssl-1.0 -fPIC" \
CPPFLAGS+=" -I/usr/include/openssl-1.0 -fPIC" \
LDFLAGS+=" -L/usr/lib/openssl-1.0 -lssl -fPIC" \
./autogen.sh
CC=/usr/bin/gcc-5 \
CXX=/usr/bin/g++-5 \
PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig \
CFLAGS+=" -I/usr/include/openssl-1.0 -fPIC" \
CPPFLAGS+=" -I/usr/include/openssl-1.0 -fPIC" \
LDFLAGS+=" -L/usr/lib/openssl-1.0 -fPIC -lssl" \
./configure --with-cuda=/opt/cuda --disable-shared --with-pic
make# reference https://dashpay.atlassian.net/wiki/display/COMMUNITY/Mining+Guide+-+NVIDIA+-+ccminer+on+linux
git clone https://github.com/tpruvot/ccminer.git
cd ccminer
./autogen.sh
nano Makefile.am
# put (GTX 960)
# nvcc_ARCH = -gencode=arch=compute_52,code=\"sm_52,compute_52\"
pacaur -S openssl-1.0 cuda jansson curl
CPPFLAGS='-I/usr/include/openssl-1.0' \
LDFLAGS='-L/usr/lib/openssl-1.0 -L/usr/lib' \
CUDA_CFLAGS="-O3 -m 64 --gpu-architecture=compute_52 --gpu-code=sm_52,compute_52" \
./configure --prefix=/usr --sysconfdir=/etc --libdir=/home/home/workspaces --with-cuda=/opt/cuda
# build (-j4 to use 4 threads)
make -j4
# make install or just strip and copy the ccminer binary.
make install