I'm trying to build Kryptohash core and QT. I believe all dependencies are met, but I run into an issue.
I've done the following as per the readme:
git clone https://github.com/kryptohash/kryptohash.git kryptohash
cd kryptohash
./autogen.sh
CPPFLAGS="-Ikeccak -Ikeccak/SnP -Ikeccak/KeccakF-1600 -I/usr/local/include" LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --enable-upnp-default --with-gui=qt5
make
But I get the following back:
OBJCXXLD kryptohash-qt
/usr/bin/ld: /usr/local/lib/libprotobuf.a(common.o): relocation R_X86_64_32S against `_ZTVN6google8protobuf7ClosureE' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libprotobuf.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
I'm not sure if I just run make again with -fPIC, or where else this -fPIC option should go, if at all. Also, do I need to clean object files before recompiling? If so, how?
Thanks folks