8000 Unable to run on OpenBSD · Issue #167 · dominikh/gotraceui · GitHub
[go: up one dir, main page]

Skip to content

Unable to run on OpenBSD #167

Open
Open

Description

@jrick

gotraceui opens a new window for a split second before exiting with this error:

$ gotraceui                                            
2024/10/18 14:16:02 gl: no OpenGL implementation could be loaded (tried ["libGLESv2.so.2"])

I have the library /usr/X11R6/lib/libGLESv2.so.3.0 but the gio version currently used is too old and is missing this fix:

https://git.sr.ht/~eliasnaur/gio/commit/05d28ad76a4946b4e0d0cb0ceb34c9337fd81724

LD_PRELOAD does not help because gio is trying to dlopen() the wrong name.

Unfortunately the gio api has changed somewhat in the latest version and updating it will take more than just requiring the latest, but with a local replacement and that fix cherrypicked, gotraceui does run.

Activity

  1. dominikh commented on Oct 18, 2024

    @dominikh
    Owner

    Another (admittedly unpleasant) workaround for the time being would be creating a symlink pointing to the right library, stored in some directory of your choice that gets added to LD_LIBRARY_PATH. At least I think that should work.

    I could see about using a fork of Gio with the patch applied for the time being, as updating to the new API is out of the question. However, Gotraceui will stop supporting X11 in the near future. Unless OpenBSD makes the move to Wayland, Gotraceui will stop working, anyway.

  2. jrick commented on Oct 18, 2024

    @jrick
    Author

    Wayland already works on OpenBSD, though my preferred desktop environment does not yet support it. Happy to test anything if you want it.

    The LD_LIBRARY_PATH hack also works with an unpatched gio.

  3. martin-sucha commented on Oct 21, 2024

    @martin-sucha
    Contributor

    as updating to the new API is out of the question.

    Could you please elaborate? Is the upgrade something that you don't want to spend time on, but that you would accept contributions for? Or it does not make sense to do it at all?

    I tried some quick experiment in April and most of the changes seemed to be straightforward replacements as far as I remember. One tricky part was the event spy. But yeah, it would be at least a few days of work.

  4. dominikh commented on Oct 21, 2024

    @dominikh
    Owner

    Could you please elaborate? Is the upgrade something that you don't want to spend time on, but that you would accept contributions for? Or it does not make sense to do it at all?

    Gotraceui will eventually (hopefully in the next couple of months) switch to a different GUI library, which is why I don't want to invest time (neither doing it myself nor reviewing such a ch B11A ange) in upgrading to a newer version of Gio. It's also why development on Gotraceui in general has stalled for now.

  5. ddkwork commented on Oct 23, 2024

    @ddkwork

    我升级了表格控件到最新版,其它控件没有升级
    https://github.com/ddkwork/ux/blob/master/table2.go

  6. ddkwork commented on Oct 23, 2024

    @ddkwork

    Could you please elaborate? Is the upgrade something that you don't want to spend time on, but that you would accept contributions for? Or it does not make sense to do it at all?

    Gotraceui will eventually (hopefully in the next couple of months) switch to a different GUI library, which is why I don't want to invest time (neither doing it myself nor reviewing such a change) in upgrading to a newer version of Gio. It's also why development on Gotraceui in general has stalled for now.

    Hi,which different ui library you will try?

  7. dominikh commented on Oct 23, 2024

    @dominikh
    Owner

    @ddkwork the one I am writing.

  8. ddkwork commented on Oct 23, 2024

    @ddkwork

    @ddkwork the one I am writing.

    Can I view your code repository?

  9. dominikh commented on Oct 23, 2024

    @dominikh
    Owner

    https://github.com/dominikh/gutter contains several branches at several states of development, but nothing is in its final state yet.

  10. ddkwork commented on Oct 23, 2024

    @ddkwork

    https://github.com/dominikh/gutter contains several branches at several states of development, but nothing is in its final state yet.

    Nice work,i will look it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0