Efferent-Health / fo-dicom.Codecs

Cross-platform Dicom native codecs for fo-dicom
Other
65 stars 23 forks source link

Dicom.Native-linux-x64.so on ubuntu throw exception #45

Closed dantemayson closed 1 year ago

dantemayson commented 1 year ago

hi, i build fo-dicom.Codecs with cmake on ubuntu and get Dicom.Native-linux-x64.so file. then add this file to nuget package like this package

2023-05-15 06_56_45-ALAN-PC - MARCO R S  - Connected

when use this package on other project and run on ubuntu throw exception dotnet run --project CodecTest path :/root/CodecTest Unhandled exception. System.AggregateException: One or more errors occurred. (Unable to load shared library 'Dicom.Native-linux-x64.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libDicom.Native-linux-x64.so: cannot open shared object file: No such file or directory) ---> System.DllNotFoundException: Unable to load shared library 'Dicom.Native-linux-x64.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libDicom.Native-linux-x64.so: cannot open shared object file: No such file or directory Dicom.Native-linux-x64.so is exsist on bin folder i also export Dicom.Native-linux-x64.so library with LD_LIBRARY_PATH command but the problem still exists

jaime-olivares commented 1 year ago

Hi, why are you trying to build your own nuget package?

dantemayson commented 1 year ago

Because I have changed the source based on my needs and I want these changes to be applied

jaime-olivares commented 1 year ago

That sounds more like a general programming question. All the build is based on azure-pipelines.yml and the nuspec file.

I suggest to ask in Stack Overflow with the [fo-dicom] tag.