c - Struggling to get PortAudio to Work with MinGW -
i have mingw install working fine msys. installed , functioning well.
i installed portaudio library , did install , got success message after:
./configure make make install
when try compile samples:
c:\c>gcc patest_mono.c -o pa.exe patest_mono.c:50:23: fatal error: portaudio.h: no such file or directory #include "portaudio.h" ^ compilation terminated.
i'm new. have feeling might doing fundamentally wrong way i'm trying create exe compiling. it's been of puzzle quest far, i've tried figure out , think close missing something.
path variable ?
in portaudio mingw build instructions noticed
"the above should create working version though might want provide '–prefix=<path-to-install-dir>' configure. "
i've tried adding c:\mingw\portaudio user path. doesn't work.
i've tried running commands in bash , come error message "no rule make target 'paexpink'" either make command, , gcc .c -o .exe same error message compiling straight cmd prompt.
i found source on stack overflow thread no answers, user had commented http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio provided them solution tried installing 5 cpython binaries , under assumption did right, didn't work either.
thanks help, julian
to build , install portaudio, need add -prefix=/c/<"path base of mingw directory"> ./configure line.
for example: ./configure -prefix=/c/mingw/
then continue installation doing
make
after that, the
make install
and should install portaudio files mingw.
after has finished installing, need add -lportaudio compile command whenever compile programs want use portaudio in.
for example: gcc -o test test.c -lportaudio
i figured out how today, may have accidentally forgotten few steps.
Comments
Post a Comment