Skip to content
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

Version for Mac #2

Open
vladimirschuka opened this issue Aug 22, 2021 · 1 comment
Open

Version for Mac #2

vladimirschuka opened this issue Aug 22, 2021 · 1 comment

Comments

@vladimirschuka
Copy link

Hi, today I have tried this project on Mac OS 11.5.2 (with m1), everything works only with minor changes:
I add to source_facility.go cgo rows which help to find headers:

// #cgo pkg-config: gio-2.0 glib-2.0 gobject-2.0
// #cgo pkg-config: gtk+-3.0 gtksourceview-4
// #cgo CFLAGS: -Wno-deprecated-declarations 

and of cource in all files where necessary I added:
// +build linux darwin

And I could to compile the example. this is an a result:
Screenshot 2021-08-23 at 00 18 01

Maybe we could do those changes to the main branch?

@hfmrow
Copy link
Owner

hfmrow commented Aug 22, 2021

Hi.
Yes, you can do a pull request with your changes.
Glad to have feedback from an os-x user and to know that my efforts are working well (with some adjustments) for this OS.

Thank you for your expertise.

edit1: About adding below, is it really necessary? because some Windows users might want to install gtk3 and use GtkSourceView ...

and of cource in all files where necessary I added:
// +build linux darwin

edit2: I've made your modifications in local (except // +build linux darwin for previously explained reasons) and all work like before under linux OS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants