[protobuf] Re: Protobuf segmentation malloc error

2017-03-21 Thread Doug Lewis
I was having a similar problem at one point in my project development. We did 2 things to correct it: - I set the message type (Hardware in your case) to use Arena. After this the malloc error stopped occurring. This was a temporary fix to allow us to continue development. - We

[protobuf] During G++ Link, cannot find google::protobuf::internal::MergeFromFail

2017-03-21 Thread Doug Lewis
When I'm making my application in Eclipse I get the following error during the link step: Invoking: Cross G++ Linker arm-uclinuxeabi-g++ -L../../myCommon/Debug -L../../myProtoBuffLib/Debug -L../../myCommon/pbLibs -L"/home/wsi/linux-cortexm-2.0.0/A2F/root/usr/lib" -o "lStat"

[protobuf] Re: How Do I Build Just the C++ Libraries?

2017-03-21 Thread Doug Lewis
I rebuilt the libraries from a clean copy of the source and now I am finding all of the files that I need. Thanks, Doug On Monday, March 20, 2017 at 1:21:12 PM UTC-5, Doug Lewis wrote: > > Thanks for the suggestion Josh! > > I tried executing the make in the src directory and

[protobuf] Re: How Do I Build Just the C++ Libraries?

2017-03-20 Thread Doug Lewis
t; > $ cd src && make libprotobuf.la libprotobuf-lite.la > > I can't guarantee it will compile without fork(), but it should avoid > compiling the compiler! > > On Tuesday, March 14, 2017 at 2:01:43 PM UTC-7, Doug Lewis wrote: >> >> I'm going to be usi

[protobuf] Disable arena During Build Process

2017-03-15 Thread Doug Lewis
I'm in the process of cross-compiling the protocol buffer in C++. I'm getting a link error with some of the Arena elements. I'm not going to be using Arena in my code so is there a way I can "disable" the arena elements of protocol buffers? My target is running uClinux which had very tight

[protobuf] How Do I Build Just the C++ Libraries?

2017-03-14 Thread Doug Lewis
I'm going to be using protocol buffers on an embedded system using uClinux. I need to build the C++ libraries using the cross-compiler but *not* build the protoc compiler, I will compile the proto files on my Ubuntu host. If I use the package from git it builds both the protoc compiler and

[protobuf] Re: Has Anyone Used protobuf on ucLinux?

2017-03-14 Thread Doug Lewis
Ah I see that in the full output of the make process now. Yes all I really need is to get the libraries built with the cross compiler. Thank you! Doug On Tuesday, March 14, 2017 at 2:56:04 PM UTC-5, Doug Lewis wrote: > > I've been tasked with seeing if we can use protobuf on ucLinux (m

[protobuf] Re: Has Anyone Used protobuf on ucLinux?

2017-03-14 Thread Doug Lewis
My host platform is an Ubuntu Linux box where the protoc compiler will run to generate the C++ code that will be cross compiled to run on the uClinux target. Doug On Tuesday, March 14, 2017 at 2:56:04 PM UTC-5, Doug Lewis wrote: > > I've been tasked with seeing if we can use pr

[protobuf] Has Anyone Used protobuf on ucLinux?

2017-03-14 Thread Doug Lewis
I've been tasked with seeing if we can use protobuf on ucLinux (micro c Linux). We had previously been using an embedded version of Debian Linux and we had protobuf working very well on it. The specific issue I am having is as I'm building the protobuf code I get this compile error:

[protobuf] C++ malloc error when adding a repeated message element

2017-01-06 Thread Doug Lewis
I get a malloc error when I try to add a repeated message element. Below is the .proto message definition: message Discovery { uint32 lmuSerialNumber = 1; uint64 gpsTime = 2; repeated EquipmentInfo discoveredUnits = 3; } Here is the code where I'm trying to add discoveredUnits to the

[protobuf] Getting "undefined reference to 'google::protobuf::UnknownFieldSet::UnknowFieldSet()' During the link portion of a build

2016-08-02 Thread Doug Lewis
I'm using Eclipse to build a program that is using protocol buffers proto3 that is a cross compile, PC host with an ARM target. I've build the libraries for the target. When I build my program I get the following error: make all 'Building target: j_ldisco' 'Invoking: Cross G++ Linker'

[protobuf] How Do I Get proto3 to build shared libraries in C++

2016-07-18 Thread Doug Lewis
I'm building the proto3 version of protocol buffers using Cygwin. When I execute the "make check" command I get the following error: *** Warning: This system can not link to static lib archive lib/libgtest.la. *** I have the capability to make that library automatically link in when *** you link

[protobuf] Re: Cannot Build proto3 C++ Source Using gcc

2016-06-27 Thread Doug Lewis
Studio to do build for the ARM processor. Regards, Doug On Monday, June 27, 2016 at 1:00:32 PM UTC-5, Doug Lewis wrote: > > I'm trying to build the proto3 C++ source using gcc. I've tried both > command line and using Eclipse. I get the same error either way I attempt > to bui

[protobuf] Re: Cannot Build proto3 C++ Source Using gcc

2016-06-27 Thread Doug Lewis
ry. If I replace the forward slash with a backwards slash I get a listing of the directory. I just need to find what is setting that first slash to the wrong one. Doug On Monday, June 27, 2016 at 1:00:32 PM UTC-5, Doug Lewis wrote: > > I'm trying to build the proto3 C++ source using g

Re: [protobuf] Cannot Build proto3 C++ Source Using gcc

2016-06-27 Thread Doug Lewis
<xiaof...@google.com> wrote: > > > On Mon, Jun 27, 2016 at 11:00 AM, Doug Lewis <douglewis@gmail.com> > wrote: > >> I'm trying to build the proto3 C++ source using gcc. I've tried both >> command line and using Eclipse. I get the same error either way

[protobuf] Cannot Build proto3 C++ Source Using gcc

2016-06-27 Thread Doug Lewis
I'm trying to build the proto3 C++ source using gcc. I've tried both command line and using Eclipse. I get the same error either way I attempt to build: /bin/sh ../libtool --tag=CXX --mode=link g++ -DHAVE_PTHREAD=1 -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g

[protobuf] proto3 beta 3.1 Missing aclocal.m4 File?

2016-06-22 Thread Doug Lewis
I'm trying to build proto3 beta 3.1 using Cygwin. The autogen.sh script errors out because it cannot find the aclocal file. I see the aclocal.m4 file in the zip of the previous beta version but I do not see any aclocal file in the 3.1 zip. Thanks, Doug -- You received this message because

[protobuf] Has Anyone Been Able to Build proto3 Using the GNU Tools on a Windows PC?

2016-06-21 Thread Doug Lewis
After much work by 2 engineers we were finally able to build proto3 using Visual Studio 2015 and are able to build Windows programs that use the protocol buffers, proto3. Now for the meat of our project, we are planning on using the protocol buffers in an embedded environment that is running

[protobuf] How to Build protocol buffers Version 3 With gcc on Windows

2016-06-01 Thread Doug Lewis
I'm trying to build protocol buffers Version 3 on my Windows laptop using gcc, gcc version 4.5.4. I'm reviewing the README.md file in the top directory and it refers me to a README.md file in the src directory, well that file does not exist. Can I use cmake to build protocol buffers for use