Add grpc and protobuf to Ue4 ,build failed without libcxx，
I want to add grpc and protobuf to my ue4 project. I have success add them on my mac by add include file and libs. but when I try on linux (ubuntu 16.04, build ue4 16.3 release version from source code). Something is Wrong:
Firstly, when I run the project, it said 'undefined symbol _ZNK6google8protobuf7Message11GetTypeNameEv' because of protobuf head file compiled by ue4 build tool , but I have '_ZNK6google8protobuf7Message11GetTypeNameB5cxx11Ev' in binary file , witch build with local c++ libs.
Secondly, I use the 'UE4_LINUX_USE_LIBCXX=0' and try to build ue4 with local c++libs, but I found that, many third party libs only have head files and *.a lib witch has been build with LibCxx(I think). Maybe I shoud not use 'UE4_LINUX_USE_LIBCXX=0'.
So , what shoud I do, try to build protobuf and grpc use clang and Libcxx? It looks still many problems about it.
There are a couple of things I'd like to address. First, make sure that you compile grpc and protobuf libs using the same compiler and the same C++ library as the main engine. Make sure that the same C++ standard is passed to both too (engine uses -std=c++14 since 4.15)
Secondly, you will need to rebuild bundled third party libraries to use local C++ libraries as well. The sources are included in the engine distribution. Let me know if this info helps.
answered Oct 10 '17 at 02:14 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here