artoolkitx / arunityx

artoolkitX for Unity, providing high-performance video acquisition, marker and texture tracking and full Unity Editor support
https://www.artoolkitx.org/
Other
41 stars 22 forks source link

DllNotFoundException: ARX #8

Closed EonStrife closed 1 year ago

EonStrife commented 5 years ago
  1. I checked-out : https://github.com/artoolkitx/arunityx

  2. I checked-out : https://github.com/artoolkitx/artoolkitx and put them to D:\Projects\ARToolkit\arunityx\Source\Extras\artoolkitx

  3. I went to : D:\Projects\ARToolkit\arunityx\Source and opened GIT BASH, and executed command .\build.sh windows --dev

  4. I got error "+ cp -rf /d/Projects/ARToolkit/arunityx/Source/Extras/artoolkitx/SDK/bin/ARX.dll /d/Projects/ARToolkit/arunityx/Source/../Source/Package/Assets/Plugins/x86_64/ cp: cannot create regular file '/d/Projects/ARToolkit/arunityx/Source/../Source/Package/Assets/Plugins/x86_64/': Not a directory"

So I manually copied ARX.dll from D:\Projects\ARToolkit\arunityx\Source\Extras\artoolkitx\SDK\bin\ to D:\Projects\ARToolkit\arunityx\Source\Package\Assets\Plugins\x86_64

  1. I opened an example scene, BarcodeScene.unity

  2. Upon loading, I received three of this error on my Console : DllNotFoundException: ARX PluginFunctionsARX.arwRegisterLogCallback (.PluginFunctionsLogCallback lcb) (at Assets/artoolkitX-Unity/Scripts/PluginFunctionsARX.cs:89)

I see that the ARX.dll is already in Assets/Plugins/x86_64 in my unity Project tab.

BTW, sometimes I also got error : FileNotFoundException: D:/Projects/ARToolkit/arunityX Samples/barcode/arxExampl_Data/Plugins/ARvideo.dll does not exist

I see that the ARVideo.dll was not built, but ARVideo.lib was built.

Thanks.

ThorstenBux commented 5 years ago

Why are you running .\build.sh windows --dev and not .\build.sh windows

ThorstenBux commented 5 years ago

My response here might help you too: https://github.com/artoolkitx/arunityx/issues/6

EonStrife commented 5 years ago

Originally I was usinng .\build.sh too, but I also got the ARVideo.dll error. I thought I missed something, so I tried to use --dev, thinking that it may build evertyhing.

Thanks, I am going to check your response in Issue#6 :D

JeffBail commented 5 years ago

I got BarcodeScene.unity to work by installing the artoolkitx 1.0.2 release and adding its SDK\bin to my path before starting Unity. My guess is that ARX.dll is depending on other DLL's within that bin folder so you could probably just copy *.dll into your plugins folder as well though I've not tested that yet.