code-google-com / awd

Automatically exported from code.google.com/p/awd
Apache License 2.0
0 stars 0 forks source link

Cannot compile awd in Ubuntu 11.04 #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Clone repository
2. try to compile
3. get some error message

What is the expected output? What do you see instead?

I expected awd to compile instead got this:

$ make
Makefile:1: Getting build number from Mercurial
src/attr.cc > src/attr.o
g++: i386: No such file or directory
g++: x86_64: No such file or directory
cc1plus: error: unrecognized command line option "-arch"
cc1plus: error: unrecognized command line option "-arch"
make: *** [src/attr.o] Error 1

What version of the product are you using? On what operating system?

I'm using Ubuntu 11.04 with the g++ compiler that comes with it.

Please provide any additional information below.

Original issue reported on code.google.com by therauli@gmail.com on 22 Dec 2011 at 1:40

GoogleCodeExporter commented 9 years ago
Thank you for filing a bug. Great feedback! The Makefile is hard-coded for Mac 
OSX right now. I will see if I can quickly make it work for Linux as well.

Original comment by bengtric...@gmail.com on 22 Dec 2011 at 1:42

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
thanks. it did compile fine on osx for us too, but we didn't figure out the gcc 
param probs with a quick look to resolve this linux issue. on windows we didn't 
make it that far yet, can use mac first now.

Original comment by toni.alatalo on 22 Dec 2011 at 4:42

GoogleCodeExporter commented 9 years ago
On Linux, you just need different CFLAGS and DYLIB:
CFLAGS=-Wall -g -DAWD_VERSION_BUILD=$(BUILDVERSION) -fPIC
DYLIB=libawd.so

and a slightly different command line for making the library:
$(CXX) --shared $(LDFLAGS) -o $(BUILDDIR)/$(DYLIB) $(OBJ)

To use any built-in zlib you might have, just omit lib/zlib/*.c from the C_SRC

Original comment by andrew.a...@irok2.com on 13 Mar 2012 at 8:42