Trying to compile an app with a c native library being referenced, dll missing.

JacekGarbiecJacekGarbiec USMember
edited November 2016 in Xamarin.Android

So I've got a solution with 2 projects, one the xamarin app, the other one a c++ android native library.
I reference the library in my app project, they both build nicely, however when i try to deploy the app to a device i get the following error

Warning Could not find file 'C:\Users\Jack\Source\Repos\CarAssistant\Car_Assistant\ARM64\Release\libSphinxLib.dll'.
1> at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
1> at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, >FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
1> at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
1> at Mono.Cecil.ModuleDefinition.GetFileStream(String fileName, FileMode mode, FileAccess access, FileShare share)
1> at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
1> at Mono.Cecil.ModuleDefinition.ReadModule(String fileName)
1> at Mono.Cecil.AssemblyDefinition.ReadAssembly(String fileName)
1> at Pdb2Mdb.Converter.Convert(String filename)
1> at Xamarin.Android.Tasks.ConvertDebuggingFiles.Execute()

I've no idea why it's asking for a dll when the native library is in .so format.

I tried a reinstall, rebuilding, cleaning but no results.

Best Answer

Answers

Sign In or Register to comment.