Compile errors
Hi, I've tried to compile 3.1.0 following the build instructions and I have the following compile errors:
./google/protobuf/stubs/once.h:135:30: error: cannot initialize a parameter of type 'const volatile google::protobuf::internal::Atomic32 *' (aka 'const volatile int *') with an lvalue of type 'google::protobuf::ProtobufOnceType *' (aka 'long *') if (internal::Acquire_Load(once) != ONCE_STATE_DONE) { ^~~~
same
same...
same
To solve this issue follow these steps:
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install emscripten-1.36.14
./emsdk activate emscripten-1.36.14
source ./emsdk_env.sh
I also installed llvm here: https://apt.llvm.org/
And ran the configure files as such:
emconfigure --em-config LLVM_ROOT=/usr/bin; ./configure
emmake --em-config LLVM_ROOT=/usr/bin; make
Don't know if that's required though
cheers