Comments (21)
Indeed... I broke compilation within ITK while trying to fix the install step in the latest commit. I'm currently working on a fix.
In the meantime you should be able to bypass the issue if you use the "NO_INSTALL" parameter as it was done here.
from rtk.
This error is in the configure step of cmake
from rtk.
RTK has moved to being an external module of ITK, maybe one cannot compile from an installed ITK. What do you think @LucasGandel?
from rtk.
Exactly, even if you could provide the ITKModuleExternal.cmake script from the sources, you would hit the following error message :
CMake/ITKModuleExternal.cmake:11:
message(FATAL_ERROR
"Modules can only be built against an ITK build tree; they cannot be built against an ITK install tree.")
from rtk.
Thanks for the confirmation. I guess we need to clarify this in RTK's documentation. We are preparing a release for the coming days to be able to submit a file to ITK for compilation of RTK from within ITK as a remote module. For now, if you just clone RTK in ITK_SRC/Modules/Remote or in ITK_SRC/Modules/External, you will get a Module_RTK option that you can activate to compile RTK.
I'll leave this issue open until we have changed the error message for something more meaningful than what you currently have.
from rtk.
This should really be a new issue, but since it is easier to explain:
I moved RTK to Modules/External and activated Module_RTK.
On Windows, when compiling ITK_CudaComman as BUILD_SHARED, I get:
C2941: definition of dllimport static data member not allowed in itkCudaContextManager.cxx
This is because ITK_CudaCommon is not defined, since the target in not defined as a shared library and therefore in the itkCudaWin32Header.h, the library is defined as __declspec(dllimport) which is bogus.
Solution: in utilities/ITKCudaCommon/CMakeLists.txt:11
add_library(ITKCudaCommon ${ITK_LIBRARY_BUILD_TYPE} ${ITKCudaCommon_SRC})
If itkcudacommon should always be static, then the declspec declarations should be removed....
from rtk.
Also, I think the whole install infrastructure is sadly not properly set up.
I guess that is still one of the todos?
from rtk.
Thanks for your efforts and your patience.
On the first point, the weird part is that I successfully compile RTK nightly on Windows with shared and static libraries, see the dashboard. I don't know why you're encountering problems I don't have. Moreover, I never see such a ${ITK_LIBRARY_BUILD_TYPE} in ITK code. Any suggestion? I'm really lost with this Windows stuff.
On the install infrastructure, I guess you have understood I'm really not skilled on this part. So yes, it's a todo but I'm not sure what is to be done. What need to be installed are includes, libraries, exe and cmake scripts. Any suggestions on how to proceed is welcome.
from rtk.
I think the following error is related to this issue:
I'm now getting CMake Error: install(EXPORT "ITKTargets" ...) includes target "RTK" which requires target "lpsolve55" that is not in the export set.
when configuring ITK with RTK as a external module, during the generation step of CMake.
Docker file, for building ITK/RTK
from rtk.
Building within ITK with static/shared libraries should be OK now that #209 is integrated.
You might want to give a try to latest master.
from rtk.
Thanks! 👍
It seems to work well, now it's only my own code causing my CI to fail...
from rtk.
#210 adds an explicit check to prevent building against an ITK install tree.
#209 should have fixed the shared libraries issue when building within ITK.
@dkuegler Is there anything else or can we safely close this issue?
from rtk.
@LucasGandel I have setup a first nightly build with static / release / FFTW and it fails. It seems that a27a558 is not a good solution for this build. Are you sure it's necessary for shared libraries?
from rtk.
@SimonRit Did you use a remote file? It seems that a27a558 was required when building as an external module, but not when building as a remote. It does not really makes sense to me right now, I'll investigate.
from rtk.
Yes, here is RTK.remote.cmake:
itk_fetch_module(RTK
"Reconstruction Toolkit (RTK) http://www.openrtk.org/"
GIT_REPOSITORY ${git_protocol}://github.com/SimonRit/RTK.git
GIT_TAG master
)
from rtk.
I didn't need the RTK_BUILD_APPLICATIONS
flag, so I didn't look so deep into it, but shouldn't it be enough with an if(NOT ITK_SOURCE_DIR)
around find_package ?
from rtk.
That's what used to be there and @LucasGandel removed is for shared libs I believe.
from rtk.
I removed it a few month ago when trying to build as a remote. I guess things have changed on the itk side and this should be added back.
@SimonRit Can you please make the change or do you want me to do it?
from rtk.
As far as I know, this issue is now fixed in the new release. Re-open it if required.
from rtk.
I don't know. Can you open a separate issue and detail your configuration?
Thanks,
Simon
from rtk.
from rtk.
Related Issues (20)
- Read Raw Data HOT 1
- how to use "DisplacedDetectorForOffsetFieldOfViewImageFilter"? HOT 1
- how itk.CudaImage convert to itk.Image? HOT 1
- Python Wrapping fails for missing dimensions HOT 15
- Why use SetTruncationCorrection in RTK has no performance? HOT 1
- Why SetTruncationCorrection(0.4) is not useful? HOT 3
- "Please, is there any source code available for this function?" HOT 1
- How to output the image after truncation correction and ramp filtering? HOT 1
- reconstruction by cuda occur problem: ITK ERROR: CUDA ERROR: out of memory HOT 1
- “itkRTK-5.2.lib” is not created HOT 1
- Unable to successfully build the rtk library HOT 2
- Reconstructed slices are returning as zeros and NaN HOT 1
- Unable to successfully build the rtk library HOT 2
- Error C1001 An internal error has occurred in the compiler. HOT 3
- Cuda memory error when using Cuda forward projector HOT 11
- Unable to debug hxx files and h files HOT 8
- Unable to compile simpleRTK HOT 1
- Installation issue with pip HOT 1
- why rtk::CudaFDKConeBeamReconstructionFilter's GetRampFilter()->SetTruncationCorrection() failed!
- why rtk::CudaFDKConeBeamReconstructionFilter's GetRampFilter()->SetTruncationCorrection() failed! HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtk.