Tobias, Awesome blog post! Solved my issue in here! Thanks!
Em domingo, 5 de fevereiro de 2023 às 21:26:31 UTC-3, Tobias Wellnitz escreveu: > Alberto, > > I'm using Docker for cross-compiling my cgo apps. One project of mine ( > remoteAudio <https://github.com/dh1tw/remoteAudio>) requires portaudio > (and a couple of other C libraries like pkgconfig and libopus). > > You can find the cross-compilation chain at > github.com/dh1tw/remoteAudio-xcompile. For Windows, have a look at the > windows-amd64 > <https://github.com/dh1tw/remoteAudio-xcompile/blob/master/windows-amd64/Dockerfile> > > folder. > > I have also written a companion blog post about cross compiling CGO > projects <https://dh1tw.de/2019/12/cross-compiling-golang-cgo-projects/>. > > Best regards, > Tobias > > Am So., 5. Feb. 2023 um 01:13 Uhr schrieb alberto sansegundo < > albertosan...@gmail.com>: > >> Hello, im now facing this same problem, did you managed to solve it? >> >> El lunes, 7 de noviembre de 2016 a las 18:16:37 UTC+1, d.sh...@gmail.com >> escribió: >> >>> Hi all. >>> >>> I've tried to get access to Windows audio from Go program but failed. >>> That I did below: >>> 1. Downloaded and built Portaudio (it's open audio I/O library >>> http://portaudio.com/). So I've built that with Visual Studio and got >>> .dll file. >>> 2. Downloaded Go wrapper for Portaudio - ( >>> github.com/gordonklaus/portaudio ) >>> 3. Made simple Go file with an example from wrapper above to test. >>> 4. Go build. >>> >>> So Go couldn't build that. As far as I understand that's tried to build >>> the portaudio from source with cgo. I've installed MinGW (gcc for Windows) >>> and pkg-config but last one can't find portaudio-2.0.pc file. Once I've >>> renamed portaudio-2.0.pc.in to portaudio-2.0.pc however it shows gcc >>> error: "gcc: error: @THREAD_CFLAGS@: No such file or directory". So I think >>> it was stupid idea. >>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "golang-nuts" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to golang-nuts...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/golang-nuts/8c77da1b-2a5c-4222-bb04-d84347c1a4e0n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/golang-nuts/8c77da1b-2a5c-4222-bb04-d84347c1a4e0n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/f4cc3ce3-0b3e-4942-b871-7011a415e5acn%40googlegroups.com.