Discussion:
[ITK-users] Problem loading dynamic library linked to ITK from a program also linked to ITK
BaptisteL
2018-09-28 15:36:31 UTC
Permalink
Hello all,

I am trying to load at runtime a dynamic library using ITK (let's call it
lib.so), within a program also linked to ITK.
To do this, I am using :

void* handle = dlopen("lib.so", RTLD_LOCAL | RTLD_LAZY)

but it crashes (I receive an H5::DataSpaceIException).

This works when I remove linking to ITK from the program that use the
library, or when I remove it from the library itself, so I guess I have
conflicting links between both programs, but I can't figure it out.

Thank you !






--
Sent from: http://itk-insight-users.2283740.n2.nabble.com/
The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
https://itk.org/mailman/listinfo/insight-users
Dženan Zukić
2018-09-28 16:59:59 UTC
Permalink
Hi Baptiste,

can you re-post the question on the forum <https://discourse.itk.org/>?

Regards,
DÅŸenan
Post by BaptisteL
Hello all,
I am trying to load at runtime a dynamic library using ITK (let's call it
lib.so), within a program also linked to ITK.
void* handle = dlopen("lib.so", RTLD_LOCAL | RTLD_LAZY)
but it crashes (I receive an H5::DataSpaceIException).
This works when I remove linking to ITK from the program that use the
library, or when I remove it from the library itself, so I guess I have
conflicting links between both programs, but I can't figure it out.
Thank you !
--
Sent from: http://itk-insight-users.2283740.n2.nabble.com/
The ITK community is transitioning from this mailing list to
discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
https://itk.org/mailman/listinfo/insight-users
Loading...