Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run on OpenBSD #167

Open
jrick opened this issue Oct 18, 2024 · 10 comments
Open

Unable to run on OpenBSD #167

jrick opened this issue Oct 18, 2024 · 10 comments

Comments

@jrick
Copy link

jrick commented Oct 18, 2024

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.

@dominikh
Copy link
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.

@jrick
Copy link
Author

jrick commented Oct 18, 2024

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.

@martin-sucha
Copy link
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.

@dominikh
Copy link
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 change) in upgrading to a newer version of Gio. It's also why development on Gotraceui in general has stalled for now.

@ddkwork
Copy link

ddkwork commented Oct 23, 2024

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

@ddkwork
Copy link

ddkwork commented Oct 23, 2024

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?

@dominikh
Copy link
Owner

@ddkwork the one I am writing.

@ddkwork
Copy link

ddkwork commented Oct 23, 2024

@ddkwork the one I am writing.

Can I view your code repository?

@dominikh
Copy link
Owner

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

@ddkwork
Copy link

ddkwork commented Oct 23, 2024

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants