Comments (17)
from go-gerber.
Hi @niffnuff - I apologize for the problems you had...
Let me dig into this and see what I can find out, then I'll report back here.
from go-gerber.
OK, on my first try on Linux, it all worked, which unfortunately doesn't help you much:
glenn@glenn-OMEN-875 ~/go/src/github.com/gmlewis/go-gerber/examples/bifilar-with-capacitor (master) $ go version
go version go1.19.3 linux/amd64
glenn@glenn-OMEN-875 ~/go/src/github.com/gmlewis/go-gerber/examples/bifilar-with-capacitor (master) $ go run main.go
Done.
Now I'll try to run VirtualBox and boot Windows 11 10 and see if I can get it to work, and report back.
from go-gerber.
I have a temporary workaround for you... if you remove all the code relating to the -view
flag, then it should work fine for you, like this:
from go-gerber.
from go-gerber.
Hehe... probably not... I just haven't tested it on Windows.
My first attempt failed because I don't have GCC:
$ go run main.go
go: downloading github.com/gmlewis/go-fonts v0.0.7
go: downloading fyne.io/fyne v1.4.2
go: downloading github.com/fsnotify/fsnotify v1.4.9
go: downloading golang.org/x/sys v0.0.0-20200720211630-cb9d2d5c5666
go: downloading golang.org/x/image v0.0.0-20200430140353-33d19683fad8
go: downloading github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200625191551-73d3c3675aa3
go: downloading github.com/goki/freetype v0.0.0-20181231101311-fa8a33aabaff
go: downloading github.com/srwiley/oksvg v0.0.0-20200311192757-870daf9aa564
go: downloading github.com/srwiley/rasterx v0.0.0-20200120212402-85cb7272f5e9
go: downloading github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7
go: downloading golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
go: downloading golang.org/x/text v0.3.2
# github.com/go-gl/gl/v3.2-core/gl
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%
# github.com/go-gl/glfw/v3.3/glfw
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%
So now I'm trying to install GCC from here: https://jmeubank.github.io/tdm-gcc/
from go-gerber.
OK, well maybe you could try TDM-GCC too... once I installed that, then closed my Git Bash Shell and opened a new one, everything worked with no code edits:
Good luck! I hope it works for you!
from go-gerber.
However, if I then add the -view
flag, it dies again. 😞
zapat@DESKTOP-TCVPDH4 MINGW64 ~/go/src/github.com/gmlewis/go-gerber/examples/bifilar-with-capacitor (master)
$ go run main.go -view
Done.
2022/11/23 16:42:13 Fyne error: window creation error
2022/11/23 16:42:13 Cause: APIUnavailable: WGL: The driver does not appear to support OpenGL
2022/11/23 16:42:13 At: C:/Users/zapat/go/pkg/mod/fyne.io/[email protected]/internal/driver/glfw/window.go:1220
I'll see what I can figure out.
from go-gerber.
from go-gerber.
I just pushed a commit which upgrades from fyne v1
to fyne/v2
and that seems to solve the problems on Windows:
Please do a git pull
on the repo and try again with the latest version.
from go-gerber.
from go-gerber.
from go-gerber.
Hmm, yes, something definitely appears to be wrong... I'll investigate more tomorrow. Sorry for the troubles.
And please try to refrain from the f-bombs in this public forum, as we also attempt to be kid-friendly here for new young learners of Go. Thanks for your understanding.
from go-gerber.
from go-gerber.
OK, I just checked the results of the output in 3 locations:
Location 1: my workstation running Linux Mint 20.3 Cinnamon and Go 1.19.3:
glenn@glenn-OMEN-875 ~/go/src/github.com/gmlewis/go-gerber/examples/bifilar-with-capacitor (master) $ sha256sum big*
51976445e578950cd8342246a3990375b6bf0c4e777ded288be75d63400068da big-bifilar-cap2.drl
85b0d0816a883e602d254b2e894f137173af0eb017c704f072162e2a094250f3 big-bifilar-cap2.gbl
b93e84a8018eed3d7f7124f6ec9a6b5a869618a3a98f2c2558dfc6fc5128c7f7 big-bifilar-cap2.gbo
a43380c9e0d764b944e71dcad99f0ecdb77e2f257acf7cc81d44e4739994a680 big-bifilar-cap2.gbs
794eaae10683db7c799e417404b69cdd1cc1c10c7b13e1053a9c844c62f1aea8 big-bifilar-cap2.gko
8734a9f068f1c7671bc0f3c321cf4a22e9742434c7cbc71b27c0b4e7d5d1ca63 big-bifilar-cap2.gtl
454a6a7b0464d83c4cd1ee7b5bec244129096dde94e25e1aefb58c63f40854ef big-bifilar-cap2.gto
a43380c9e0d764b944e71dcad99f0ecdb77e2f257acf7cc81d44e4739994a680 big-bifilar-cap2.gts
6498809781f448aa38fd8cd18499ee3d3cba0098ff05514251ee65b688f40813 big-bifilar-cap2.zip
f54068c4edfb744f87a1e7b06eff647d46af17cd9b6418b8dffb01cae12352bb big-bifilar-cap-layers.gif
Location 2: my workstation running Windows 10 with Go 1.19.3 and TDM-GCC:
zapat@DESKTOP-TCVPDH4 MINGW64 ~/go/src/github.com/gmlewis/go-gerber/examples/bifilar-with-capacitor (master)
$ sha256sum big*
f54068c4edfb744f87a1e7b06eff647d46af17cd9b6418b8dffb01cae12352bb *big-bifilar-cap-layers.gif
51976445e578950cd8342246a3990375b6bf0c4e777ded288be75d63400068da *big-bifilar-cap2.drl
85b0d0816a883e602d254b2e894f137173af0eb017c704f072162e2a094250f3 *big-bifilar-cap2.gbl
b93e84a8018eed3d7f7124f6ec9a6b5a869618a3a98f2c2558dfc6fc5128c7f7 *big-bifilar-cap2.gbo
a43380c9e0d764b944e71dcad99f0ecdb77e2f257acf7cc81d44e4739994a680 *big-bifilar-cap2.gbs
794eaae10683db7c799e417404b69cdd1cc1c10c7b13e1053a9c844c62f1aea8 *big-bifilar-cap2.gko
8734a9f068f1c7671bc0f3c321cf4a22e9742434c7cbc71b27c0b4e7d5d1ca63 *big-bifilar-cap2.gtl
454a6a7b0464d83c4cd1ee7b5bec244129096dde94e25e1aefb58c63f40854ef *big-bifilar-cap2.gto
a43380c9e0d764b944e71dcad99f0ecdb77e2f257acf7cc81d44e4739994a680 *big-bifilar-cap2.gts
6498809781f448aa38fd8cd18499ee3d3cba0098ff05514251ee65b688f40813 *big-bifilar-cap2.zip
and Location 3: your machine running Windows:
glenn@glenn-OMEN-875 /tmp/bifilar $ shasum big*
799e958ebc892b59cdb15e393e2d6d0b45843cc7 big-bifilar-cap2.drl
c57c2281c1a7481d73415a94aed4b492222018ca big-bifilar-cap2.gbl
a52cd672bacbb7b0e5a502cd9a5214551a33bae6 big-bifilar-cap2.gbo
ee9e05ecd351d2e9ab19522531143ff81367cfc7 big-bifilar-cap2.gko
8e5109b88bdff961d014e004c15649f03fe4c174 big-bifilar-cap2.gtl
2bc5148c0f2512250c7254e16a745462c7e19bf6 big-bifilar-cap2.gto
0b805179d9d34cb86e5b682279e7960643da2a85 big-bifilar-cap2.gts
The first two are identical, and yours is definitely different, and I have no idea why...
What version of Go are you running (go version
) ?
from go-gerber.
from go-gerber.
Bummer. I'm stumped. I'll leave this issue open in the hopes that someone else is able to help with a solution, but I'm not sure what else to try. Sorry. 😔
from go-gerber.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-gerber.