Hi, ROOTers
I have compiled a standalone GUI application successully. However, there is a problem which I describe below.
Preliminaries
The structure of the working directory is the following
Before make
.
├── DummyLinkDef.h
├── inc
│ ├── Dummy.h
│ └── Includes.h
├── Makefile
└── src
├── Dummy.cpp
└── Main.cpp
Where make
is the following lines
g++ -I./inc -c src/Dummy.cpp `root-config --cflags --glibs`
g++ -I./inc -c src/Main.cpp `root-config --cflags --glibs`
rootcling -f Dummy.cxx inc/Dummy.h inc/Includes.h DummyLinkDef.h
g++ -I./inc Dummy.o Main.o Dummy.cxx `root-config --cflags --glibs` -o Dummy
After make
:
.
├── Dummy
├── Dummy.cxx
├── DummyLinkDef.h
├── Dummy.o
├── Dummy_rdict.pcm
├── inc
│ ├── Dummy.h
│ └── Includes.h
├── Main.o
├── Makefile
└── src
├── Dummy.cpp
└── Main.cpp
The Problem
I can run Dummy
executable successfully only in the working directory. However, If I add it to stanard PATH
(e.g. /usr/bin
) and try to execute it, say, from a directory above I get the following message:
Error in <TCling::RegisterModule>: cannot find dictionary module Dummy_rdict.pcm
However, it seems that slots, for example, work fine. Anyway my question is is there a way to run Dummy
from anywhere properly?
I attach full directory if it is needed. Test.zip (2.4 KB)