GithubHelp home page GithubHelp logo

undefined about imgui-go HOT 7 CLOSED

inkyblackness avatar inkyblackness commented on May 18, 2024
undefined

from imgui-go.

Comments (7)

dertseha avatar dertseha commented on May 18, 2024

Hello @FrankIT60 !
That's interesting. Can you run the imgui-go-examples? I wonder whether it has something to do with dependencies or direct getting...

from imgui-go.

FrankIT60 avatar FrankIT60 commented on May 18, 2024

Hello,

this is

MacBook-Pro-di-Franco:example_glfw_opengl2 francom$ go run main.go -tags 'glfw'
go: downloading github.com/inkyblackness/imgui-go/v2 v2.0.1
go: downloading github.com/go-gl/gl v0.0.0-20181026044259-55b76b7df9d2
go: extracting github.com/inkyblackness/imgui-go/v2 v2.0.1
go: extracting github.com/go-gl/gl v0.0.0-20181026044259-55b76b7df9d2
go: finding github.com/inkyblackness/imgui-go/v2 v2.0.1
go: finding github.com/go-gl/gl v0.0.0-20181026044259-55b76b7df9d2
# command-line-arguments
./main.go:21:19: undefined: platforms.NewGLFW
./main.go:21:41: undefined: platforms.GLFWClientAPIOpenGL2
MacBook-Pro-di-Franco:example_glfw_opengl2 francom$ cd ../example_glfw_opengl3
MacBook-Pro-di-Franco:example_glfw_opengl3 francom$ go run main.go -tags 'glfw'
# command-line-arguments
./main.go:21:19: undefined: platforms.NewGLFW
./main.go:21:41: undefined: platforms.GLFWClientAPIOpenGL3
MacBook-Pro-di-Franco:example_glfw_opengl3 francom$ cd ../example_sdl_opengl2
MacBook-Pro-di-Franco:example_sdl_opengl2 francom$ go run main.go -tags 'sdl'
# command-line-arguments
./main.go:21:19: undefined: platforms.NewSDL
./main.go:21:40: undefined: platforms.SDLClientAPIOpenGL2
MacBook-Pro-di-Franco:example_sdl_opengl2 francom$ cd ../example_sdl_opengl3
MacBook-Pro-di-Franco:example_sdl_opengl3 francom$ go run main.go -tags 'sdl'
# command-line-arguments
./main.go:21:19: undefined: platforms.NewSDL
./main.go:21:40: undefined: platforms.SDLClientAPIOpenGL3

from imgui-go.

supudo avatar supudo commented on May 18, 2024

Hi,

Seems like one of my commits #69 is the culprit. Instead of passing 0 as default flags, I did refer by their const name - so, instead of default flag 0, it's using HoveredFlagsNone.
@dertseha do you want me to create new PR for the fix or commit it in #79?

from imgui-go.

dertseha avatar dertseha commented on May 18, 2024

@supudo - oi! thank you for the investigation, I did not see that.
I fixed the constants online, please try again, @FrankIT60 .

As this fell through manual checks, I think I'll add build automation, so that such things can't happen again :)

from imgui-go.

FrankIT60 avatar FrankIT60 commented on May 18, 2024

the same

drwxr-xr-x    4 francom  staff   128 22 Gen 13:40 .
drwxr-xr-x  150 francom  staff  4800 22 Gen 13:40 ..
drwxr-xr-x   94 francom  staff  3008 22 Gen 13:40 imgui-go
drwxr-xr-x   13 francom  staff   416 22 Gen 13:40 imgui-go-examples
MacBook-Pro-di-Franco:inkyblackness francom$ 
MacBook-Pro-di-Franco:inkyblackness francom$ 
MacBook-Pro-di-Franco:inkyblackness francom$ rm -r imgui-go
override r--r--r--  francom/staff for imgui-go/.git/objects/pack/pack-dccf5ccbb27834e8b0d4644ffdb52dab2650363d.idx? y
override r--r--r--  francom/staff for imgui-go/.git/objects/pack/pack-dccf5ccbb27834e8b0d4644ffdb52dab2650363d.pack? y
MacBook-Pro-di-Franco:inkyblackness francom$ go get -u github.com/inkyblackness/imgui-go
MacBook-Pro-di-Franco:inkyblackness francom$ cd imgui-go-examples/cmd/example_glfw_opengl2
MacBook-Pro-di-Franco:example_glfw_opengl2 francom$  go run main.go -tags 'glfw'
# command-line-arguments
./main.go:21:19: undefined: platforms.NewGLFW
./main.go:21:41: undefined: platforms.GLFWClientAPIOpenGL2

from imgui-go.

dertseha avatar dertseha commented on May 18, 2024

OK, I got to my development machine again.

First of all, master of imgui-go compiles again - so, that is fixed. Thank you for noticing!

As for your not working imgui-go-examples: The -tags 'glfw' have to be specified before the .go file to take effect. After the main file, they are considered as arguments to the run application, not the go tool. So, run the examples with a line such as:

go run -tags 'glfw' main.go

from imgui-go.

FrankIT60 avatar FrankIT60 commented on May 18, 2024

Now it's ok. Thanks. I am amazed!!!!

from imgui-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.