1. ROOT의 include 와 Library는 root-config 명령어를 이용하여 해결할 수 있다. ( 모든 헤더 및 라이브러리를 포함시켜줌 )
  2. 문제는 pythia의 헤더파일(Pythia.h)와 Library파일( libpythia8.so, liblhapdfdummy.so)을 어떻게 넣어주느냐로 귀결
  3. 이번의 경우에는 헤더파일은 소스에서 절대경로(/usr/local/pythia/include/Pythia.h)를 입력해주고, Library파일을 /usr/local/lib에 강제로 집어넣으므로써 해결 ( LD_LIBRARY_PATH가 먹히지 않았는데 정말로 안 먹혔는지 확인해야 함. )
  4. 컴파일시에는 아래와 같이 입력

gcc -o main01_fixed main01.cc `root-config --cflags --glibs` -lpythia8 -llhapdfdummy
Notice : `root-config ~~~` 에서 `는 어퍼스트로피임, 작은 따옴표로 혼동하면 큰일남.

-- GunmoRyu - 05 Feb 2009

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2009-02-05 - GunmoRyu
 
KOREA-CMS
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding KoreaCmsWiki? Send feedback