[protobuf] Re: Issue 556 in protobuf: Unable to cross-compile for i686-w64-mingw32 with Cygwin

2014-12-08 Thread protobuf

Updates:
Status: Fixed
Owner: xiaof...@google.com

Comment #4 on issue 556 by xiaof...@google.com: Unable to cross-compile for  
i686-w64-mingw32 with Cygwin

https://code.google.com/p/protobuf/issues/detail?id=556

For cross-compiling, you can specify an protoc binary using  
the --with-protoc flag. That is:

./configure --with-protoc=/path/to/cygwin/protoc --host=i686-w64-mingw32

BTW, why do you cross-compile for mingw32 with cygwin?

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


[protobuf] Re: Issue 556 in protobuf: Unable to cross-compile for i686-w64-mingw32 with Cygwin

2014-12-06 Thread protobuf


Comment #3 on issue 556 by bible.ma...@gmail.com: Unable to cross-compile  
for i686-w64-mingw32 with Cygwin

https://code.google.com/p/protobuf/issues/detail?id=556

Having the same issue. Did this get resolved?

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


[protobuf] Re: Issue 556 in protobuf: Unable to cross-compile for i686-w64-mingw32 with Cygwin

2013-12-09 Thread protobuf


Comment #2 on issue 556 by vineeth@gmail.com: Unable to cross-compile  
for i686-w64-mingw32 with Cygwin

http://code.google.com/p/protobuf/issues/detail?id=556

Hi Is this issue resolved?

I have a similar issue. How do i resolve it?

$ make
make  all-recursive
make[1]: Entering directory `/c/users/yi515528/Desktop/protobuf-2.5.0'
Making all in .
make[2]: Entering directory `/c/users/yi515528/Desktop/protobuf-2.5.0'
make[2]: Leaving directory `/c/users/yi515528/Desktop/protobuf-2.5.0'
Making all in src
make[2]: Entering directory `/c/users/yi515528/Desktop/protobuf-2.5.0/src'
oldpwd=`pwd`  ( cd .  $oldpwd/protoc.exe -I. --cpp_out=$oldpwd  
google/protobuf/unittest.proto 
google/protobuf/unittest_empty.proto   
google/protobuf/unittest_import.proto  
google/protobuf/unittest_import_public.proto   
google/protobuf/unittest_
mset.proto
google/protobuf/unittest_optimize_for.proto
google/protobuf/unittest_embed_optimize_for.proto  
google/protobuf/unittest_custom_options.proto  
google/protobuf/unittest_lite.proto
google/protobuf/unittest_import_lite.proto
   google/protobuf/unittest_import_public_lite.proto  
google/protobuf/unittest_lite_imports_nonlite.proto
google/protobuf/unittest_no_generic_services.proto 
google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto )

Makefile:3114: recipe for target `unittest_proto_middleman' failed
make[2]: *** [unittest_proto_middleman] Error 116
make[2]: Leaving directory `/c/users/yi515528/Desktop/protobuf-2.5.0/src'
Makefile:568: recipe for target `all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/users/yi515528/Desktop/protobuf-2.5.0'
Makefile:477: recipe for target `all' failed
make: *** [all] Error 2

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.


[protobuf] Re: Issue 556 in protobuf: Unable to cross-compile for i686-w64-mingw32 with Cygwin

2013-09-04 Thread protobuf


Comment #1 on issue 556 by 10wa...@gmail.com: Unable to cross-compile for  
i686-w64-mingw32 with Cygwin

http://code.google.com/p/protobuf/issues/detail?id=556

Hi,

Nick is cross compiling on Cygwin for mingw. The problem is that the build  
calls the just built protoc, this is taboo in cross compile mode. From what  
I understand protoc is also a tool that is installed. What needs to be done  
is the following:


1. If cross compiling, ensure user has already a native version installed.  
Do this by:
2. Add AC_CHECK_PROG to configure.ac to find whatever build time required  
tools, abort if it is not found when $build != $host.
4. Optionally, check the version of installed protoc and other tools when  
cross compiling, abort as necessary.
3. Set PROTOC variable to the path of installed and working protoc/tools if  
in cross compile mode, else use the usual just-built $oldpwd/protoc. Do  
this for other tools as well.

4. Modify Makefile.am as necessary to call through the new variables.

Changes in documentation:
1. Require user to already have an installed version if cross compiling.
2. Optionally require user to have the same version when cross compiling.


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.