Comments (2)
em++ version is 3.1.23
Also run command "em++ --clear-cache" and no any improvement
from proxy-wasm-cpp-sdk.
do this make file again, then works now
cat Makefile_pb
CPP_API ?= .
all: proxy_wasm_intrinsics.pb.h proxy_wasm_intrinsics_lite.pb.h struct_lite.pb.h HFEDHttpScreenMsg.pb.h ${CPP_API}/libprotobuf.a ${CPP_API}/libprotobuf-lite.a
protobuf: proxy_wasm_intrinsics.pb.h proxy_wasm_intrinsics_lite.pb.h struct_lite.pb.h HFEDHttpScreenMsg.pb.h
proxy_wasm_intrinsics.pb.h: proxy_wasm_intrinsics.proto
protoc --cpp_out=. proxy_wasm_intrinsics.proto
proxy_wasm_intrinsics_lite.pb.h struct_lite.pb.h: proxy_wasm_intrinsics_lite.proto
protoc --cpp_out=. -I. proxy_wasm_intrinsics_lite.proto
protoc --cpp_out=. struct_lite.proto
HFEDHttpScreenMsg.pb.h: HFEDHttpScreenMsg.proto
protoc --proto_path=. --cpp_out=. HFEDHttpScreenMsg.proto
${CPP_API}/libprotobuf.a ${CPP_API}/libprotobuf-lite.a:
rm -rf protobuf-wasm && git clone https://github.com/protocolbuffers/protobuf protobuf-wasm
&& cd protobuf-wasm && git checkout v3.9.1
&& rm -rf wasm-patches && git clone https://github.com/kwonoj/protobuf-wasm wasm-patches
&& cd wasm-patches && git checkout 4bba8b2f38b5004f87489642b6ca4525ae72fe7f
&& cd .. && git apply wasm-patches/*.patch
&& ./autogen.sh
&& emconfigure ./configure --disable-shared CXXFLAGS="-O3 -flto"
&& emmake make
&& cd ..
&& cp protobuf-wasm/src/.libs/libprotobuf-lite.a ${CPP_API}/libprotobuf-lite.a
&& cp protobuf-wasm/src/.libs/libprotobuf.a ${CPP_API}/libprotobuf.a
clean:
rm -f proxy_wasm_intrinsics.pb.h proxy_wasm_intrinsics_lite.pb.h struct_lite.pb.h HFEDHttpScreenMsg.pb.h ${CPP_API}/libprotobuf.a ${CPP_API}/libprotobuf-lite.a
thanks
from proxy-wasm-cpp-sdk.
Related Issues (20)
- Build failing in `envoyproxy/envoy-build-ubuntu:49aaeb8f5473f09b4ab37ef3233a5e8afb7f9ed8-arm64`
- Using an external library (in my case, librdkafka) HOT 3
- Is it possible to get underlying socket? HOT 1
- Support for exceptions .. Disabling emscripten-cxx-exceptions HOT 6
- wasm-ld: error: /sdk/libprotobuf.a(common.o): undefined symbol HOT 2
- Failed to load Wasm module due to a missing import: env.getaddrinfo
- does it support grpc protocol process HOT 3
- does it support grpc decode? HOT 1
- How to modify HTTP header "Content-Length" in onRequestBody/onResponseBody HOT 2
- Can Call onRequestTrailers() and onResponseTrailers unconditionally??? HOT 1
- You can use -flto in cflags for emsdk bazel
- Fix Bazel build with emsdk 3.1.7 HOT 2
- Consider implementing Wasm-side log level
- LOG macro conflicts HOT 4
- docker build error HOT 3
- How to resume filters after returning StopIteration in onRequestHeaders()? HOT 2
- Update protobuf libraries HOT 2
- Error building building example WASM filter HOT 1
- Add instructions for using SDK without Emscripten HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxy-wasm-cpp-sdk.