Opened 4 years ago
Closed 3 years ago
#1500 closed Bug (fixed)
installation on mac issue
Reported by: | olivier | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Delphes code | Version: | Delphes 3 |
Keywords: | Cc: |
Description
on this thread: https://answers.launchpad.net/mg5amcnlo/+question/696852
Someone reported the following:
Juan Antonio Aguilar Saavedra confirmed that the question is solved:
Dear Olivier, thanks a lot. I managed to compile it but not without some
pain. I list here the errors and fixes, for reference. The first
compilation error I got was
classes/DelphesTF2.cc:35:12: error: no viable overloaded '='
which I solved by inserting
TFormula * fFormula;
on line 35 before
fFormula = new TFormula();
With that fix, compilation continued until the second error:
error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7
or later)
which I solved by writing
export MACOSX_DEPLOYMENT_TARGET=10.15
as suggested by Benj elsewhere. This prompted many warnings but
otherwise the compilation continued. The third error was
validation/DelphesValidation.cpp:1196:17: error: allocation of
incomplete type 'TF1'
which I solved by adding
#include "TF1.h"
to the header in that file. With that, I've been able to pass through
Delphes a test hepmc file. It remains to be checked whether simulated
events are fine, but I guess so.
Best,
Juan Antonio