No graphical output

Hi,
I have to revive this thread… I’ve just installed Linux Mint 18 (KDE version if that matters) on a desktop, and have the same issue again. Root v06.06.08 seems to compile with no problems, but I get no graphics

I do:

tar -zxvf root_v6.06.08.source.tar.gz
mkdir test_build ; cd test_build
INSTALLDIR=/scratch/HEPsoftware/local
cmake -DCMAKE_INSTALL_PREFIX=$INSTALLDIR -DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 /scratch/HEPsoftware/root-6.06.08

–at this point it seems fine,:
– Enabled support for: asimage astiff builtin_afterimage builtin_ftgl builtin_glew builtin_pcre builtin_lzma builtin_llvm cxx11 cling exceptions explicitlink fortran genvector mathmore memstat opengl pch python shadowpw shared thread tmva vdt xft xml x11

make
make install
root
root [0] new TBrowser
(TBrowser *) 0x1c1b830

and that’s it. No error, and no TBrowser.

I didn’t really solve the problem last time, it just magically went away… so not sure how to proceed with debugging.

thanks,
Gavin

How is it possible that directly after “make install” you were able to run “root”?
You should have needed something like:
source /scratch/HEPsoftware/local/bin/thisroot.sh

Well, is it possible that you have another root version installed somewhere?
If yes, remember that, before you configure and make your new root, nothing in your setup can point to any other existing version (i.e. check PATH, LD_LIBRARY_PATH, …).

Also, check your DISPLAY variable (e.g. try to start an xterm from your terminal in order to make sure that it works).

HI,
yes, sorry, missed that step. After make install I open a new terminal, which calls
. /scratch/HEPsoftware/local/bin/thisroot.sh
through my .bashrc.

I don’t have any other root versions installed, and get eg

which root
/scratch/HEPsoftware/local/bin/root

My path and lib path look fine:

echo $PATH
/scratch/HEPsoftware/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/sbin:/usr/sbin:/usr/local/java/bin:.:/bin:/scratch/folders/laptop
echo $LD_LIBRARY_PATH
/scratch/HEPsoftware/local/lib:./lib

Gavin

Try to:
locate root.exe

So, first remove the offending line from your .bashrc, then start a new terminal (so that the “old” root settings are gone) and then build your new root from scratch again (i.e. delete the “test_build” and “root-6.06.08” subdirectories, unpack the source code again, …).

BTW. Add -Dall=“ON” -Dsoversion=“ON” to your cmake line.

Last, but not least … make sure that you read the notes about installing a “system default” ROOT version in a “system default” subdirectory (this applies to your “/scratch/HEPsoftware/local”, as well) : Missing Canvas

ok, removed my .bashrc, cleaned everything out and started again.

locate root.exe
(nothing)

untar, make compilation directory,
cmake -DCMAKE_INSTALL_PREFIX=$INSTALLDIR -DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 $ROOTDIR
See output in make_log.txt (765 KB)

then make, make install - see output in cmake_log.txt (9.54 KB)

source thisroot.sh
root
root [0] new TBrowser
(TBrowser *) 0x1f39050

no error, and no TBrowser.

Sorry, somehow I missed the second part of your reply. But adding -Dall=“ON” -Dsoversion=“ON”, eg:

cmake -DCMAKE_INSTALL_PREFIX=$INSTALLDIR -DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 -Dall=“ON” -Dsoversion=“ON” $ROOTDIR

to a completely clean setup makes no difference. Still no graphics.

I’m not entirely sure how to use the “ROOTSYS” method with cmake. eg if I set
unset ROOTSYS
export ROOTSYS=/scratch/HEPsoftware/local
cmake -DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 -Dall=“ON” -Dsoversion=“ON” $ROOTDIR
make
make install
then it tries to install to /usr/local/…

Similarly running configure in the root source directory before running cmake in the build directory has the same result.

What I find really strange about this is that I’m running exactly the same OS on my laptop and root works with no problems.

Make sure that you “unset ROOTSYS” before running cmake.

If you have two machines with the same system, try to compare the “cmake_log.txt” and “make_log.txt” from both of them (i.e. line by line).

BTW. are you sure that you can run/display “xterm” from your desktop machine?

Yes, I can run an xterm with no problem. ok, I’ll have to check my laptop tomorrow.

Morning,
I started with a clean install on my laptop with v06-06-08 in order to compare the cmake & make outputs with my desktop. And now I get no graphics on my laptop either. So at least things are consistent…

Anything else I can check?

Just to update: I solved the problem. For whatever reason, the plugin path was being set incorrectly.
eg in the cmake directory, there is a system.rootrc file which contains:
test-mint18-root-6.06.08/etc/system.rootrc:Unix.*.Root.PluginPath: :/scratch/HEPsoftware/local/etc/root/plugins:
and this file seems to also be copied to the install directory:
/scratch/HEPsoftware/local/etc/system.rootrc

but the plugins are actually installed in /scratch/HEPsoftware/local/etc/plugins (no “root” in the path)

So if I copy the system.rootrc file to my home directory as .rootrc then fix the paths in that file, I finally get graphics.

Gavin