TWiki
>
NA62 Web
>
NA62MonteCarlo
>
TroubleshootingMC
(revision 1) (raw view)
Edit
Attach
---++ 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= and =Beam/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.
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r9
|
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2012-05-08
-
DanProtopopescu
NA62
Log In
or
Register
NA62 Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
Webs
ATLAS
PUUKA
DetDev
Gridmon
IT
LHCb
LinearCollider
Main
NA62
Sandbox
TWiki
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