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

[BUG/QUESTION] DllNotFoundException cvextern on Ubuntu raspberry pi arm64 - What am I missing? #933

Open
JPasterkampRotec opened this issue May 8, 2024 · 1 comment
Assignees

Comments

@JPasterkampRotec
Copy link

Describe the bug
A DllNotFoundException occurs when calling any Emgu.CV code in my .Net 8 console application running on Ubuntu 24.04 on a raspberry pi 5.

OS / Platform
Building/Publishing on Windows 11 with Visual Studio 2022
Running on Ubuntu 24.04 (Raspberry Pi 5)
For extra clarity: I'm coding on Windows, but the application has to run on the Ubuntu raspberry pi.

.Net version
.Net 8

CPU Architecture
ARM64

Emgu CV package used
Installed multiple runtimes just to be sure:

<PackageReference Include="Emgu.CV" Version="4.9.0.5494" />
<PackageReference Include="Emgu.CV.runtime.debian-arm64" Version="4.9.0.5494" />
<PackageReference Include="Emgu.CV.runtime.ubuntu-x64" Version="4.9.0.5494" />
<PackageReference Include="Emgu.CV.runtime.windows" Version="4.9.0.5494" />

To Reproduce

  • Create a .Net 8 console app (with a single emgu call, like CVInvoke.Something())
  • Publish it as: FolderProfile, Debug, net8.0, Self-contained and linux-arm64
  • Copy the published files to the Ubuntu 24.04 raspberry pi
  • Make the runnable file executable with 'chmod +x ./RunnableFileName'
  • Run the executable with './RunnableFileName'

Expected behavior
I expected all library files (.so/.dll/etc) to be installed by having the runtime nuget packages installed.

Screenshots
The exception:
image

All files in the folder on Ubuntu:
image

Additional context
None

What I've tried already

@JPasterkampRotec JPasterkampRotec changed the title DllNotFoundException cvextern on Ubuntu raspberry pi arm64 - What am I missing? [BUG/QUESTION] DllNotFoundException cvextern on Ubuntu raspberry pi arm64 - What am I missing? May 8, 2024
@emgucv
Copy link
Owner

emgucv commented May 17, 2024

We do not have an official release that target Ubuntu 24.04 for Arm64 architecture.

For raspberry pi, we only provided the build for Raspbian arm64 & arm architecture
https://www.nuget.org/packages?q=emgu.cv.runtime.debian

If you need to use Ubuntu 24.04 with raspberry pi, you will need to compile the nuget package from source code:
https://www.emgu.com/wiki/index.php/Download_And_Installation#Ubuntu_24.04

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

No branches or pull requests

2 participants