philippepascal / protobuf-actionscript3

Automatically exported from code.google.com/p/protobuf-actionscript3
13 stars 8 forks source link

Compiling using mingw (msys and cygwin) doesnt work. #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download protobuf-2.1.0.zip and compile it using the
instructions(./configure, make, make check, make install)
2. download  protobuf-actionscript3-v2.1.zip, and follow the instructions
in INSTALL
3. run make again

What is the expected output? What do you see instead?
The expected result is an correctly compiled .exe, the results were error
by the linker (?)

What version of the product are you using? On what operating system?
winxp + newest mingw + newest cygwin

Please provide any additional information below.
I think its pretty easy to fix, but im not really sure
with all the conf/make tools etc where the problem is. I 
tried several times to call automake, autoconf and autogen.sh etc 
but that didnt help. The original source compiled without any errors.
I tried several times copying protobuf-as3 into a clean
compiled version, but everytime i got the error.
the error i got was :
C:/msys/1.0/home/myname/protobuf-2.1.0/src/google/protobuf/compiler/main.cc:49:
undefined reference to
`google::protobuf::compiler::as3::As3Generator::As3Genera
tor()'
C:/msys/1.0/home/myname/protobuf-2.1.0/src/google/protobuf/compiler/main.cc:54:
undefined reference to
`google::protobuf::compiler::as3::As3Generator::~As3Gener
ator()'
C:/msys/1.0/home/myname/protobuf-2.1.0/src/google/protobuf/compiler/main.cc:54:
undefined reference to
`google::protobuf::compiler::as3::As3Generator::~As3Gener
ator()'
collect2: ld returned 1 exit status
make: *** [protoc.exe] Error 1

Original issue reported on code.google.com by jandevri...@fastmail.fm on 7 Aug 2009 at 1:48

GoogleCodeExporter commented 9 years ago
as little I understand your autogen did not make the right make file...
try 
:make clean
:autogen.sh
:./configure
:make 
one more time

Original comment by big...@gmail.com on 7 Aug 2009 at 3:04

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I did it exactly as you said, but this time i got an other error. 
Although it is another one as the one i posted before, im pretty
sure i ran into this one already several times before.
I don't really understand why the code from the original package
compiled immediately and this one keeps complaining. One thing im 
wondering about is that the INSTALL states that the modified
makefile.am should be placed in "(PB_SRC_DIR)/src", while im calling 
the make, configure etc commands from one directory higher. I already placing 
the makefile.am in both "(PB_SRC_DIR)" and "(PB_SRC_DIR)/src" with no 
succes but maybe this has to do with it somehow.

anyway, after your suggestions i got this:

/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..   -I/
usr/local/include  -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare
 -g -DNDEBUG -MT common.lo -MD -MP -MF .deps/common.Tpo -c -o common.lo `test -f
 'google/protobuf/stubs/common.cc' || echo './'`google/protobuf/stubs/common.cc
../libtool: line 845: X--tag=CXX: command not found
../libtool: line 878: libtool: ignoring unknown tag : command not found
../libtool: line 845: X--mode=compile: command not found
../libtool: line 1012: *** Warning: inferring the mode of operation is deprecate
d.: command not found
../libtool: line 1013: *** Future versions of Libtool will require --mode=MODE b
e specified.: command not found
../libtool: line 1156: Xg++: command not found
../libtool: line 1156: X-DHAVE_CONFIG_H: command not found
../libtool: line 1156: X-I.: command not found
../libtool: line 1156: X-I..: command not found
../libtool: line 1156: X-I/usr/local/include: No such file or directory
../libtool: line 1156: X-Wall: command not found
../libtool: line 1156: X-Wwrite-strings: command not found
../libtool: line 1156: X-Woverloaded-virtual: command not found
../libtool: line 1156: X-Wno-sign-compare: command not found
../libtool: line 1156: X-g: command not found
../libtool: line 1156: X-DNDEBUG: command not found
../libtool: line 1156: X-MT: command not found
../libtool: line 1156: Xcommon.lo: command not found
../libtool: line 1156: X-MD: command not found
../libtool: line 1156: X-MP: command not found
../libtool: line 1156: X-MF: command not found
../libtool: line 1156: X.deps/common.Tpo: No such file or directory
../libtool: line 1156: X-c: command not found
../libtool: line 1208: Xcommon.lo: command not found
../libtool: line 1213: libtool: compile: cannot determine name of library object
 from `': command not found
make[2]: *** [common.lo] Error 1
make[2]: Leaving directory `/home/myname/protobuf-2.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/myname/protobuf-2.1.0'
make: *** [all] Error 2

Original comment by jandevri...@fastmail.fm on 7 Aug 2009 at 4:31

GoogleCodeExporter commented 9 years ago
Finally i got it to work. I don't exactly what i did but i think it is just a 
matter
of getting to understand the gnu autotools realy good. Personally i think its a
horrible user-unfriendly system but eventually you will get the job done. I 
would
recommend posting a binary for download since my guess is that compiling the 
stuff
from source is just a tad to much for most as3 developers. 

Original comment by jandevri...@fastmail.fm on 7 Aug 2009 at 1:51

GoogleCodeExporter commented 9 years ago
I forgot to mention it in my previous post, but when i was unsuccessful, i 
didn't use
the Makefile.am provided but instead just added the new 22 .cc and .h files 
myself in
the Makefile.am from the original protobuf-2.1.0.zip. I still don't know a lot 
about
the autobuild process, but some of the problems i encountered earlier might (or 
might
not be) caused by an incorrect Makefile.am in protobuf-actionscript3-v2.1.tar.gz

Maybe some pro can use my info to check this problem out.. 

Original comment by jandevri...@fastmail.fm on 7 Aug 2009 at 3:29

GoogleCodeExporter commented 9 years ago
I'm glad you got it to work in the end, but if you don't add the files provided
(Makefile.am) you can't really say it doesn't work ;)

I'm closing the bug.

Original comment by sorrydevil@gmail.com on 19 Aug 2009 at 6:24