Running OF in virtual machine without 3d acceleration

Hi,
I need to run OF based GUI app in a vmware instance, which is not having 3d acceleration support.
Is this possible at all?

I tried running the stocked GUI example, but it fails with error message
[error] ofAppGLFWWindow: 65542: WGL: The driver does not appear to support OpenGL
[error] ofAppGLFWWindow: couldn’t create GLFW window
[error] ofAppGLFWWindow: 65538: Cannot set swap interval without a current OpenGL or OpenGL ES context

as far as I know, oF is run on OpenGL. that’s why you can see ofAppGLFWWindows related error, which is GL related.

if it’s ok without window display, check this : https://github.com/robotconscience/ofAppNoWindow

I don’t have much experience with vmware and OpenGL, so I can’t give you a hint there.
But if you have a possibility to use docker and you have a Linux host, then you could do something like this in your Dockerfile:

# Replace 1000 with your user / group id
RUN export uid=1000 gid=1001 && \
    mkdir -p /home/developer && \
    echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \
    echo "developer:x:${uid}:" >> /etc/group && \
    echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer && \
    chmod 0440 /etc/sudoers.d/developer && \
    chown ${uid}:${gid} -R /home/developer

USER developer
ENV HOME /home/developer

and run your container with:

docker run \
       -e DISPLAY=$DISPLAY \
       -v /tmp/.X11-unix:/tmp/.X11-unix 
       -t < name >:< tag >

An example of a Dockerfile for use with openFrameworks is here:

It should be fairly easy to adjust it for the right oF-version and add the snippet from above.

It’s not exactly what you asked for, and I don’t know if it would help you in your specific case.
But maybe it does? :slight_smile: Good luck!

1 Like

Yes, i have tried along ofAppNoWindow. That works and app run smoothly, but then no GUI is there.

I was anticipating that their might a Windowing context which does not use openGL and could render display. But, not sure if such thing exist and if not is there possibility to create one.

Thanks for replying.

Docker thing is interesting, though never tried along OF. But, for now i need to find a workaround that could let build windows application with GUI on a host with no 3d acceleration.

what version of WMware host are you using ?
seems that some of hosts are support 3D acceleration.

https://www.vmware.com/support/ws5/doc/ws_vidsound_d3d_enabling_host.html

check this too:
https://www.mesa3d.org/vmware-guest.html