#Need help setting up fyne for my project

28 messages · Page 1 of 1 (latest)

spiral apex
#

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?

iron smelt
#

just run go mod tidy

spiral apex
#

Just did, now getting this error:

ruby stirrup
#

Do you have the a C compiler and cgo enabled?

spiral apex
#

How do i check if its enabled?

ruby stirrup
#

Try do CGO_ENABLED=1 go run main.go

spiral apex
#

it throws an commandNotFoundException

ruby stirrup
#

Oh wait you're on windows

spiral apex
#

yes i am on windows

ruby stirrup
#

Uh, i think

set CGO_ENABLED=1
go run main.go

though i dont' remember

faint prairie
#

$env:CGO_ENABLED = 1

#

set is for cmd only 🙂

ruby stirrup
#

powershell gophercrying

spiral apex
#

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

ruby stirrup
#

Yeah, you gotta

spiral apex
#

any recommendations or it doesnt matter which one i pick?

faint prairie
#

TDM-GCC works for me on windows

spiral apex
#

alr will pick that then

ruby stirrup
spiral apex
#

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

iron smelt
#

semi related - isn't there some pure go UI libs? all that cgo stuff is a pain

fair ruin
#

It also only works on Linux