MrRobinOfficial/Guide-UnityDearImGui

Unexpected x64 architecture error

Opened this issue · 1 comments

Recieved this error when creating a Dear Img Ui Component:
"Failed to load '[unity project dir]/Library/PackageCache/com.realgames.dear-imgui@101996d5fc/Plugins/win/x64/cimgui.dll', expected x64 architecture, but was Unknown architecture. You must recompile your plugin for x64 architecture."

Hi, this repository is a guide on how to install Dear ImGui. If you're experiencing issues with the package, you can report them to the official repository.

Please note that this package is 4+ years old, and there might be newer, better-maintained repos for Dear ImGui.

You can also try this package instead.

Regarding your specific problem, the issue is that the .dll file is expected to have an x64 architecture. To fix this, follow these steps:

  • Click on the .dll file.
  • In the Inspector window, go to Platform settings.
  • Select either x64 for the CPU option.
  • Click on apply

A .dll (dynamic link library) is compiled code that must target specific hardware (32-bit or 64-bit CPU). Since 32-bit CPUs are outdated, it's recommended to use 64-bit (x64). For reference, a 32-bit CPU is denoted as x86.

Since, cimgui.dll is in the x64 folder on Windows, therefore, you can specify those details inside the inspector window of that .dll file.

Cheers,
Robin.