Search Unity

QCAR Unity Extension DLL Error for QCARUnityPlayer

Discussion in 'Android' started by dlb, Nov 16, 2010.

  1. dlb

    dlb

    Joined:
    Oct 13, 2010
    Posts:
    4
    I'm getting the following error when attempting to run the ImageTarget teapot sample in the editor..


    DllNotFoundException: QCARUnityPlayer
    at (wrapper managed-to-native) TrackerScript:updateQCAR (intptr,int)

    at TrackerScript.LateUpdate () [0x00000] in [LOCAL PATH]\Qualcomm Augmented Reality\Scripts\TrackerScript.cs:200

    (Filename: Assets/Qualcomm Augmented Reality/Scripts/TrackerScript.cs Line: 200)

    --------------------------------------------------
    Here's the relevant code section..



    // updateQCAR loads the latest camera image to texture memory
    // and retrieves the current trackable if one is visible
    if (updateQCAR(m_TrackablePtr, m_NumAvailableTrackables) == 0)
    {
    // Use to turn off target as soon as detection is lost
    if (m_PoseType == PoseType.Camera)
    camera.transform.localPosition = m_CamOutOfScenePosition;
    return;
    }

    Otherwise the sample builds fine and runs on my N1 device. It's when I attempt to run it in-editor that I encounter this error. I haven't found a QCARUnityPlayer.dll on my system.

    Any advice?
     
  2. eriQue

    eriQue

    Unity Technologies

    Joined:
    May 25, 2010
    Posts:
    595
    That's because QC didn't provide a native library for Windows (or Mac); only for Android. Until they do it won't be possible to call 'updateQCAR()' from any platform but Android.
     
  3. dlb

    dlb

    Joined:
    Oct 13, 2010
    Posts:
    4
    Good to know - thanks