[Nix-dev] (no subject)
stewart mackenzie
setori88 at gmail.com
Wed Feb 24 21:51:41 CET 2016
Hello all,
I'm trying to get this working.
[stewart at rivergod:~/dev/fractalide/dmichiels/fractalide]$
./result/bin/development_test
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err`
value: "SDL error: Failed loading libGL.so.1: dlopen: cannot load any
more object with static TLS"', src/libcore/result.rs:688
The code make use of opengl (github.com/PistonDevelopers/conrod) in
one of the components which is a shared library.
I need to get libGL.so.1 patched in.
what is wrong with the below code:
---
{ stdenv, buildFractalideComponent, filterContracts, genName, upkeepers
, mesa
, xlibs
, SDL2
, freetype
, ...}:
buildFractalideComponent rec {
name = genName ./.;
src = ./.;
filteredContracts = filterContracts ["maths_boolean"];
depsSha256 = "1n171w4npvn96fanfdilf0na18vfibybkyiq0zrvas6ak1c3r47k";
buildInputs = with xlibs; [ freetype SDL2 mesa ];
patchElf = with xlibs; ''
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
--set-rpath
/run/opengl-driver/lib:${stdenv.cc.cc}/lib:${stdenv.cc.libc}/lib:${xlibs.libX11}/lib:${xlibs.libXext}/lib:${mesa}/lib:${libX11}/lib:${SDL2}/lib:${freetype}/lib
$out/lib/libcomponent.so
'';
}
Thanks in advance
/sjm
More information about the nix-dev
mailing list