Replies: 17 comments
-
Yes, that is still the newest and preferred method. |
Beta Was this translation helpful? Give feedback.
-
Sounds good. I just wanted to double check. On a related note, I'm trying to compile a fitting routine against GRSISort that uses the TPeakFitter class. I'm getting the error
I'm using I think the issue is the order in how the libraries are linked. Do you have any suggestions? |
Beta Was this translation helpful? Give feedback.
-
Can you make cmake show you the actual linking command it uses? I think you can either use But looking at the libraries that I have (using |
Beta Was this translation helpful? Give feedback.
-
I did have to add
|
Beta Was this translation helpful? Give feedback.
-
I'm assuming you use something like |
Beta Was this translation helpful? Give feedback.
-
These are the commands I used to get those libraries:
Should it be
instead? |
Beta Was this translation helpful? Give feedback.
-
try using
and replace the |
Beta Was this translation helpful? Give feedback.
-
I get the error
|
Beta Was this translation helpful? Give feedback.
-
Oh, right. You'll need to add a |
Beta Was this translation helpful? Give feedback.
-
returns errors:
|
Beta Was this translation helpful? Give feedback.
-
I changed the linking order around and got the program to compile. I used
and when running the program I get the error
This seems like a completely generic library? I am very confused as to why this compilation is so difficult. I would expect that the TGRSIFit library contains the necessary classes for TPeakFitter but that doesn't seem to be the case. |
Beta Was this translation helpful? Give feedback.
-
Removing "-lGRSI" from the cmake command returns the following error:
|
Beta Was this translation helpful? Give feedback.
-
I think I finally got it. Here are the
An alternative to relinking the TGRSIFit and GROOT libraries was changing the
It is important to note that the linking order is very specific and deviating from it cause compilation issues. I am not sure if this is a useful change for |
Beta Was this translation helpful? Give feedback.
-
Okay, I had a chance to look at our gris-config, and it's definitely missing the -lTPeakFitting flag. I included that now. I have included it in the I also fixed a mistake where using I still don't understand why the order would matter, there must be some kind of bug in the gcc linker. |
Beta Was this translation helpful? Give feedback.
-
Sounds good. Have you pushed this change to the main branch yet? I'll test it against compiling my code. |
Beta Was this translation helpful? Give feedback.
-
Yes, those changes have been pushed (just now). |
Beta Was this translation helpful? Give feedback.
-
I still needed to switch the order of I changed
and everything compiled correctly. |
Beta Was this translation helpful? Give feedback.
-
Is TPeakFitter still the preferred method for fitting peaks? E.g.
Beta Was this translation helpful? Give feedback.
All reactions