Hello Everyone,

I'm a first time user of MITK. I've succesfully built the v2022.04 version
and I'm able to create my own cmake project with it which compiles and runs.

After building manually the step1 tutorial example, when I try to load the
sample .nrrd image a window appears and shows the image but when I try to
load the sample dicom (.dcm) image the mitk::IOUtil::Load() throws an
mitk::Exception which says: "core.mod.core.ioUtil ERROR: No reader
available for %filename%.dcm." so no image is showed.

When I run the Step1 application which was built during the mitk build
process (in ../superbuild/Mitk-build/bin/Debug/MitkStep1.exe) it runs
perfectly: it shows the dicom image.

So the app sources are the same but they were built differently so I think
the problem is with my cmake configuration.

I also debugged the app and I concluded that the problem is that no dicom
reader is registered in the usServiceRegistry.

The problem is that I don't know how to register the correct service in my
app. I tried to link the app with multiple DICOM modules (like
MitkDICOMImageIO) without success. I tried changing module load order still
without success. This CppMicroServices concept is not clear for me yet
(just like Cmake).

Additional notes:
- I link the libraries dinamically with target_link_libraries in my
cmakelists.txt (and copy the proper dll-s next to the executable)
- when including "mitkIOUtil.h" there's a warning: "In included file:
pasting formed ')static', an invalid preprocessing token"

So this my problem that I cannot solve for days now and I have run out of
ideas. I would appreciate if anyone could help me solve this problem.

Best regards,
Peter
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to