octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44467] libGL error: failed to load driver: sw


From: ederag
Subject: [Octave-bug-tracker] [bug #44467] libGL error: failed to load driver: swrast
Date: Sat, 07 Mar 2015 22:55:23 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0

Follow-up Comment #4, bug #44467 (project octave):

I'll try to answer in order.

Here is the configure step

./configure --with-blas="/usr/local/openblas-mt-gcc4.8.3/lib64/libopenblas.so"
CFLAGS="-march=native -L/usr/local/openblas-mt-gcc4.8.3/lib64
-I/usr/local/openblas-mt-gcc4.8.3/include" CXXFLAGS="-march=native
-L/usr/local/openblas-mt-gcc4.8.3/lib64
-I/usr/local/openblas-mt-gcc4.8.3/include" FFLAGS="-march=native
-L/usr/local/openblas-mt-gcc4.8.3/lib64
-I/usr/local/openblas-mt-gcc4.8.3/include"
LDFLAGS=-Wl,-rpath,/usr/local/openblas-mt-gcc4.8.3/lib64
--prefix=/usr/local/openblas-mt-gcc4.8.3

make -j 3
make check

I also tried a simple ./configure, but got
configure: error: A BLAS library was detected but found incompatible with your
Fortran 77 compiler settings.


This version is not installed yet, I test it with ./run-octave


echo $LD_LIBRARY_PATH
yields an empty line


>From http://stackoverflow.com/q/27659516/3565696
it seems that Qt is the culprit

[...]
QProcess::start use by qtcreator add /usr/lib64 to 
LD_LIBRARY_PATH in the environment which break the correct
localisation indicated by the linker (with command ldd)
(libGL.so.1 => /usr/lib64/nvidia/libGL.so.1 

[...] all tentatives to change LD_LIBRARY_PATH from qtcreator failed,
Qprocess::start append /usr/lib64 in front of it?



chrpath -l src/octave
src/octave: RUNPATH=/usr/local/openblas-mt-gcc4.8.3/lib64


with
LD_LIBRARY_PATH=/usr/X11R6/lib64:$LD_LIBRARY_PATH ./run-octave
it works fine (plot(1:10) without messages)
And fine also with
LIBGL_DEBUG=verbose LD_LIBRARY_PATH=/usr/X11R6/lib64:$LD_LIBRARY_PATH
./run-octave

Interesting, this seems against the "prepend /usr/lib64 in front of
LD_LIBRARY_PATH" interpretation.


Another hint (?): after
chrpath -r /usr/X11R6/lib64 src/octave
src/octave: RUNPATH=/usr/local/openblas-mt-gcc4.8.3/lib64
src/octave: new RUNPATH: /usr/X11R6/lib64
./run-octave
plot(1:10)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44467>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]