[Clam-devel] Windows MinGW cross compile/Crosscompiling portaudio errors

David García Garzón dgarcia at iua.upf.edu
Mon Dec 10 12:58:42 PST 2007


Most of the macros you say are not in the portaudio version i compiled. It 
should be some newly added code in portaudio. You could try with the older 
snapshot.

This is the current: 
http://www.portaudio.com/archives/pa_stable_v19_20071207.tar.gz
I think that this one is the one i used: 
http://www.portaudio.com/archives/pa_stable_v19_061121.tar.gz
(_snapshot seems to be an alias :-P )

But anyway KSDATAFORMAT_SUBTYPE_IEEE_FLOAT is one macro that i solved. So 
maybe there is an step you skipped or an step i did not write down on the 
wiki. My SConctruct is identical to the one on the wiki. Maybe some 
installation of some library.

I also saw in portaudio mailing list this line that seems to do the magic:
$ ./configure --host=i586-mingw32msvc --build=i686-pc-linux-gnu  --prefix=/usr/local/i586-mingw32msvc --enable-cxx
$ scons

It worked for me. Try it and, if they solve the problem just change the wiki.

David.




On Monday 10 December 2007 20:48:31 Pol Pros wrote:
> Hi David, Pau,
>
> - I create SConstruct.crossmingw
>
> - I verify that in the file
> portaudio/src/hostapi/dsound/pa_win_ds_dynlink.h appears this line:
> #include
>
> - And when I execute scons -f SConstruct.crossmingw I obtain the following
> erors:
>
> $ scons -f SConstruct.crossmingw
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> i586-mingw32msvc-gcc -o src/os/win/pa_win_wdmks_utils.o -c -DBUILDING_DLL=1
> -I/home/pol/pfc/testfarm/asiosdk2 -I/home/pol/pfc/testfarm/asiosdk2/common
> -I/home/pol/pfc/testfarm/asiosdk2/host
> -I/home/pol/pfc/testfarm/asiosdk2/host/pc
> -I/home/pol/pfc/testfarm/directx/include -Isrc/common -Isrc/os/win
> -Iinclude src/os/win/pa_win_wdmks_utils.c ...
>        (some warnings)
> ...
> src/os/win/pa_win_wdmks_utils.c: In function `WdmGetPinPropertySimple':
> src/os/win/pa_win_wdmks_utils.c:64: error: `FILE_DEVICE_KS' undeclared
> (first use in this function) src/os/win/pa_win_wdmks_utils.c:64: error:
> (Each undeclared identifier is reported only once
> src/os/win/pa_win_wdmks_utils.c:64: error: for each function it appears
> in.) src/os/win/pa_win_wdmks_utils.c:64: error: `METHOD_NEITHER' undeclared
> (first use in this function) src/os/win/pa_win_wdmks_utils.c:64: error:
> `FILE_ANY_ACCESS' undeclared (first use in this function)
> src/os/win/pa_win_wdmks_utils.c: In function `WdmGetPinPropertyMulti':
> src/os/win/pa_win_wdmks_utils.c:94: error: `FILE_DEVICE_KS' undeclared
> (first use in this function) src/os/win/pa_win_wdmks_utils.c:94: error:
> `METHOD_NEITHER' undeclared (first use in this function)
> src/os/win/pa_win_wdmks_utils.c:94: error: `FILE_ANY_ACCESS' undeclared
> (first use in this function) src/os/win/pa_win_wdmks_utils.c: In function
> `PaWin_WDMKS_QueryFilterMaximumChannelCount':
> src/os/win/pa_win_wdmks_utils.c:223: error:
> `KSDATAFORMAT_SUBTYPE_IEEE_FLOAT' undeclared (first use in this function)
> scons: *** [src/os/win/pa_win_wdmks_utils.o] Error 1
> scons: building terminated because of errors.
>
> Any idea?
> _________________________________________________________________
> Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar
> a la última
> http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance
>&Brand=WL&RU=http%3a%2f%2fmail.live.com
> _______________________________________________
> Clam-devel mailing list
> Clam-devel at llistes.projectes.lafarga.org
> https://llistes.projectes.lafarga.org/cgi-bin/mailman/listinfo/clam-devel






More information about the clam-devel mailing list