Making XLibre to compile and run on NetBSD #339
Replies: 46 comments 22 replies
-
Try changing the meson setup from 1.4 to 1.2 (like with situation here which is almost the same problem...) or compile this dependency yourself so that you'd at least confirm if it compiles. There's no point in fixing this if it doesn't work later down the line. |
Beta Was this translation helpful? Give feedback.
-
@chankongus : Thanks for the tip! OK, this package must be installed:
And now it compiles ok. I did not change the meson setup. ![]() I am ready now to continue the combat with ninja -C build
|
Beta Was this translation helpful? Give feedback.
-
ninja -C build is ok, yep! ![]() |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@fredvs you installed bare xserver with modesetting driver. Rest drivers are scattered at other repositories (see https://github.com/X11Libre). At a glance you need (not sure 100%): |
Beta Was this translation helpful? Give feedback.
-
If anybody could add NetBSD to our CI, that would be really great. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the infos but I am still lost. Must I compile those drivers too and how to install when it is done.
I can do the packages once all is working ok on my NetBSD system. |
Beta Was this translation helpful? Give feedback.
-
install as usual no magic here (configure and then In summary, If xserver installation is not in default search path, you need to provide prefixes using |
Beta Was this translation helpful? Give feedback.
-
@cepelinas9000 , Ok thanks for your light, I will try. |
Beta Was this translation helpful? Give feedback.
-
@fredvs You may also want to have a look at https://felipec.wordpress.com/2025/07/12/compilation . |
Beta Was this translation helpful? Give feedback.
-
@callmetango: Thanks, I'll look into that. Regarding driver compilation, can I use meson for configuration, like I did for a barebones X server?
(Sorry if the questions are stupid, I'm an explorer in a new jungle.) |
Beta Was this translation helpful? Give feedback.
-
You can use NOCONFIGURE=1 ./autogen.sh
./configure You can pass command line arguments to Be advised that I will add these instructions to Building XLibre · X11Libre/xserver Wiki soon. |
Beta Was this translation helpful? Give feedback.
-
@callmetango : Many thanks for your light, lot of meat there.
I installed the X server in /usr/X11R7, as this is the default directory used under NetBSD. But I may have made a mistake and should have installed it in a different directory, as installing in /usr/X11R7 overwrote the "official" X11 installation (but it may be useful to install it in the default directory as well). |
Beta Was this translation helpful? Give feedback.
-
If you'd like to install NetBSD (a cool OS by the way) on VirtualBox, here's a clear explanation: The video explains the installation of NetBSD 9.2 but also works with the latest version 10.1. |
Beta Was this translation helpful? Give feedback.
-
First try to compile https://github.com/X11Libre/xf86-video-vesa with But get error: must install xorg-macros 1.8 before using autogen.sh. ![]() OK, fixed installing xorg-util-macros (package xorg-macros does not exist in NetBSD) |
Beta Was this translation helpful? Give feedback.
-
Some news of the front. This fixed the error: xf860openconsole Server must be suid root :
But still errors with startx or xinit: Fatal error: Cannot open log file "/usr/X11R7/var/log/Xorg.0.log" : No such file or directory. It was solved with this:
Now, doing startx, no more error but only a black screen. |
Beta Was this translation helpful? Give feedback.
-
Anything in the log? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I encountered only a black screen (and a mouse cursor. when I moved it enough to get it on the screen), when I switched from All it was for me, was that I have two screens but only one in use, and Likely not what what's happening for you. |
Beta Was this translation helpful? Give feedback.
-
I tried "Driver "modesetting"", but the error "no display found" occurred. The only compatible drivers are vesa and vboxvideo, but the screen is completely black and the keyboard and mouse are unresponsive. |
Beta Was this translation helpful? Give feedback.
-
Maybe the issue is due because of the workaround I did for be able to compile vesa and vbox xlibre drivers. I've edited the xf86-video-vbox and xf86-video-vesa configure files and commented out the problematic lines (syntax errors). I'm not sure this is entirely legal. Those lines are commented:
I am in the dark like the screen. |
Beta Was this translation helpful? Give feedback.
-
Thank you for reporting this issue and your work! It will be moved to X11Libre Xlibre On Other Distributions · Discussions · GitHub since it really is more of a discussion and has already enough attention to be dealt with there. Once the remaining problems are solved we can add it to our CI pipeline. |
Beta Was this translation helpful? Give feedback.
-
@fredvs NetBSD maintains a "half fork" of X.Org, with many custom changes and a different build system so, it will not be easy to get XLibre running there OOTB. |
Beta Was this translation helpful? Give feedback.
-
@b-aaz : Many thanks for your attention (I've spent a few more sleepless nights without success, and your feedback is reassuring.) But this is interesting: https://blog.netbsd.org/tnf/entry/x_org_on_netbsd_the Same goes for this: https://github.com/NetBSD/pkgsrc/tree/trunk/x11/modular-xorg-server/patches So I think that for NetBSD and OpenBSD, it's better to let them develop their own fork of Xorg and, if possible, maintain good relationships with their developers and share fixes, ideas and new features together. |
Beta Was this translation helpful? Give feedback.
-
I searched for "netbsd build system" on the internet and found these articles:
They may be helpful. Er, or not... This all seems very familiar to those who are Gentoonians. 😉 |
Beta Was this translation helpful? Give feedback.
-
My humble diagnosis. |
Beta Was this translation helpful? Give feedback.
-
Still a black screen without cursor.
OK I will try.
OK, I will try. (I never used it for a VB machine, for forwarding data I use curl and it works ok). |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This is the end. XLibre works perfectly on NetBSD.
It was a huge battle, and I apologize for monopolizing the discussion. Long live XLibre! ![]() |
Beta Was this translation helpful? Give feedback.
-
A feedback from 𝚟𝚒𝚗𝚜 (@[email protected]) - Mastodon in 𝚟𝚒𝚗𝚜: "@joel @XLibreDev the same ques…" - Mastodon: the same question applies to NetBSD/xsrc: what about wscons input integration and the other downstream patches that the project keeps maintaining? https://blog.netbsd.org/tnf/entry/x_org_on_netbsd_the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select the version
Git master branch
Describe your issue
Hello.
I try to compile XLibre on NetBSD with already X11 installed and working but it fails because dependencies are obsolete.
How to fix this?
Note that packagexyz-dev do not exist in NetBSD.
PS: A example of option parameters that should be used on NetBSD for meson will be welcome.
meson setup <prefix> build <meson_options>
Steps to reproduce
Try to build XLibre on NetBSD using this (adapted) : https://github.com/X11Libre/xserver/wiki/Building-XLibre
What did you expect?
A out-of-the-box compilation. ;-)
Additional Information
No response
Extra fields
Beta Was this translation helpful? Give feedback.
All reactions