Search Unity

Question ARToolKit Problem

Discussion in 'AR' started by eliy5550_unity, Apr 19, 2022.

  1. eliy5550_unity

    eliy5550_unity

    Joined:
    Apr 19, 2022
    Posts:
    1
    Hi there,

    I'm trying to build a dummy AR app that shows a cube on top of the "Hiro Marker".

    Everything works perfectly in the editor.

    On "Mono" everything builds succesfully but the app crashes on start.

    I was told to build for ARM64 and IL2CPP, but the build fails:

    upload_2022-4-19_15-30-31.png

    I'm stuck, please help!

    more info on the error:
    Building Library\Bee\artifacts\Android\iz17e\libil2cpp.so failed with output:
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:22988: error: undefined reference to 'arwRegisterLogCallback'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:22997: error: undefined reference to 'arwSetLogLevel'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23006: error: undefined reference to 'arwInitialiseAR'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23016: error: undefined reference to 'arwInitialiseARWithOptions'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23030: error: undefined reference to 'arwGetARToolKitVersion'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23047: error: undefined reference to 'arwGetError'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23057: error: undefined reference to 'arwShutdownAR'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23078: error: undefined reference to 'arwStartRunningB'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23121: error: undefined reference to 'arwStartRunningStereoB'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23139: error: undefined reference to 'arwIsRunning'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23149: error: undefined reference to 'arwStopRunning'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23166: error: undefined reference to 'arwGetProjectionMatrix'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23190: error: undefined reference to 'arwGetProjectionMatrixStereo'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23204: error: undefined reference to 'arwGetVideoParams'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23229: error: undefined reference to 'arwGetVideoParamsStereo'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23253: error: undefined reference to 'arwCapture'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23263: error: undefined reference to 'arwUpdateAR'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23273: error: undefined reference to 'arwUpdateTexture'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23283: error: undefined reference to 'arwUpdateTextureStereo'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23293: error: undefined reference to 'arwUpdateTexture32'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23303: error: undefined reference to 'arwUpdateTexture32Stereo'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23313: error: undefined reference to 'arwUpdateTextureGL'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23323: error: undefined reference to 'arwUpdateTextureGLStereo'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23333: error: undefined reference to 'arwSetUnityRenderEventUpdateTextureGLTextureID'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23342: error: undefined reference to 'arwSetUnityRenderEventUpdateTextureGLStereoTextureIDs'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23351: error: undefined reference to 'arwGetMarkerPatternCount'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23368: error: undefined reference to 'arwGetMarkerPatternConfig'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23385: error: undefined reference to 'arwGetMarkerPatternImage'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23395: error: undefined reference to 'arwGetMarkerOptionBool'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23405: error: undefined reference to 'arwSetMarkerOptionBool'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23414: error: undefined reference to 'arwGetMarkerOptionInt'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23424: error: undefined reference to 'arwSetMarkerOptionInt'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23433: error: undefined reference to 'arwGetMarkerOptionFloat'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23443: error: undefined reference to 'arwSetMarkerOptionFloat'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23452: error: undefined reference to 'arwSetVideoDebugMode'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23461: error: undefined reference to 'arwGetVideoDebugMode'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23471: error: undefined reference to 'arwSetVideoThreshold'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23480: error: undefined reference to 'arwGetVideoThreshold'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23490: error: undefined reference to 'arwSetVideoThresholdMode'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23499: error: undefined reference to 'arwGetVideoThresholdMode'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23509: error: undefined reference to 'arwSetLabelingMode'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23518: error: undefined reference to 'arwGetLabelingMode'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23528: error: undefined reference to 'arwSetBorderSize'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23537: error: undefined reference to 'arwGetBorderSize'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23547: error: undefined reference to 'arwSetPatternDetectionMode'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23556: error: undefined reference to 'arwGetPatternDetectionMode'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23566: error: undefined reference to 'arwSetMatrixCodeType'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23575: error: undefined reference to 'arwGetMatrixCodeType'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23585: error: undefined reference to 'arwSetImageProcMode'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23594: error: undefined reference to 'arwGetImageProcMode'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23604: error: undefined reference to 'arwSetNFTMultiMode'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23613: error: undefined reference to 'arwGetNFTMultiMode'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23627: error: undefined reference to 'arwAddMarker'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23641: error: undefined reference to 'arwRemoveMarker'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23651: error: undefined reference to 'arwRemoveAllMarkers'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23661: error: undefined reference to 'arwQueryMarkerVisibility'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23678: error: undefined reference to 'arwQueryMarkerTransformation'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23702: error: undefined reference to 'arwQueryMarkerTransformationStereo'
    D:/Unity_Projects/ARToolKit/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:23737: error: undefined reference to 'arwLoadOpticalParams'
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
     
  2. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,062
    ARToolKit is not a Unity product, so you are likely to get better support by reaching out to that team directly.
     
  3. electricsheep

    electricsheep

    Joined:
    Jun 3, 2013
    Posts:
    3
    what a nice icon ... is this laughing about our problems?