New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STIR registries files are not installed (STIR_REGISTRIES points to original sources) #211
Comments
some extra info. The registries contain static variables that have as side-effect that they add a class to a particular registry (for factories such as for IO). The registry files need to be compiled and explicitly linked. If we'd stick them in the library, most linkers will actually never include them in the linked executable/library as the registries don't contain code that is being called from elsewhere. Hence the |
Short-term solution is to install the files and adjust the |
This bug affects the conda script conda-forge/staged-recipes#5460 |
Ah, I misunderstood previously. They aren't required at runtime, rather at compile time for dependent libraries (e.g., SIRF)? Makes sense Still, why are the Re: install location:
|
Here's an old post where I asked about this. It might be that a
|
Do you know if the entire source needs to be present for other projects, or just the registration sources? I'd suppose easiest solution is to copy the source (all or just registries?) to |
only the registration sources. let's not install anything else. I agree that As people using the the somewhat tricky bit is to adapt the not a trivial exercise... It isn't really on the list of things for the hackathon, but we can certainly use it to solve some of those "small" issues with a few people. |
STIR_REGISTRIES
is a CMake variable that lists all .cxx files that add items to registries, e.g. for IO, see the Registries of classes section in the STIR developers guide.At present, we do not install these files. However, anyone who uses an installed version of STIR will need them for IO, filtering etc to work. Therefore, at present, an installed version of STIR will only work on the original developer's machine (if she doesn't delete the source files).
Installing source files is "not done" however. Where would we put them?
If we'd install them, we'll have to adjust the variable in STIRConfig.cmake.in
The text was updated successfully, but these errors were encountered: