Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run application on Ubuntu 20 #209

Open
arnab77in opened this issue Jul 26, 2022 · 7 comments
Open

Unable to run application on Ubuntu 20 #209

arnab77in opened this issue Jul 26, 2022 · 7 comments
Assignees
Labels
question Further information is requested

Comments

@arnab77in
Copy link

Hi,

I have installed FaceRecognition and dlib library into Ubuntu 20 OS. but when trying face verification below error comes
"The type initializer for 'Gdip' threw an exception."

Arnab Chakraborty
Ph : 983056740

@arnab77in
Copy link
Author

From documentation I got to know that "System.Drawing.Common" is not supported in linux. In place of that Microsoft is suggesting to use [ImageSharp]/[SkiaSharp]/[Microsoft.Maui.Graphics]

please advice

@takuya-takeuchi
Copy link
Owner

@takuya-takeuchi takuya-takeuchi self-assigned this Jul 26, 2022
@takuya-takeuchi takuya-takeuchi added the question Further information is requested label Jul 26, 2022
@arnab77in
Copy link
Author

Thanks for you answer. I have installed libgdiplus. after that I have installed Mono repository to get the latest libgdiplus. but either way the same error is Coming. "The type initializer for 'Gdip' threw an exception."
Have you installed in Ubuntu 20.4 and checked the "FaceCompare" feature?
I am using .net core 3.1 for the project

@takuya-takeuchi
Copy link
Owner

At least, FRDN works on Ubuntu 20.04.
I tried to work it on Hyper-V.
#204 (comment)

@arnab77in
Copy link
Author

I have remove System.Drawing.Common from all projects and included Aspose.Drawing as all the same Namespace are available in that. but unfortunately result is same.

Can you please take a drive and test it in a Linux Machine. That will be very helpful

Thanks

@takuya-takeuchi
Copy link
Owner

@takuya-takeuchi
Copy link
Owner

@arnab77in
I tested examples/FaceDetection on Ubuntu 20.04.
And I upgrade it from netcoreapp2.0 to netcoreapp3.1.

image

It works fine.
At least, this program loads jpeg file and it should use Bitmap class.
So libgdiplus looks like to work fine.

But I found that this VM does not install libgdiplus.

image

It is weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants