Closed minersbs closed 4 years ago
You are trying to compile a static release, you need to recompile all libs with -fPIC flag.
Just run the command make release
this will not work on another machine if you copy this binaries, if you need static binaries just download the binaries from latest bittube release tag
During the build I get this error: / usr / bin / ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libgtest.a(gtest-all.cc.o): relocation R_X86_64_32 against `.rodata 'can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libgtest.a: error adding symbols: Bad value
I do not understand how to solve the problem. Can someone help me.
Ubuntu System 16.04
Thanks
Alessandro