-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Compilation how to ? #167
Comments
Hello, I haven't tried to compile the program on an actual Windows machine myself, so it's a bit difficult for me to troubleshoot this. Also, I am not familiar with 'scoop'. I know that MSYS2 used to work pretty well for building Unix-y programs on Windows, but I haven't personally tested it with Wolf Shaper. Right now, to build the official Windows binaries, I use MinGW on a Linux Machine. Based on the output that you sent, it seems like the shell commands in the Makefile are not behaving correctly. Perhaps the Makefile is using Windows CMD instead of a Unix shell? Also, instead of building Wolf Shaper with the GNU Makefile, have you tried using CMake? At least, I know it is possible to compile Wolf Shaper with Visual Studio 2019 (MSVC) and CMake. If you need an example, I have configured a workflow which builds the plugin with Visual Studio and CMake at every commit: wolf-shaper/.github/workflows/msvc.yml Lines 30 to 39 in 1587905
|
Scoop is a package manager that allows you to install several mostly open source packages in a windows system. |
Yes, running
Generally, the steps are similar for most CMake-based projects. Here is one way to do it (these commands should be executed at the root of the wolf-shaper repository):
The first command tells CMake to create its build files into a directory called The second command tells CMake to execute the build files that it created in the first step.
Do you plan on modifying and/or reusing Wolf Shaper's source code? If so, I think I would recommend using an IDE such as Visual Studio Community instead. Visual Studio has built-in support for CMake, and I assume it can provide a nice development experience overall (auto-completion, code analysis, debugger, etc). If you need more help with this, I can probably setup a Windows machine and write some sort of guide on how to build Wolf Shaper on Windows. At least, I think you're one of the first to try it, so I don't have any clear instructions at the present time :) |
Turns out it is pretty simple if you know your way around a few things. First I tried compiling with MSYS2 but it turned out to be a little more complicated than I expected. So I just tried your cmake commands and that was it. So in my experience all you have to do is install 3 packages with your preferred package manager (in my case scoop): and then run your cmake commands
and that's it, you don't really anything else In my opinion adding some guidelines for Windows (or cmake?) compilation in the readme file would be a very good start. For now I think will stick using VSCodium which seem to have all the necessary extensions for C and C++ programming since VisualStudio has given me headaches in the past. As for your question, I would like to contribute some code eventually but since I haven't really 'dug' into the code yet I don't really know how close am I to that. Anyway thanks for all the help and guidance :) |
Awesome!
Yes, I agree :)
Here is a bit of information that might be useful:
Right now, here are some of the issues that annoy me the most about the plugin:
These are the first issues that come to my mind. Of course, if you have some ideas for interesting features, feel free to suggest them :) |
Another feature that would be very nice in my opinion: #47 This feature would tackle a lot of existing issues at once, and it wouldn't involve complicated DSP :) |
I have installed gcc, make and cmake via scoop package manager but when I am running make I get the following output
Any ideas on how I could do that ?
Thanks in advance
The text was updated successfully, but these errors were encountered: