3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development
Bjørn Forsman 06ed82677a qt5: embed path to mesa (libGL) in Qt mkspecs file
Fixes this problem, when building apps in QtCreator:

  ...(compile output window)
  g++ -Wl,-rpath,/nix/store/1w7h7p6s2srfw2ady90k7072991lrnpp-qtbase-5.4.2/lib \
      -o qt-test3 main.o mainwindow.o moc_mainwindow.o \
      -L/nix/store/1w7h7p6s2srfw2ady90k7072991lrnpp-qtbase-5.4.2/lib \
      -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
  /nix/store/b8qhjrwf8sf9ggkjxqqav7f1m6w83bh0-binutils-2.23.1/bin/ld: cannot find -lGL
  collect2: error: ld returned 1 exit status

mesa is already in the closure of Qt, so there is no size increase.
The patch is copied into both qt-5.3 and qt-5.4 directories, like other
patches are.

Note that programs still can _run_ against a different libGL (e.g. one
provided by nvidia) by configuring the dynamic linker. For instance,
NixOS sets the LD_LIBRARY_PATH environment variable to
/run/opengl-driver/lib/, meaning that whatever libGL is found there
will be used instead of the default (mesa).
2015-08-29 22:21:57 +02:00
..
arduino
compilers go1.5: Remove the bootstrap as it is unneeded 2015-08-28 16:29:22 -07:00
coq-modules coq-QuickChick: 21f50a02 -> 20150605 2015-08-18 21:28:33 +02:00
dotnet-modules/patches
eclipse ecj: require jdk7 instead of jdk 2015-07-27 17:37:37 +02:00
go-modules/generic goPackages: Split into multiple derivations 2015-08-29 12:58:03 -07:00
guile-modules guile-gnome-platform: 2.16.1 -> 2015/01/23 git 2015-07-23 04:13:03 -05:00
haskell-modules haskell-MFlow: fix build 2015-08-29 20:01:49 +02:00
interpreters pypy: wrap original, not symlink 2015-08-26 09:35:48 -05:00
libraries qt5: embed path to mesa (libGL) in Qt mkspecs file 2015-08-29 22:21:57 +02:00
lisp-modules ASDF: 3.1.4 -> 3.1.5 2015-08-08 21:01:31 +03:00
lua-modules
misc
mobile
ocaml-modules ocamlPackages.ocurl: update from 0.7.2 to 0.7.5 2015-08-20 17:07:18 +02:00
perl-modules Merge #8929: perl-LWP: enable tests + a few bumps 2015-07-30 16:03:44 +02:00
pharo Update Pharo VM and Launcher 2015-08-08 08:22:07 +02:00
pure-modules pure-octave: mark as broken 2015-08-06 12:52:34 +02:00
python-modules setuptools: 18.0.1 -> 18.2 2015-08-27 18:46:10 +02:00
qtcreator qtcreator: fix hash 2015-07-04 03:38:53 +03:00
r-modules R: fix Hydra build & evaluation errors 2015-08-06 20:13:50 +02:00
ruby-modules
tools valgrind: Separate doc output 2015-08-27 19:07:44 +02:00
web iojs: 3.0.0 -> 3.1.0 2015-08-20 13:21:53 +02:00