C compiler cannot create executable files - Cygwin / MiniGW

I am trying to compile Pyaudio , (the Python module) from the source, since I use Windows and only 32-bit binaries are available - I need 64. After these instructions, I downloaded Cygwin and installed each component to be safe. First you need to install Portaudio, another module.

When I run CFLAGS="-mno-cygwin" LDFLAGS="-mno-cygwin" ./configure , I get the configure: error: C compiler cannot create executables. See 'config.log' for more details. error message configure: error: C compiler cannot create executables. See 'config.log' for more details. configure: error: C compiler cannot create executables. See 'config.log' for more details. config.log has an extra line below this message: gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-compiler. gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-compiler.

This makes me think that perhaps Cygwin is using the wrong compiler; The instructions are for using MinGw with Cygwin, but I never specified minigw in this process. I also wonder if there is anything in the PyAudio build files that needs to be changed for 64-bit. I know nothing about C, compilation, Cygwin or MinGW, and a beginner in programming in general. Any ideas? Any other information I can provide?

+6
source share
2 answers

Current versions of Cygwin gcc no longer support -mno-cygwin because they never worked correctly. Instead, you should use the correct cross-compiler provided by the mingw64-i686-gcc packages, and then run ./configure --host=i686-w64-mingw32 .

+10
source

In some cases, it is an antivirus that causes problems. I had avast and had to disable it.

0
source

Source: https://habr.com/ru/post/947743/


All Articles