- The other one removes the -no-undefined flag (commit d0647a4 did  
this, too, but it has since found its way back) in the hope that this  
will allow the linker to match the ntohl() call from libflac and the  
definition from src/flac.c.
 
Hi
sox.exe has cross-compiled OK for me now with FLAC and sndfile.

Using the "Remove-no-undefined-flag" patch.

Using FLAC from GIT.

libsndfile now configured WITHOUT "--disable-external-libs" option.

$ cd $HOME/SoX_build
$ git clone --depth 1 git://sox.git.sourceforge.net/gitroot/sox/sox
$ cd sox
$ autoreconf -fiv
# APPLY THE PATCH
$ patch < "$HOME/0001-Remove-no-undefined-flag-for-MinGW-build.patch"
#
$ PKG_CONFIG_PATH="$HOME/SoX_build/lib/pkgconfig" 
LDFLAGS="-L$HOME/SoX_build/lib" CPPFLAGS="-I$HOME/SoX_build/include" 
SNDFILE_LIBS="-lsndfile -lFLAC -lvorbisenc -lvorbisfile -lvorbis -logg" 
FLAC_LIBS="-lwsock32" ./configure --prefix=$HOME/SoX_build 
--host=i686-w64-mingw32 --enable-static --disable-shared
#
$ make -s && i686-w64-mingw32-strip src/sox.exe

This is the config report:-

BUILD OPTIONS
Debugging build............no
Distro name ...............not specified!
Dynamic loading support....no
Pkg-config location........$(libdir)/pkgconfig
Play and rec symlinks......yes
Symlinks enabled...........yes

OPTIONAL DEVICE DRIVERS
ao (Xiph)..................no
alsa (Linux)...............no
coreaudio (Mac OS X).......no
sndio (OpenBSD)............no
oss........................no
pulseaudio.................no
sunaudio...................no
waveaudio (MS-Windows).....yes

OPTIONAL FILE FORMATS
amrnb......................yes
 dlopen amrnb..............no
amrwb......................yes
 dlopen amrwb..............no
ffmpeg.....................no
flac.......................yes
gsm........................yes (in-tree)
lpc10......................yes (in-tree)
mp2/mp3....................yes
 id3tag....................yes
 lame......................yes
 lame id3tag...............yes
 dlopen lame...............no
 mad.......................yes
 dlopen mad................no
 twolame...................no
oggvorbis..................yes
sndfile....................yes
 dlopen sndfile............no
wavpack....................yes

OTHER OPTIONS
ladspa effects.............no
magic support..............no
png support................yes
OpenMP support.............no

And this is the result (*shows sndfile AND flac*):-

AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb amr-nb amr-wb anb au avr 
awb caf cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 fap flac fssd gsm gsrt 
hcom htk ima ircam la lpc lpc10 lu mat mat4 mat5 maud mp2 mp3 nist ogg paf prc 
pvf raw s1 s16 s2 s24 s3 s32 s4 s8 sb sd2 sds sf sl sln smp snd sndfile sndr 
sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vorbis vox 
w64 wav wavpcm wv wve xa xi
PLAYLIST FORMATS: m3u pls
AUDIO DEVICE DRIVERS: waveaudio

EFFECTS: allpass band bandpass bandreject bass bend biquad chorus channels 
compand contrast dcshift deemph delay dither divide+ downsample earwax echo 
echos equalizer fade fir firfit+ flanger gain highpass hilbert input# loudness 
lowpass mcompand mixer* noiseprof noisered norm oops output# overdrive pad 
phaser pitch rate remix repeat reverb reverse riaa silence sinc spectrogram 
speed splice stat stats stretch swap synth tempo treble tremolo trim upsample 
vad vol
  * Deprecated effect    + Experimental effect    # LibSoX-only effect
EFFECT OPTIONS (effopts): effect dependent; see --help-effect
                                          
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel

Reply via email to