E
dit
W
YSIWYG
A
ttach
P
rintable
PDF
r1 - 05 Feb 2009 - 14:35:40 -
GunmoRyu
You are here:
KoreaCmsWiki
>
Sandbox Web
>
TWikiUsers
>
GunmoRyu
>
GunmoRyuSandbox
>
2009February
>
ModifiedPythiaSourceUsingROOTLibrary
ROOT의 include 와 Library는 root-config 명령어를 이용하여 해결할 수 있다. ( 모든 헤더 및 라이브러리를 포함시켜줌 )
문제는 pythia의 헤더파일(Pythia.h)와 Library파일( libpythia8.so, liblhapdfdummy.so)을 어떻게 넣어주느냐로 귀결
이번의 경우에는 헤더파일은 소스에서 절대경로(/usr/local/pythia/include/Pythia.h)를 입력해주고, Library파일을 /usr/local/lib에 강제로 집어넣으므로써 해결 ( LD_LIBRARY_PATH가 먹히지 않았는데 정말로 안 먹혔는지 확인해야 함. )
컴파일시에는 아래와 같이 입력
gcc -o main01_fixed main01.cc `root-config --cflags --glibs` -lpythia8 -llhapdfdummy
Notice : `root-config ~~~` 에서 `는 어퍼스트로피임, 작은 따옴표로 혼동하면 큰일남.
--
GunmoRyu
- 05 Feb 2009
E
dit
|
W
YSIWYG
|
A
ttach
|
P
rintable
|
R
aw View
|
Backlinks:
We
b
,
A
l
l Webs
|
H
istory
: r1
|
M
ore topic actions
Sandbox
Log In
or
Register
Sandbox Web
Create New Topic
Index
Search
Changes
Notifications
Statistics
Preferences
TWiki Tip of the Day
Disabling links in large blocks of text
You can disable automatic linking of WikiWords by surrounding the text with noautolink and /noautolink ...
Read on
Webs
Detector
HeavyIon
Higgs_NewParticle
Main
Sandbox
TWiki
Tier2
Top_SM
UOS
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding KoreaCmsWiki?
Send feedback