Re: Error compilinig project depending on protobuf

2023-07-26 Thread Giacomo Tommaso Petrucci
Here's a possibòle solution: https://discourse.cmake.org/t/cmake-fails-due-to-missing-protobuf-config-cmake-while-compiling-project-using-emscripten/8602/2 Il giorno mercoledì 26 luglio 2023 alle 10:10:58 UTC+2 Giacomo Tommaso Petrucci ha scritto: > Hello Sam, > > Yes you're right, one first ne

Re: Error compilinig project depending on protobuf

2023-07-26 Thread Giacomo Tommaso Petrucci
Hello Sam, Yes you're right, one first needs to compile protoc for the host, as it is used later to compile the rest. I previously found the protobuf-wasm repo and tried to use that one. But my attempt at pointing CMake to this precompiled version failed

Re: Error compilinig project depending on protobuf

2023-07-25 Thread 'Sam Clegg' via emscripten-discuss
I believe `protoc` is a program that runs on your host machine for compiling `.proto` files into `.cc` files.When cross compiling (as with emscripten) you need to ensure that that program is built using the host compiler and not that target compiler. I'm not sure how well protobuf is setup fo

Error compilinig project depending on protobuf

2023-07-13 Thread Giacomo Tommaso Petrucci
Greetings, I'm trying to compile to WASM a C++ cli application. The project uses CMake and Ninja. My approach so far was to try to invoke CMake using emcmake, see where the build process failed, get a precompiled WASM version of the missing library or compile that myself, modify the CMake confi