-
Notifications
You must be signed in to change notification settings - Fork 21
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
Error compiling using mingw #131
Comments
I was getting the same error, though I've had some success with
taken from here but now I am getting the errors below:
|
After going on a hunt to find the required packages I found the needed files here. After placing the package in the appropriate location I managed to compile my app. As a small sidenote: |
How did you install the corresponding packages? I didn't have any problem with libadwaita after extracting the .tar.zst file in /usr/x86_64-w64-mingw32/ But with gobject-introspection it was not the case...
So I decided to do this: find /usr/x86_64-w64-mingw32/ -name "gobject-introspection-1.0.pc"
# /usr/x86_64-w64-mingw32/lib/pkgconfig/gobject-introspection-1.0.pc
ln /usr/x86_64-w64-mingw32/lib/pkgconfig/gobject-introspection-1.0.pc /usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig But I get this error
But I fixed it by modifying the file Changing these lines from this: I just want to know how safe it is to do that, or if the program will even work? Or if I downloaded a wrong package that's why I had to do all the extra processing? I leave this to leave more or less documented the process of how to get to this... in theory you just have to download and extract these 3 packages in And install these packages through dnf
Right now I already have a docker image to be able to automate it so... it would already be |
Why not use MSYS2? |
MSYS2 compiles for Windows on Windows, mingw32 compiles for Windows on Linux. Running a separate machine/VM with windows, specially in a CI environment, is extra hassle which can be avoided by just cross-compiling. |
Oh, interesting. That's a use case that I've never considered, unfortunately. |
Usually cgo usually compiles correctly with these environment variables
But when I compile the program I get this
I get almost the same error with gcc
First I thought it was something about missing mingw-gtk dependencies, but in a docker container with those dependencies I get the same error.
I get the same error as this issue but the difference is that I am on a 64 bit architecture.
The text was updated successfully, but these errors were encountered: