Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
to introduce myself : I'm a self-taught beginner in C#. for over 8 months I have been trying to find a full-features C# library but for a reason only few (not completely useful ) are out there. so I have been Trying to create one using libheif on GitHub. I am completely unable to create a C# interface with Cmake, pinvoke or swig despite how easy its supposed to be and my many efforts. that's why im turning to you guys for help with this complicated situation !

Can someone with some create a C# interface for this C++ library to handle HEIC containers using Pinvoke or similar methods and publish it either on GitHub or as a NuGet (preferably both) ?

Goal: I need it to decode/encode image collections + metadata + thumbnails in a C# program to and from a .heif container.

What I have tried:

I have tried cloning the library to my local drive: because its a Cmake library I couldn't create a visual studio project. so I went through the swig steps but I got several hundreds of errors when trying to compile. I went with the steps of pinvoke but my pc freezes every time I compile to create the dll. there are hundreds of projects on GitHub using similar methods but the library is so complicated for me I couldn't figure out what I was doing wrong .. after so much time I am turning to the open source community for aid to provide this library for everyone
Posted
Updated 22-Sep-19 20:20pm
Comments
[no name] 22-Sep-19 21:37pm    
Where's yours? There is no "open source community" without the "source" (code).
BillWoodruff 23-Sep-19 0:00am    
"C++ library to handle HEIC containers" where is this library ? I suggest you show code and talk about specific errors.

1 solution

Writing a C# interface isnt to hard. Take a look at my article handling C# interop. Use the Visual Studio Community Edition.

Because of the complexity of your library it is best when you write it yourself. The chances that someone will help you are very low.
 
Share this answer
 
Comments
BillWoodruff 23-Sep-19 10:20am    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900