-
Notifications
You must be signed in to change notification settings - Fork 241
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
build cava using the MinGW compiler #482
Comments
looks like some general difference between linking on linux and MinGW. this maybe related: |
Yes, I checked that link - there they seem to be using the |
For those who want a crack at this, here's what I did in an MSYS2 MINGW64 shell: First install dependencies: pacman -S mingw-w64-x86_64-{autotools,gcc,fftw,ncurses} libtool m4 make Then install iniparser: cd ~
git clone https://github.com/ndevilla/iniparser
cd iniparser
make
cp libiniparser.a /mingw64/lib/ Then build cava: cd ~
git clone https://github.com/karlstav/cava
cd cava
git apply ~/fix.patch # the above diff-patch
./autogen.sh
./configure
make |
had to do
to find ffiw, could not find ncurses, even though it was installed. maybe some bug in my mingw setup. also had to remove this thing:
why would you add that? got linking errors, but different:
|
You are using the MSYS2 shell (which will build a Cygwin/MSys2 executable). (Compare the path of You need to use the MINGW64 shell (which will build a Win32 native executable). My changes are w.r.t. the MINGW64 build. |
hmm don't understand. where and how do i install and run the mingw 64 shell? |
When you installed MSYS2, it should have created multiple shortcuts for launching shells - all pertaining to different build systems - MINGW64, MINGW32, CLANG, UCRT, MSYS2 etc. The MINGW64 is the one we need. |
it is the one I am running. it says MINGW64 on the prompt:
|
Could you run this command and try again? pacman -Rcns autotools gcc ncurses binutils |
The
|
But I face a huge wall of errors when running
make
. I don't think they're syntax/semantic errors, they're just redefinition errors:How should I fix this?
Originally posted by @rashil2000 in #479 (comment)
The text was updated successfully, but these errors were encountered: