wings3d
Recommended PREFERRED_VERSION for wings:
| wings | Erlang/OTP | Elixir |
|---|---|---|
| 2.4.1 | 29% | - |
Wings3d is a modeller software written in Erlang. And it's possible to run Wings3d on any embedded device using meta-erlang.
The recipe wings_2.4.1.bb is prepared to build wings. However, an additional configuration is necessary to enable wx package from erlang recipes. This is necessary because the wx package is disabled by default.
The follow configuration for conf/local.conf file is a recommended one:
ERLANG_VERSION = "29%"
ELIXIR_VERSION = "1.20%"
# wings requires erlang-wx
PACKAGECONFIG:append:pn-erlang = " wx"
PACKAGECONFIG:append:pn-erlang-native = " wx"
DISTRO_FEATURES:append = " opencl opengl"
DISTRO_FEATURES_NATIVESDK:append = " opencl opengl"
PREFERRED_PROVIDER_virtual/libopencl1 = "opencl-icd-loader"
PREFERRED_PROVIDER_virtual/nativesdk-libopencl1 = "nativesdk-opencl-icd-loader"
VIRTUAL-RUNTIME_opencl = "opencl-icd-loader"
# This is needed to build wings with opencl support, otherwise it will
# fail with "error: unknown type name 'cl_platform_id'"
# Mostly valid for qemux86-64 and qemuarm64, but also for other machines that support opencl.
# running qemux86-64 with kvm is ok.
PACKAGECONFIG:append:pn-mesa = " libclc gallium-llvm opencl virtio"
wings requires opencl libraries. In additional, when running wings on QEMU instance, the mesa package also needs some additional PACKAGECONFIG flags.
wings runs on X11 environment, because of that the target image have to have all the graphic components in order to run it. There are multiple ways to achieve the requirements and one of them is adding the following configuration in conf/local.conf file:
IMAGE_INSTALL:append:pn-core-image-x11 = " wings"
IMAGE_INSTALL:append:pn-core-image-sato = " wings"
IMAGE_ROOTFS_EXTRA_SPACE:pn-core-image-x11 = "1048576"
IMAGE_ROOTFS_EXTRA_SPACE:pn-core-image-sato = "1048576"
And, finally building a YP/OE image with X11 support enabled like
core-image-x11 or core-image-sato:
bitbake core-image-sato
As usual, qemu can be used to run and test the results:
runqemu core-image-sato snapshot sdl gl kvm
I recommend testing using qemux86-64 machine with kvm support. That way wings will be usable. It also works with qemuarm64 based machines but the performance is not great. The gl flag is needed to get opencl working as expected.
Once you get a qemu instance running, start wings as follow:
RUSTICL_ENABLE=llvmpipe wings
It is important for debug purposes to check the clinfo output:
RUSTICL_ENABLE=llvmpipe clinfo
Once you get wings started, there is a menu which is possible to check opengl info:

If everything went well, you will see the correct opengl version and hardware renderer.