markaren / threepp

C++20 port of three.js (r129)
MIT License
581 stars 50 forks source link

Error: This binary only supports the Null platform #251

Open seanbutler opened 3 months ago

seanbutler commented 3 months ago

the title explains it all really.

on ubuntu 23.10, razer laptop w/ nvidia mobile chipset. driver v. 535.161.07

when i compile the lib using the instructions from the read me here. most/all the examples give the above error message.

does anyone have any thoughts/advice? thanks.

markaren commented 3 months ago

I think I've seen this when running through WSL (headless linux environment) and not enabling X11. Not sure why you are seeing this as you are running from a desktop environment. However, I think it's glfw that emitts the error. Try compiling with THREEPP_USE_EXTERNAL_GLFW=ON to use the systems glfw installation.

seanbutler commented 3 months ago

this worked, thanks for your help!

cmake --build build -DTHREEPP_USE_EXTERNAL_GLFW=ON shall i update the README and submit a pull req?

markaren commented 3 months ago

It is likely a bug where the default configuration is mismatched on the linux platform. Using external glfw should not be required. An eventual PR should fix the configuration problem.