MrRobinOfficial / Guide-UnityDearImGui

This repository is designed to help developers learn how to get started with dear-imgui. This project includes tutorials and examples for using dear-imgui with the Unity.
19 stars 0 forks source link

Unexpected x64 architecture error #1

Open FuroTheLuc opened 1 month ago

FuroTheLuc commented 1 month ago

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 commented 1 month ago

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:

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.