Skip to content

Instantly share code, notes, and snippets.

@matu3ba
Last active October 15, 2023 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matu3ba/cfd9289a01810b5204af2334e4025d97 to your computer and use it in GitHub Desktop.
Save matu3ba/cfd9289a01810b5204af2334e4025d97 to your computer and use it in GitHub Desktop.
arcan DRI driver not from this Mesa build: dont mix old + new drivers! TODO best solution
#!/usr/bin/env sh
# arcandev/arcan/b.sh
set -eou pipefail
cmake -DVIDEO_PLATFORM=egl-dri -DSTATIC_SQLITE=ON -DSTATIC_OPENAL=ON \
-DSTATIC_FREETYPE=ON -DBUILD_PRESET="everything" ../src
make -j 8
DRI driver not from this Mesa build ('23.0.3' vs '23.1.7')
failed to bind extensions
DRI driver not from this Mesa build ('23.0.3' vs '23.1.7')
failed to bind extensions
DRI driver not from this Mesa build ('23.0.3' vs '23.1.7')
failed to bind extensions
DRI driver not from this Mesa build ('23.0.3' vs '23.1.7')
failed to bind extensions
platform_video_init() failed.
Error: couldn't initialize video subsystem. Check permissions, try other video platform options (-f, -w, -h)
Video platform configuration options:
(use ARCAN_VIDEO_XXX=val for env, or arcan_db add_appl_kv arcan video_xxx for db)
ignore_dirty - always update regardless of 'dirty' state
[ for multiple devices, append _n to key (e.g. device_2=) ] -
display_device=/path/to/dev - for multiple devices suffix with _n (n = 2,3..)
draw_device=/path/to/dev - set to display device unless provided
device_legacy - force-revert to legacy modeset
device_libs=lib1:lib2 - libs used for device
device_connector=ind - primary display connector index
device_wait - loop until an active connector is found
device_nodpms - set to disable power management controls
device_direct_scanout - enable direct rendertarget scanout
display_context=1 - set outer shared headless context, per display contexts
Graphics platform configuration options:
(use ARCAN_GRAPHICS_XXX=val for env, graphics_xxx=val for db)
Video platform initialization failed
arcandev/
arcan/
arcan.wiki/
durden/
shell.nix
.envrc
#!/usr/bin/env sh
# arcandev/arcan/run.sh
# Run arcan durden
./arcan -T ../data/scripts -p ../data/resources ../../durden/durden
# arcandev
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/01441e14af5e29c9d27ace398e6dd0b293e25a54.tar.gz") {} }:
pkgs.stdenvNoCC.mkDerivation {
name = "shell";
nativeBuildInputs = with pkgs; [
#time
#zlib
cmake
gdb
#libxml2
ninja
pkg-config
#python3
qemu
valgrind
#wasmtime
sqlite
openal
SDL2
luajit
mesa #gbm
#kms
freetype
libxkbcommon
libvlc
ffmpeg
leptonica
tesseract
libvncserver
libusb1
mupdf
# llvm 7
# llvm
# lld
# clang
#];
] ++ (with llvmPackages_16; [
clang
clang-unwrapped
lld
llvm
]);
#hardeningDisable = [ "all" ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment