diamondburned / gotktrix

Matrix client in Go and GTK4
GNU Affero General Public License v3.0
312 stars 6 forks source link

Add precompiled releases/Error while compiling from source #20

Open wwhtrbbtt opened 2 years ago

wwhtrbbtt commented 2 years ago

Hi there!

I like this project, and I think you should really add precompiled releases. I want to try it out, but I cant figure out how I can compile it.

My error: (MacOS 12.0 Monterey)

$ sudo go build
# pkg-config --cflags  -- graphene-gobject-1.0 graphene-1.0
Package graphene-gobject-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `graphene-gobject-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'graphene-gobject-1.0' found
Package graphene-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `graphene-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'graphene-1.0' found
pkg-config: exit status 1
# pkg-config --cflags  -- pango
Package pango was not found in the pkg-config search path.
Perhaps you should add the directory containing `pango.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pango' found
pkg-config: exit status 1
diamondburned commented 2 years ago

This error implies that you're missing the dependencies required to use the program. You'll need to install them even if you have a prebuilt binary.

As for actually having a prebuilt binary, the output that I'll produce will likely not work out of the box on most distros, because dynamic linking is tedious to do.

diamondburned commented 2 years ago

I'm also not sure how a cross-compiler to macOS will be done. I might have to poke around and see whether or not Nixpkgs has a cross-compiling environment for that or if I should just see if I can find a macOS CI.

Manfred commented 2 years ago

In case anyone else is interested. The easiest way to build on macOS is to install Homebrew and then install gtk4 through Homebrew.

brew intall gtk4

After that you can build from a working directory of the Git repostory.

go build