diamondburned / dissent

Tiny native Discord app
https://flathub.org/apps/details/so.libdb.dissent
GNU General Public License v3.0
1.27k stars 40 forks source link

Windows version #12

Closed Detector-I closed 2 years ago

Detector-I commented 2 years ago

Hi, any plan for windows version? or is it possible at all?

diamondburned commented 2 years ago

It is possible; gtkcord4 should work out of the box on Windows, macOS and Linux. You will need to build it yourself on both Windows and macOS, however. I only provide prebuilt binaries for Linux x86_64 and aarch64.

diamondburned commented 2 years ago

I closed the issue because it's question answered, but others are free to use this issue to discuss how to set up a Windows compiling environment. I personally prefer using msys.

Detector-I commented 2 years ago

I closed the issue because it's question answered, but others are free to use this issue to discuss how to set up a Windows compiling environment. I personally prefer using msys.

thank you for answer, in install it give me this error

# pkg-config --cflags  -- glib-2.0 gobject-introspection-1.0
Can't find gobject-introspection-1.0.pc in any of G:/gnome/lib/pkgconfig C:/Strawberry/c/lib/pkgconfig
use the PKG_CONFIG_PATH environment variable, or
specify extra search paths via 'search_paths'
pkg-config: exit status 1

should I build the gobject-introspection too? and also, does using it totally safe?

diamondburned commented 2 years ago

should I build the gobject-introspection too?

You install it using msys' package manager (pacman).

and also, does using it totally safe?

Who knows, and I'm in no position to claim that it is. Use it at your own risk.

Detector-I commented 2 years ago

should I build the gobject-introspection too?

You install it using msys' package manager (pacman).

and also, does using it totally safe?

Who knows, and I'm in no position to claim that it is. Use it at your own risk.

well I did use msys2, and used pacman to install gtk4... but now in build it give me

G:\msys64\mingw64\lib\go\pkg\tool\windows_amd64\link.exe: running gcc failed: fork/exec G:\msys64\mingw64\bin\gcc.exe: The filename or extension is too long.

not sure how can I fix it...

diamondburned commented 2 years ago

Try https://github.com/diamondburned/gotk4/issues/64#issuecomment-1104889379.

Detector-I commented 2 years ago

Try diamondburned/gotk4#64 (comment).

ok managed to build it (I had to change temp directory in env variable settings to get it to work) but now looks like it can't find the needed styles... what should I do now? image

diamondburned commented 2 years ago

That is not "needed." The program is working as intended.

Detector-I commented 2 years ago

That is not "needed." The program is working as intended.

I know the program work without style, but screen shot in readme looks way better, so Im trying to get that...

diamondburned commented 2 years ago

I know the program work without style, but screen shot in readme looks way better, so Im trying to get that...

The screenshot uses the Materia theme, which is a system-wide theme. You'll need to download that separately.

user.css is mostly for user customizations.

Katzenwerfer commented 2 years ago

Hi, I'm trying to build the program using MSYS2 on Windows 11. I'm pretty sure I got all the packages installed and stuff, but when I run go install it throws me various #error Only Win32 target is supported! errors. Anyone knows what could be the cause of that?

brian6932 commented 2 years ago

@diamondburned I tried building for Windows, and despite having all requirements, I ran into an error where the include files were not found, do you know why this would happen? image

diamondburned commented 2 years ago

I'm not sure. I've only really tested this on Windows 10 MSYS2.

brian6932 commented 2 years ago

@diamondburned I am using msys2 on Windows 10 for my pkg-config image

brian6932 commented 2 years ago

Ok I managed to get the paths included, I had to set CGO_CFLAGS manually, because go was not converting the unix msys2 pkg-config paths to Windows ones, Also works when launching in an MSYS env instead. However, I have ran into a new issue: cc1: all warnings being treated as errors I tried to set -Wno-error, but that does not work, is there any way to fix this @diamondburned ?