Giter VIP home page Giter VIP logo

Comments (18)

proffalken avatar proffalken commented on July 18, 2024 2

@sagar-patel-sls the instructions for Ubuntu are the same as for any linux solution:

  1. Make sure that Golang and any other dependencies are installed
  2. Clone this repository to your Ubuntu Installation
  3. Run make as documented in the README.md file
  4. Run the application

For step 1, you'll need to google that, because it's unique to each distribution as to how you install Golang/OpenGL/etc.

from lds.

iegomez avatar iegomez commented on July 18, 2024 1

@proffalken is right, it'll change among distros and systems. Now, for Ubuntu 18.04 or similar something like this should get your prerequisites ready:

sudo apt install build-essential libgl1 libgl1-mesa-dev libgl1-mesa-glx redis-server

Then download Go's latest version from https://golang.org/dl/ and follow the instructions.

Finally, clone the repo, cd into it and run make. This should install dependencies using Go modules and compile the program into the gui executable.

I added this to the readme.

from lds.

proffalken avatar proffalken commented on July 18, 2024 1

@sagar-patel-sls have you deleted the entire directory, re-cloned the repository and tried again?

(Also, please paste the output of the command here as text rather than screenshots as it is far easier to read. You can do this by selecting the text in the terminal window, right-clicking, selecting copy, pasting it here and then format it using the <> button on the toolbar above)

from lds.

proffalken avatar proffalken commented on July 18, 2024 1

Thanks.

That seems to be a different error to the one you reported above in regard to the undefined variables?

I suspect that you're missing a dependency somewhere, but I don't know enough about GO to be sure.

from lds.

iegomez avatar iegomez commented on July 18, 2024 1

Actually, those are just warnings related to this issue: go-gl/glfw#213.
Those are pulled in by imgui-go, so I have no control over them, but everything runs fine and they may be ignored for the time being.

from lds.

iegomez avatar iegomez commented on July 18, 2024 1

Hi, @sagar-patel-sls. I've just tested this on a fresh install of Linux Mint and added the missing xorg-dev dependency to the Readme building instructions. That should work for Debian, Ubuntu and mostly any Debian based distro as well, so I'll close this issue for now. Feel free to reopen it if you find any other building issue. Thanks for your report!
And thanks @proffalken for all the help!

Cheers!

from lds.

iegomez avatar iegomez commented on July 18, 2024

Hi! I don't use Windows and am not familiar with it, but I believe OpenGL ships with it, so you shouldn't have problems with that. Check imgui-go and the underlying library, Dear ImGui, for more instructions or issues related to Windows. You should also have gcc (or whatever is used) as the Go library is just a wrapper to a C one and uses cgo.

As for Redis, maybe follow this or this and see if it works, or use some ready docker image.

After meeting those requirements, it should just be a matter of building. Be sure to have Go 1.11 or 1.12 installed and Go modules support enabled so that's just a matter of running make. I do know that a colleague of mine was able to run it in his Windows machine before I added Redis, so I don't see why you couldn't.

That said, not only don't I use Windows, I don't even have a running installation of it, so I'll probably won't be able to give any Windows specific support. I'll leave this open though in case you face any problems and somebody else is able to help.

from lds.

sagar-patel-sls avatar sagar-patel-sls commented on July 18, 2024

Thanks @iegomez
can you give me steps of Ubuntu 18.04 system.

from lds.

sagar-patel-sls avatar sagar-patel-sls commented on July 18, 2024

Hii @iegomez @proffalken
i follow above step for Ubuntu 18.04 but i still get below screenshot error
image
Can you please help me?

Thanks

from lds.

iegomez avatar iegomez commented on July 18, 2024

Sorry, I had a bad entry at gitignore so a file wasn't pushed. If you pull from master now it should work.

from lds.

iegomez avatar iegomez commented on July 18, 2024

@sagar-patel-sls, dit it work?

from lds.

sagar-patel-sls avatar sagar-patel-sls commented on July 18, 2024

@iegomez i will try master branch

Thank you

from lds.

iegomez avatar iegomez commented on July 18, 2024

I also did a new release fixing the issue. I'll wait for your confirmation on this to close it or take any further action.

from lds.

sagar-patel-sls avatar sagar-patel-sls commented on July 18, 2024

@iegomez
i also try with master branch but still i got same error. (OS: Ubuntu 18.04 LTS)

image

Thank you

from lds.

proffalken avatar proffalken commented on July 18, 2024

@sagar-patel-sls You must be missing a library or a step somewhere.

Did you create the conf.toml file as specified in the README file?

I can confirm that the current master downloads, compiles, and runs perfectly on my laptop, the only difference is that I'm running Arch Linux instead of Ubuntu (which I wouldn't recommend unless you are very familiar with how Linux works!).

Those errors look like strings/variables aren't defined in your configuration file to me...

from lds.

iegomez avatar iegomez commented on July 18, 2024

No, those are indeed the functions at lds/keys.go, the file that was missing before. So it seems as if the pull from master failed, you are compiling your old version or something is getting cached. I also just downloaded the latest release and compiled it without issues, so I'd recommend that you delete everything concerning the package and download release 0.1.1 or clone the repo again.

from lds.

sagar-patel-sls avatar sagar-patel-sls commented on July 18, 2024

Hii @proffalken @iegomez

i have tried with release 0.1.1 also create conf.toml file as specified in the README file but i still get error

image

Thank you

from lds.

sagar-patel-sls avatar sagar-patel-sls commented on July 18, 2024

@proffalken i have deleted entire directory, re-cloned the master repository

please find below output of the command

go build -o gui
# github.com/go-gl/glfw/v3.2/glfw
In file included from ../../go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/c_glfw_linbsd.go:24:0:
../../go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/linux_joystick.c: In function ‘_glfwInitJoysticksLinux’:
../../go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/linux_joystick.c:224:42: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 9 [-Wformat-truncation=]
             snprintf(path, sizeof(path), "%s/%s", dirname, entry->d_name);
                                          ^~~~~~~
In file included from /usr/include/stdio.h:862:0,
                 from /usr/include/X11/Xcursor/Xcursor.h:26,
                 from ../../go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/x11_platform.h:39,
                 from ../../go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/internal.h:169,
                 from ../../go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/glfw/src/x11_init.c:28,
                 from ../../go/pkg/mod/github.com/go-gl/[email protected]/v3.2/glfw/c_glfw_linbsd.go:19:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output between 12 and 267 bytes into a destination of size 20
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thank you

from lds.

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.