Thanks osuciu - 

I checked into protoc-jar. Unfortunately, it suffers from the same problem 
I'm currently having - it just wraps a call to the C version of protoc for 
windows, osx and linux and provides those binaries embedded in the jar. 
This would be fine except, as the OP pointed out, protoc on linux is not 
portable from one linux distro to another. The readme.md file is not even 
clear as to which linux distro the linux version targets. I'm looking for a 
true native java port of the protoc compiler. It's a pretty trivial 
compiler and the C source code is available. I guess I'll have to do it 
myself.

John

On Monday, June 23, 2014 7:38:10 PM UTC-6, Feng Xiao wrote:
>
> On Mon, Jun 23, 2014 at 6:29 PM, John Calcote <[email protected] 
> <javascript:>> wrote:
>
>> I'm also interested in a portable protoc compiler - java would be nice, 
>> but python would work too. No one has a comment on this?
>>
> osuciu@'s protoc-jar might be of interest to you: 
> https://github.com/os72/protoc-jar
>  
>
>>
>>
>> On Friday, January 24, 2014 2:07:27 AM UTC-7, Matthias Hogerheijde wrote:
>>>
>>> Hi,
>>>
>>> I've successfully compiled protoc in order to generate Java sources from 
>>> a .proto file. (In this case gtfs-realtime.proto 
>>> <https://developers.google.com/transit/gtfs-realtime/gtfs-realtime-proto>
>>> .)
>>>
>>> We're using this in a Maven project. My wish is to have Maven compile 
>>> the Java source from the .proto files automatically; and not have the 
>>> compiled sources checked in into Git.
>>> I've configured Maven to automatically execute protoc with the desired 
>>> parameters to generate the sources for me; all is going well.  I even 
>>> configured Maven to use the Windows executable when on a Windows platform.
>>>
>>> But the Linux version is not portable. When compiling the 
>>> protoc-executable it hard-codes some absolute paths. This means that I 
>>> cannot ship the executable with the project, for other programmers working 
>>> on the same project don't have the same folder-tree as I do; and I don't 
>>> want to force them to either.
>>>
>>> Does anyone know of a way to have a portable solution to generate the 
>>> code on the fly, without having every contributor on the project having to 
>>> download/configure/compile protoc?
>>>
>>> Kind Regards,
>>> Matthias Hogerheijde
>>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Protocol Buffers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/protobuf.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to