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

Compile on Linux #43

Open
jesko42 opened this issue Aug 6, 2020 · 1 comment
Open

Compile on Linux #43

jesko42 opened this issue Aug 6, 2020 · 1 comment

Comments

@jesko42
Copy link

jesko42 commented Aug 6, 2020

Hello, tried to compile on Linux (Ubuntu) and had difficulties as I didn't know whether compile with Wayland or not (I don't know what this is). So tried both without success - different failures. Finally checked without Wayland und gat an X11 error not finding an #include <X11/Xlib.h>.
Maybe simply add that the interested user should install the headers. I used the following line (but is probably less to be needed to install, but this works on Ubuntu 20 LTS version from scratch).

sudo apt-get install -y libx11-dev libgl1-mesa-dev libgtk-3-dev pkg-config

@Darky-Lucera
Copy link
Collaborator

Hello Jesko,

For Linux X11 (https://en.wikipedia.org/wiki/X_Window_System) is the default option (safest). And sure, the users need to install the X11 headers and libraries to be able to compile anything for this display server protocol. Then, depending on their specific windows manager (Gnome, KDE, Enlightenment, ...) the users must install some others packages.

Keep using X11 for now.

On the other hand, Wayland (https://en.wikipedia.org/wiki/Wayland_(display_server_protocol)) is a candidate to substitute X11 in a near future, but is controversial and I don't want to argue about the pros or cons of this 'new' display server protocol. And sure, the users need to install some other packages to be able to compile for this display server protocol.

More info:

MiniFB is basically a lightweight cross platform library to create a framebuffer and draw into it. IMHO, explain users how to develop for Windows, Linux, MacOS X, iOS, Android, etc, is out of the scope of MiniFB. We simply couldn't do it because there are too many combinations.

Linux is a very fragmented OS, and there are several ways to install packages in the different distributions, and the package names may be different. Even between different versions of the same distribution.

In any case, we are glad to know that you decide to use our little library.

If you find some more issues, please contact us.

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

2 participants