Skip to content

DllNotFound exception while attempt to start on linux #296

@nathan130200

Description

@nathan130200

I'm having issue while attempt to run imgui.net on linux:

Unhandled exception. System.DllNotFoundException: Unable to load shared library 'cimgui' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libcimgui: cannot open shared object file: No such file or directory
   at ImGuiNET.ImGuiNative.igCreateContext(ImFontAtlas* shared_font_atlas)
   at ImGuiNET.ImGui.CreateContext()
   at Silk.NET.OpenGL.Extensions.ImGui.ImGuiController.Init(GL gl, IView view, IInputContext input)
   at Silk.NET.OpenGL.Extensions.ImGui.ImGuiController..ctor(GL gl, IView view, IInputContext input, Nullable`1 imGuiFontConfig, Action onConfigureIO)
   at Silk.NET.OpenGL.Extensions.ImGui.ImGuiController..ctor(GL gl, IView view, IInputContext input)
   at Program.<>c__DisplayClass0_0.<<Main>$>b__0() in /home/vera/Documents/Projects/silk-imgui/Program.cs:line 29
   at Silk.NET.Windowing.Internals.ViewImplementationBase.Initialize()
   at Silk.NET.Windowing.WindowExtensions.Run(IView view)
   at Program.<Main>$(String[] args) in /home/vera/Documents/Projects/silk-imgui/Program.cs:line 76

I'm using Silk.net for OpenGL backend, isn't silk.net problem because OpenGL window opens, but while creating imgui context just crashes.

Additional notes:

Distributor ID: Ubuntu
Description:    Linux Lite 4.6
Release:        18.04
Codename:       bionic

.NET: net6.0

Using regular silk.net example as follow:
Silk.Net - OpenGL Demos: Program.cs

I had made extra step trying to append LD_LIBRARY_PATH to all folders in bin/debug/net6.0/runtimes but still same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions