FlexASIO icon indicating copy to clipboard operation
FlexASIO copied to clipboard

Using Mingw compiler to build and install

Open akankshaaK opened this issue 5 years ago • 1 comments

As i was facing problems with visual studio and wdk compatibility , I am using mingw compiler to build and generate ninja files. I have created build.ninja , cmake_install.cmake and other files created at the build time.

Can you please tell the command to install the project. I have used ninja install but it is giving errors that "ninja: build stopped: subcommand failed." is happening.

akankshaaK avatar Jul 03 '19 17:07 akankshaaK

Once again, if you don't include your output log for context, there's no way anyone can help you. "subcommand failed" is not helpful - I need the actual command that failed, which is somewhere above the "subcommand failed" line.

Also: currently, FlexASIO does not support MinGW as a build environment. There are a few things in the build system that assume you're using MSVC. For example it will attempt to use MSVC cl.exe compiler options, but MinGW's GCC expects completely different options. AFAIK, environment setup (e.g. architecture selection) is not done in the same way. I also doubt the midl command in src\flexasio\FlexASIO will work as is. Dependencies might cause problems too.

If you want to try to adapt the build system to work with MinGW, by all means, be my guest. I'm not sure how easy that would be, though.

dechamps avatar Jul 03 '19 22:07 dechamps