Hi there, i am new to Go, and i would like to configure fyne to my project, since i saw that it has some nice GUI elements that i would like to use for my project. I looked through the tutorials online saying i should use "go get" but in the terminal its saying its deprecated i should use "go install". I am using go 1.23. Can someone tell me step by step how i get it to work?
#Need help setting up fyne for my project
28 messages · Page 1 of 1 (latest)
just run go mod tidy
Just did, now getting this error:
Do you have the a C compiler and cgo enabled?
How do i check if its enabled?
Try do CGO_ENABLED=1 go run main.go
it throws an commandNotFoundException
Oh wait you're on windows
yes i am on windows
Uh, i think
set CGO_ENABLED=1
go run main.go
though i dont' remember
Btw did you follow all the steps in?
https://docs.fyne.io/started/ ?
powershell 
guess i have to install a c compiler first it seems, was following an external tutorial, they didnt mention that i have to get a c compiler for it
Yeah, you gotta
any recommendations or it doesnt matter which one i pick?
TDM-GCC works for me on windows
Btw there's a fyne discord if you'd like more help https://discord.gg/vvBuDfD5gP
good to know, joined that discord aswell
thanks. lets see after the installation what i need to install
so i runned the fyne setup tool and it worked. not my code so far. Might start a complete new project for the time being
semi related - isn't there some pure go UI libs? all that cgo stuff is a pain
I mean, there’s puregotk, which is still C, but it bypasses CGo and doesn’t need a C compiler
It also only works on Linux