[opus] How to cross-compile opus-tools?
bat guano
batguano999 at hotmail.com
Fri Oct 19 16:55:38 PDT 2012
>
> The linker isn't finding the libopus and libogg you built. Try
> re-running with 'make V=1' to get the actual link line and verify that
> the paths are correct.
>
> -r
>
Yes, it was looking in /usr/local/include...
So I've passed information to compiler:-
PKG_CONFIG_PATH="$HOME/builds/lib/pkgconfig" LDFLAGS="-L$HOME/builds/lib" CFLAGS="-I$HOME/builds/include" ./configure --prefix=$HOME/builds --host=i686-w64-mingw32
Now make V=1 shows a different error.
"src/opusrtp.c:53:24: fatal error: sys/socket.h: No such file or directory"
Any ideas?
***********************************************
Type "make; make install" to compile and install
Type "make check" to run the test suite
user at xubuntu:~/source/opus-tools$ make V=1
make all-recursive
make[1]: Entering directory `/home/user/source/opus-tools'
Making all in .
make[2]: Entering directory `/home/user/source/opus-tools'
depbase=`echo src/opus_header.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32 -I/home/user/builds/include -I/home/user/builds/include/opus -DOPUSTOOLS -D_FORTIFY_SOURCE=2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include -fstack-protector-all -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/opus_header.o -MD -MP -MF $depbase.Tpo -c -o src/opus_header.o src/opus_header.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/opusenc.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32 -I/home/user/builds/include -I/home/user/builds/include/opus -DOPUSTOOLS -D_FORTIFY_SOURCE=2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include -fstack-protector-all -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/opusenc.o -MD -MP -MF $depbase.Tpo -c -o src/opusenc.o src/opusenc.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/resample.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32 -I/home/user/builds/include -I/home/user/builds/include/opus -DOPUSTOOLS -D_FORTIFY_SOURCE=2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include -fstack-protector-all -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/resample.o -MD -MP -MF $depbase.Tpo -c -o src/resample.o src/resample.c &&\
mv -f $depbase.Tpo $depbase.Po
src/resample.c: In function ‘update_filter’:
src/resample.c:607:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/resample.c:688:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/resample.c:696:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/resample.c:699:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/resample.c:706:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/resample.c: In function ‘opustools_resampler_process_float’:
src/resample.c:872:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/resample.c:875:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/resample.c: In function ‘opustools_resampler_process_int’:
src/resample.c:928:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/resample.c:935:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/resample.c:945:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
depbase=`echo src/audio-in.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32 -I/home/user/builds/include -I/home/user/builds/include/opus -DOPUSTOOLS -D_FORTIFY_SOURCE=2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include -fstack-protector-all -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/audio-in.o -MD -MP -MF $depbase.Tpo -c -o src/audio-in.o src/audio-in.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/diag_range.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32 -I/home/user/builds/include -I/home/user/builds/include/opus -DOPUSTOOLS -D_FORTIFY_SOURCE=2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include -fstack-protector-all -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/diag_range.o -MD -MP -MF $depbase.Tpo -c -o src/diag_range.o src/diag_range.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/lpc.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32 -I/home/user/builds/include -I/home/user/builds/include/opus -DOPUSTOOLS -D_FORTIFY_SOURCE=2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include -fstack-protector-all -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/lpc.o -MD -MP -MF $depbase.Tpo -c -o src/lpc.o src/lpc.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo win32/unicode_support.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32 -I/home/user/builds/include -I/home/user/builds/include/opus -DOPUSTOOLS -D_FORTIFY_SOURCE=2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include -fstack-protector-all -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT win32/unicode_support.o -MD -MP -MF $depbase.Tpo -c -o win32/unicode_support.o win32/unicode_support.c &&\
mv -f $depbase.Tpo $depbase.Po
i686-w64-mingw32-gcc -std=gnu99 -I/home/user/builds/include -I/home/user/builds/include/opus -DOPUSTOOLS -D_FORTIFY_SOURCE=2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include -fstack-protector-all -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -L/home/user/builds/lib -o opusenc.exe src/opus_header.o src/opusenc.o src/resample.o src/audio-in.o src/diag_range.o src/lpc.o win32/unicode_support.o -L/home/user/builds/lib -logg -L/home/user/builds/lib -lopus -lm -lwinmm
depbase=`echo src/wav_io.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32 -I/home/user/builds/include -I/home/user/builds/include/opus -DOPUSTOOLS -D_FORTIFY_SOURCE=2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include -fstack-protector-all -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/wav_io.o -MD -MP -MF $depbase.Tpo -c -o src/wav_io.o src/wav_io.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/wave_out.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32 -I/home/user/builds/include -I/home/user/builds/include/opus -DOPUSTOOLS -D_FORTIFY_SOURCE=2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include -fstack-protector-all -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/wave_out.o -MD -MP -MF $depbase.Tpo -c -o src/wave_out.o src/wave_out.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/opusdec.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32 -I/home/user/builds/include -I/home/user/builds/include/opus -DOPUSTOOLS -D_FORTIFY_SOURCE=2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include -fstack-protector-all -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/opusdec.o -MD -MP -MF $depbase.Tpo -c -o src/opusdec.o src/opusdec.c &&\
mv -f $depbase.Tpo $depbase.Po
i686-w64-mingw32-gcc -std=gnu99 -I/home/user/builds/include -I/home/user/builds/include/opus -DOPUSTOOLS -D_FORTIFY_SOURCE=2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include -fstack-protector-all -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -L/home/user/builds/lib -o opusdec.exe src/opus_header.o src/wav_io.o src/wave_out.o src/opusdec.o src/resample.o src/diag_range.o win32/unicode_support.o -L/home/user/builds/lib -logg -L/home/user/builds/lib -lopus -lm -lwinmm
depbase=`echo src/opusinfo.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32 -I/home/user/builds/include -I/home/user/builds/include/opus -DOPUSTOOLS -D_FORTIFY_SOURCE=2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include -fstack-protector-all -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/opusinfo.o -MD -MP -MF $depbase.Tpo -c -o src/opusinfo.o src/opusinfo.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/info_opus.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32 -I/home/user/builds/include -I/home/user/builds/include/opus -DOPUSTOOLS -D_FORTIFY_SOURCE=2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include -fstack-protector-all -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/info_opus.o -MD -MP -MF $depbase.Tpo -c -o src/info_opus.o src/info_opus.c &&\
mv -f $depbase.Tpo $depbase.Po
i686-w64-mingw32-gcc -std=gnu99 -I/home/user/builds/include -I/home/user/builds/include/opus -DOPUSTOOLS -D_FORTIFY_SOURCE=2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include -fstack-protector-all -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -L/home/user/builds/lib -o opusinfo.exe src/opus_header.o src/opusinfo.o src/info_opus.o win32/unicode_support.o -L/home/user/builds/lib -logg -lwinmm
depbase=`echo src/opusrtp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./src -I./win32 -I/home/user/builds/include -I/home/user/builds/include/opus -DOPUSTOOLS -D_FORTIFY_SOURCE=2 -DHAVE_GETOPT_H -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I/home/user/builds/include -fstack-protector-all -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/opusrtp.o -MD -MP -MF $depbase.Tpo -c -o src/opusrtp.o src/opusrtp.c &&\
mv -f $depbase.Tpo $depbase.Po
src/opusrtp.c:53:24: fatal error: sys/socket.h: No such file or directory
compilation terminated.
make[2]: *** [src/opusrtp.o] Error 1
make[2]: Leaving directory `/home/user/source/opus-tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/source/opus-tools'
make: *** [all] Error 2
More information about the opus
mailing list