Please read tips for efficient and successful posting and posting code
ROOT Version: 6.08/00
Platform: Ubuntu 18.04
Compiler: g++
I am trying to link pythia8235 with ROOT6.08. Independently both are working fine. But when I execute command:
make main91
the error is[1].
But when I check the path, the file is there.
/usr/local/mybuild_1/bin/root-config
My .bashrc file looks like:
source /usr/local/mybuild_1/bin/thisroot.sh
export PYTHIA8=/home/qamar/pythia_root/pythia8
export PYTHIA8DATA=$PYTHIA8/share/Pythia8/xmldoc
Any urgent help??
Many thanks in advance.
Qamar
[1].
g++ main91.cc -o main91 -w -I -I../include -O2 -pedantic -W -Wall -Wshadow -fPIC -L../lib -Wl,-rpath,../lib -lpythia8 -ldl \
`root-config --cflags`\
-Wl,-rpath, `/usr/local/mybuild_1/binroot-config --glibs`
bash: /usr/local/mybuild_1/binroot-config: No such file or directory
main91.cc:15:10: fatal error: Pythia8/Pythia.h: No such file or directory
#include "Pythia8/Pythia.h"
^~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:144: recipe for target 'main91' failed
make: *** [main91] Error 1
Hi,
look at this discussion, especially Makefile concerning main91:
(one of my last posts therein)
same error:
ROOT_BIN= /usr/marooz_work/ROOT/buildroot/bin
Makefile:146: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.
Otto
Axel
November 14, 2019, 9:05am
3
is “obviously” wrong, there is a missing /
… That’s likely in a Makefile of yours?
Axel.
Thanks all of you for your prompt reply.
OK in:
/home/qamar/pythia_root/pythia8/examples/Makefile
at line 146 I included / there and that specific error is removed.
Then I again executed these commands:
./configure --enable-shared
./configure --with-root=/usr/local/mybuild_1
make
Now I am getting this error[1].
What thing I am missing??
Thanks
Qamar
[1].
g++ main91.cc -o main91 -w -I -I…/include -O2 -pedantic -W -Wall -Wshadow -fPIC -L…/lib -Wl,-rpath,…/lib -lpythia8 -ldl
root-config --cflags
-Wl,-rpath, /usr/local/mybuild_1/bin/root-config --glibs
main91.cc:15:10: fatal error: Pythia8/Pythia.h: No such file or directory
#include “Pythia8/Pythia.h”
^~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:144: recipe for target ‘main91’ failed
make: *** [main91] Error 1
Hi Dears,
After copying this [1]. to my Makfile and adjusting spaces and
it is now working.
Thanks a lot again for your help.
Qamar
[1].
main91: $@.cc $(PREFIX_LIB)/libpythia8.a
ifeq ($(ROOT_USE),true)
$(info CXX_COMMON= $(CXX_COMMON))
$(info ROOT_BIN= $(ROOT_BIN))
$(CXX) $< -o $@ -w $(CXX_COMMON)\
`$(ROOT_BIN)/root-config --cflags`\
-Wl,-rpath,$(ROOT_LIB) `$(ROOT_BIN)/root-config --glibs`
else
I had the same error. I first complicated it a lot but then i solved it by editing my Makefile.inc.
In ROOT configuration,
ROOT_USE = true
ROOT_BIN =
ROOT_LIB = “root lib path”
ROOT_INCLUDE = “root path”
I deleted the cxx part. Try it.
Cheers.
system
Closed
December 6, 2019, 10:14am
7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.