webui-dev / webui

Use any web browser or WebView as GUI, with your preferred language in the backend and modern web technologies in the frontend, all in a lightweight portable library.
https://webui.me
MIT License
3.05k stars 184 forks source link

web browser deprecated version ? #140

Closed skinkairewalker closed 1 year ago

skinkairewalker commented 1 year ago

Hello everyone, I'm currently making games with construct 3, I've been testing with webui c++, when I try to load this link , I get the following error

is there any solution for this? I would like to run in kiosk mode.

AlbertShown commented 1 year ago

This issue doesn't relate to WebUI, but the error says you should install WebGL in your system first. Usually, you should open the link in your regular browser first. If it works, then it will work in WebUI too.

What OS do you use? What browser do you use? What do you see when you open the link in your regular browser?

skinkairewalker commented 1 year ago

What OS do you use? Windows 10 x64

What browser do you use? Chrome

What do you see when you open the link in your regular browser? opens normally.

Could it be that there is some restriction on the browser?

https://www.whatsmybrowser.org/

why is this disabled?

AlbertShown commented 1 year ago

I guess this is why: https://github.com/webui-dev/webui/blob/10e11da5e2f0dd2282662caa0eba531e8c2f4ec5/src/webui.c#L2825

@hassandraga, any reason why GPU is disabled?

AlbertShown commented 1 year ago

If you build the WebUI from the source, you can modify this line and re-compile it to use WebGL.

https://github.com/webui-dev/webui/blob/main/src/webui.c#L2825

skinkairewalker commented 1 year ago

I get this error when trying to compile the webui_main source :

Build WebUI Library (MSVC Release Static)...
NMAKE : fatal error U1077: 'cl /Zl /Fowebui.obj /c /EHsc "../../../src/webui.c" /I "../../../include" 1>NUL 2>&1' : código de retorno '0x2'
Stop.
AlbertShown commented 1 year ago

The repo is in beta right now. That's why compiling has some minor issues. I recommend you build the stable version, just open webui.c and remove all --disable-gpu from the source.