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

FreeBSD support #29

Closed
iceiix opened this issue Nov 20, 2018 · 2 comments
Closed

FreeBSD support #29

iceiix opened this issue Nov 20, 2018 · 2 comments

Comments

@iceiix
Copy link
Owner

iceiix commented Nov 20, 2018

Supporting FreeBSD could be useful to help diagnose platform-specific issues and improve compatibility, and shouldn't be too difficult since Linux is already supported

@iceiix
Copy link
Owner Author

iceiix commented Nov 20, 2018

Able to build Steven after installing SDL2 as follows:

pkg install sdl2 sdl2_gfx sdl2_image sdl2_mixer sdl2_net sdl2_ttf
export LIBRARY_PATH=/usr/local/lib

@iceiix
Copy link
Owner Author

iceiix commented Nov 20, 2018

Above commands are sufficient to compile, but the FreeBSD system I'm testing on is headless, so additionally installed (may not all be necessary):

sudo pkg install tightvnc
sudo pkg install mesa-libs
sudo pkg install mesa-dri
sudo pkg install driconf
sudo pkg install xorg-vfbserver
sudo pkg install x11vnc

then can run Xvfb (from xorg-vfbserver) to create an X virtual frame buffer:

Xvfb :2 -screen 0 1024x768x24 +extension GLX +render

convenient to use x11vnc: http://www.karlrunge.com/x11vnc/

x11vnc: a VNC server for real X displays

x11vnc allows one to view remotely and interact with real X displays (i.e. a display corresponding to a physical monitor, keyboard, and mouse) with any VNC viewer. In this way it plays the role for Unix/X11 that WinVNC plays for Windows.

configure a password in ~/.vnc/passwd per the instructions (or don't), then expose the X desktop (I used :2) over port 5900:

x11vnc -display :2 -rfbauth ~/.vnc/passwd

run DISPLAY=:2 target/release/steven, and although it is slow using software GLX, it works:

screen shot 2018-11-20 at 8 08 30 am

happily, the "entities are not visible" bug doesn't appear here (https://github.com/iceiix/steven/issues/25), at least, as indicated by the visible sun

@iceiix iceiix transferred this issue from iceiix/steven Jan 12, 2019
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

1 participant