nu774 / fdkaac

command line encoder frontend for libfdk-aac
Other
260 stars 58 forks source link

Can't compile under cygwin64 #16

Closed neheb closed 9 years ago

neheb commented 10 years ago

It errors with:

gcc -DHAVE_CONFIG_H -I. -I.. -Wall -O2 -D_FILE_OFFSET_BITS=64 -s -MT src/aacenc.o -MD -MP -MF $depbase.Tpo -c -o src/aacenc.o ../src/aacenc.c &&\ mv -f $depbase.Tpo $depbase.Po In file included from ../src/aacenc.c:11:0: /usr/include/stdio.h:55:9: error: unknown type name ‘_fpos64_t’ typedef _fpos64_t fpos_t; ^

edit: I can compile fine with MinGW-w64 so I think the issue is with the configure script.

nu774 commented 10 years ago

Can't reproduce. It looks like gcc argument is different here (on Cygwin64):

gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -MT src/aacenc.o -MD -MP -MF $depbase.Tpo -c -o src/aacenc.o ../src/aacenc.c &&\
mv -f $depbase.Tpo $depbase.Po

Anyways, if error is happening inside of stdio.h, I don't think issue is in fdkaac side.

neheb commented 10 years ago

I found the issue. Whenever I build stuff with autotools, I make a new directory called build and run "../configure". But it seemed to not work so well this time. I fixed the issue by changing a line in the Makefile "DEFAULT_INCLUDES = -I. -I$(srcdir)/src"

I also changed version.h to point to ../version.h instead. Compiles fine now.