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

Unexpected x64 architecture error #1

Open
FuroTheLuc opened this issue Jul 13, 2024 · 1 comment
Open

Unexpected x64 architecture error #1

FuroTheLuc opened this issue Jul 13, 2024 · 1 comment

Comments

@FuroTheLuc
Copy link

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."

@MrRobinOfficial
Copy link
Owner

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.

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