Open MMahdiSetak opened 2 years ago
You're trying to link together Proxy-Wasm plugin (built for wasm32 architecture) and system library (built for x86_64 architecture). This won't work, you need to build librdkafka++ from sources for wasm32 target as part of the plugin itself.
I had the same issue with proxy-wasm as @MMahdiSetak mentioned, how can I get a wasm32 build for librdkafa++. @PiotrSikora Thansk for any help :)
You need to build it from sources as part of the plugin build process (assuming it even compiles to wasm32, since that's not guaranteed).
Hi I've been trying to add librdkafka as an external library and use it inside my cpp code but when I try to compile it and generate the wasm file, I get this error:
I've searched about the error and according to this link, it seems that adding some link files to em++ options is not possible. How can I do so? Is there a better way for reading a request and sending a Kafka message in envoy? I've also attached the files that I made some changes to them here: sample.zip