Software Archive
Read-only legacy content
17061 Discussions

[Solved] Fix error when open sample project realsense in Unity 5

Ariska_Hidayat
Beginner
1,445 Views

When first open project on unity 5. I have a error.

Failed to load 'Assets/Plugins/libpxccpp2c.dll', expected 64 bit architecture (IMAGE_FILE_MACHINE_AMD64), but was IMAGE_FILE_MACHINE_I386. You must recompile your plugin for 64 bit architecture.
HandsViewer:Start() (at Assets/Scripts/HandsViewer.cs:76)
HandsViewer:Start() (at Assets/Scripts/HandsViewer.cs:46)

The cause is a library that is used is still x86. library should you use is x64. I will explain step by step solution in detail.

  1. First, after you copy the file from the project "Documents\RSSDK\Samples" Do not open before replacing the X64 library.
  2. Replace file "libpxccpp2c.dll" contained in "Assets\Plugins\libpxccpp2c.dll" by replacing the files contained in the "C:\Program Files(x86)\Intel\RSSDK\bin\x64\libpxccpp2c.dll"
  3. Replace file "libpxcclr.unity.dll" contained in "Assets\Plugins.Managed\libpxcclr.unity.dll" by replacing the files contained in the "C:\Program Files(x86)\ Intel\RSSDK\bin\x64\libpxcclr.unity.dll".
  4. After replacing the library file. then open the project in Unity3D.

Hopefully useful and good luck.

0 Kudos
2 Replies
Sergio_J__C_
Beginner
1,445 Views

Do you have a files? maybe you cant attach this files here

0 Kudos
Ariska_Hidayat
Beginner
1,445 Views

Yes, I can. You just replace this file in the folder assets unity. :D

0 Kudos
Reply