---++ Troubleshooting MC This page lists the most common problems encoutered with the NA62 MC code, along with more or less general solutions. %TOC% ---+++ Code compilation Shared object portability issue. In =Generator/GNUmakefile=, define a new variable =CMCLIBNAME=, just above the existing =CMCLIB= definition: <verbatim> CMCLIBNAME := libcmc.so CMCLIB := $(CMCDIR)/libcmc.so </verbatim> and then the target: <verbatim> Generator: $(CMCLIB) $(CMCLIB): $(OBJF) $(OBJC) $(COMMONOBJ) $(OBJCC) $(FC) -shared -Wl,-soname,$(CMCLIBNAME) -o $(CMCLIB) $^ </verbatim> This way the .so is linked w/o the full path, which ensures portability of the executable. Same trick in =Beam/GNUmakefile=, but variable names =BEAMLIBNAME= and =BEAMLIB=.
This topic: NA62
>
WebHome
>
NA62MonteCarlo
>
TroubleshootingMC
Topic revision: r2 - 2012-05-11 - DanProtopopescu
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback