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

System.DllNotFoundException: 'libacrcloud_extr_tool' #11

Open
javapa opened this issue Mar 22, 2023 · 3 comments
Open

System.DllNotFoundException: 'libacrcloud_extr_tool' #11

javapa opened this issue Mar 22, 2023 · 3 comments
Labels
good first issue Good for newcomers question Further information is requested

Comments

@javapa
Copy link

javapa commented Mar 22, 2023

Hi

I am developing a .NET Maui application targeting Android and iOS.
I installed the ACRCloudSdkCore nuget package.
When I am using the acrCloudRecognizer.RecognizeAsync(bytes) method I get the System.DllNotFoundException: 'libacrcloud_extr_tool'.
Do I need to create a windows console or web api project to target this SDK and then make requests to that API from my .NET Maui project and fetch the result like that or is there another solution?

@Executor-Cheng Executor-Cheng added good first issue Good for newcomers question Further information is requested labels Mar 23, 2023
@Executor-Cheng
Copy link
Owner

Hi there
In your MAUI solution, install ACRCloudSdkCore.NativeAssets.Linux and ACRCloudSdkCore.NativeAssets.MacOS nuget packages may solve your problem.

@javapa
Copy link
Author

javapa commented Mar 23, 2023

Hey

Thanks again for the speedy reply but that didn't work for me.
It can be because I'm not knowledgeable enough in this area.
I used an Azure function to resolve.

@Executor-Cheng
Copy link
Owner

Hello

Sorry for the late reply, after installing the two package, is there any so/dylib file in your ./bin/Release/netX.X/runtimes/linux-x64 or ./bin/Release/netX.X/runtimes/osx folder?

In my CentOS8 system, I've created a new console project with ACRCloudSdkCore and ACRCloudSdkCore.NativeAssets.Linux packages to test this problem, but it seems to be fine.

Program.cs:

// See https://aka.ms/new-console-template for more information
ACRCloudSdkCore.ACRCloudExtractTools.NativeMethods.Init();
Console.WriteLine("ok");

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

No branches or pull requests

2 participants