code4game / libprotobuf_ue4 Goto Github PK
View Code? Open in Web Editor NEWlibprotobuf for Unreal Engine 4
License: MIT License
libprotobuf for Unreal Engine 4
License: MIT License
In your document you mentioned
#include "AllowWindowsPlatformTypes.h" //< before include the header file
#include "your code header file" //< ex: #include "Message.pb.h"
#include "HideWindowsPlatformTypes.h"
But I can not find these two files anywhere.
Hi,I've read your code,I find you didn't updaload android and ios protobuffer.a ,in build.cs ,you did not processer the android and ios platform.I have done the same thing in last year, now i want to configure android and ios platform.
Placing this into ThirdParty folder as instructed does not appear to allow UE4 to find it as a module. Is there some other configuration I need to make to my project for Unreal to find this module?
1>------ Build started: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------
2>------ Build started: Project: TestProject1, Configuration: Shipping_Game x64 ------
2> Creating makefile for TestProject1 (changes to module files)
2>EXEC : error : Couldn't find module rules file for module 'libprotobuf'.
Hi,
I already compiled protobuf with visual studio 2017 ( static compile in 64 bits)
To validate the result I have developed a simple console application to check if I can use the *.pb.cc and *.pb.h files
Everything is ok
Next step I tried to incorporate in a unreal engine 4 project. Set up a build files
File.Build.cs
...
PublicIncludePaths.Add(ModulePath + "/Include");
PublicLibraryPaths.Add(ModulePath + "/Lib");
PublicAdditionalLibraries.Add("libprotobuf.lib");
...
But it gave me strange compile errors
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.11.25503\INCLUDE\type_traits(565): error C4647: behavior change: __is_pod(google::protobuf::internal::AuxillaryParseTableField) has different value in previous versions
...\Include\google/protobuf/generated_message_table_driven.h(159): note: see reference to class template instantiation 'std::is_podgoogle::protobuf::internal::AuxillaryParseTableField' being compiled
...\Messages.pb.h(992): warning C4668: 'PROTOBUF_INLINE_NOT_IN_HEADERS' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
...\Include\google/protobuf/descriptor.pb.h(4113): warning C4668: 'PROTOBUF_INLINE_NOT_IN_HEADERS' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
...\Messages.pb.cc(258): error C4125: decimal digit terminates octal escape sequence
...\Messages.pb.cc(259): error C4125: decimal digit terminates octal escape sequence
Search on web but I haven't mutch success: Example this error is real strange !!!!
"...\MSVC\14.11.25503\INCLUDE\type_traits(565): error C4647: behavior change: __is_pod(google::protobuf::internal::AuxillaryParseTableField) has different value in previous versions .."
Have you tried to compile this source code with recent versions of Protobuf and Visual Studio ?
Protocol Buffer 3.3.0
Visual Studio 2017
Release 64 bits
Regards
Nelson Bilber
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.