Log in or register to post comments

Vuforia 2.8.7 upgrade error and missing sample

January 1, 2014 - 10:40am #1

Two problems:

Upgraded an old project according to the migration instructions here:

https://developer.vuforia.com/resources/dev-guide/migrating-your-unity-project

But I'm getting the following error:

Assets/Qualcomm Augmented Reality/Scripts/DefaultTrackableEventHandler.cs(50,52): error CS0117: `TrackableBehaviour.Status' does not contain a definition for `EXTENDED_TRACKED'

Tried reimport all, didn't help.  

And I can't find the sample code for the Video Playback Behaviour anymore.  It used to be here:

https://developer.vuforia.com/resources/sample-apps/video-playback-sample-app

Did it get moved?

Thanks.

Vuforia 2.8.7 upgrade error and missing sample

January 30, 2014 - 6:42am #12

I've run into the same issues when upgrading our Vuforia Master Project. We keep a master on the asset server as we have written a few extension scripts and this (should) allow us to update vuforia into this project, check changes using the diff, before repackaging into our own. 

Why was it decided to move so many of the original source files into .dll?

Vuforia 2.8.7 upgrade error and missing sample

January 5, 2014 - 5:54pm #11

Thanks, that would probably be a good idea.  And yes, it built after deleting the scripts folder and readding (with auto refresh off).  Next experiemnt is to see if I can surgically upgrade a project removing the unnecessary scripts and importing the new package.  Though in most cases I can imagine deleting the scripts folder to work well enough.

Cheers, thanks again for you help.

Vuforia 2.8.7 upgrade error and missing sample

January 1, 2014 - 6:36pm #10

Thanks for the feedback, and please update the thread when you know whether the build is running properly. I think we'll need to extend the migration docs.

Vuforia 2.8.7 upgrade error and missing sample

January 1, 2014 - 5:58pm #9

Okay, I'm trying a build now.  I also created a project from scratch so I could see what changed between versions.

I tried deleting ITrackableEventHandler but it was a little like pulling on a loose thread.  Ran a diff on both directories to get a sense for how much difference there was between the two (is this listed somewhere else?)  If not I'll include it here so anyone interested can extract the files that might be causing the conflicts.

I did try a version where I just deleted the whole scripts folder and reimported, that seems to have worked but I haven't tried a full build yet to see if it's in tact.  If anyone else stumbles across these directions be sure to disable the auto-refresh in preferences or else you could end up in a very bad place.

Only in 2.6.7: CameraDevice.cs
Only in 2.6.7: DataSetTrackableBehaviour.cs
Only in 2.6.7: CylinderTarget.cs
Only in 2.6.7: DataSet.cs
Only in 2.6.7: ImageTargetBuilder.cs
Only in 2.6.7: ImageTracker.cs
Only in 2.6.7: GeometryStructs.cs
Only in 2.6.7: ICloudRecoEventHandler.cs
Only in 2.6.7: ILoadLevelEventHandler.cs
Only in 2.6.7: ITextRecoEventHandler.cs
Only in 2.6.7: ITrackableEventHandler.cs
Only in 2.6.7: ITrackerEventHandler.cs
Only in 2.6.7: IUserDefinedTargetEventHandler.cs
Only in 2.6.7: IVideoBackgroundEventHandler.cs
Only in 2.6.7: IVirtualButtonEventHandler.cs
Only in 2.6.7: Image.cs
Only in 2.6.7: ImageTarget.cs
Only in 2.6.7: Marker.cs
Only in 2.6.7: StateManager.cs
Only in 2.6.7: TargetFinder.cs
Only in 2.6.7: TextTracker.cs
Only in 2.6.7: Trackable.cs
Only in 2.6.7: TrackableBehaviour.cs
Only in 2.6.7: TrackableSource.cs
Only in 2.6.7: Tracker.cs
Only in 2.6.7: TrackerManager.cs
Only in 2.6.7: MarkerTracker.cs
Only in 2.6.7: MultiTarget.cs
Only in 2.6.7: QCARManager.cs
Only in 2.6.7: QCARRenderer.cs
Only in 2.6.7: QCARRuntimeUtilities.cs
Only in 2.6.7: QCARUnity.cs
Only in 2.6.7: VirtualButton.cs
Only in 2.6.7: Word.cs
Only in 2.6.7: WordList.cs
Only in 2.6.7: WordManager.cs
Only in 2.6.7: WordResult.cs
 
Files 2.6.7/DefaultInitializationErrorHandler.cs and 2.8.7/DefaultInitializationErrorHandler.cs differ
Files 2.6.7/DataSetLoadBehaviour.cs and 2.8.7/DataSetLoadBehaviour.cs differ
Files 2.6.7/CloudRecoBehaviour.cs and 2.8.7/CloudRecoBehaviour.cs differ
Files 2.6.7/CylinderTargetBehaviour.cs and 2.8.7/CylinderTargetBehaviour.cs differ
Files 2.6.7/DefaultTrackableEventHandler.cs and 2.8.7/DefaultTrackableEventHandler.cs differ
Files 2.6.7/GLErrorHandler.cs and 2.8.7/GLErrorHandler.cs differ
Files 2.6.7/ImageTargetBehaviour.cs and 2.8.7/ImageTargetBehaviour.cs differ
Files 2.6.7/Internal/BGRenderingBehaviour.cs and 2.8.7/Internal/BGRenderingBehaviour.cs differ
Files 2.6.7/KeepAliveBehaviour.cs and 2.8.7/KeepAliveBehaviour.cs differ
Files 2.6.7/MaskOutBehaviour.cs and 2.8.7/MaskOutBehaviour.cs differ
Files 2.6.7/MarkerBehaviour.cs and 2.8.7/MarkerBehaviour.cs differ
Files 2.6.7/MultiTargetBehaviour.cs and 2.8.7/MultiTargetBehaviour.cs differ
Files 2.6.7/QCARBehaviour.cs and 2.8.7/QCARBehaviour.cs differ
Files 2.6.7/SetBGCameraLayerBehaviour.cs and 2.8.7/SetBGCameraLayerBehaviour.cs differ
Files 2.6.7/TextRecoBehaviour.cs and 2.8.7/TextRecoBehaviour.cs differ
Files 2.6.7/TurnOffBehaviour.cs and 2.8.7/TurnOffBehaviour.cs differ
Files 2.6.7/TurnOffWordBehaviour.cs and 2.8.7/TurnOffWordBehaviour.cs differ
Files 2.6.7/UserDefinedTargetBuildingBehaviour.cs and 2.8.7/UserDefinedTargetBuildingBehaviour.cs differ
Files 2.6.7/VirtualButtonBehaviour.cs and 2.8.7/VirtualButtonBehaviour.cs differ
Files 2.6.7/WebCamBehaviour.cs and 2.8.7/WebCamBehaviour.cs differ
Files 2.6.7/WordBehaviour.cs and 2.8.7/WordBehaviour.cs differ
 
Only in 2.8.7: CylinderTargetBehaviour.cs.meta
Only in 2.8.7: CloudRecoBehaviour.cs.meta
Only in 2.8.7: GLErrorHandler.cs.meta
Only in 2.8.7: DataSetLoadBehaviour.cs.meta
Only in 2.8.7: DefaultInitializationErrorHandler.cs.meta
Only in 2.8.7: DefaultTrackableEventHandler.cs.meta
Only in 2.8.7: ImageTargetBehaviour.cs.meta
Only in 2.8.7: KeepAliveBehaviour.cs.meta
Only in 2.8.7: MarkerBehaviour.cs.meta
Only in 2.8.7: MaskOutBehaviour.cs.meta
Only in 2.8.7: MultiTargetBehaviour.cs.meta
Only in 2.8.7: QCARBehaviour.cs.meta
Only in 2.8.7: SetBGCameraLayerBehaviour.cs.meta
Only in 2.8.7: TextRecoBehaviour.cs.meta
Only in 2.8.7: TurnOffBehaviour.cs.meta
Only in 2.8.7: TurnOffWordBehaviour.cs.meta
Only in 2.8.7: UserDefinedTargetBuildingBehaviour.cs.meta
Only in 2.8.7: VirtualButtonBehaviour.cs.meta
Only in 2.8.7: WebCamBehaviour.cs.meta
Only in 2.8.7: WordBehaviour.cs.meta
 
Only in 2.8.7: Internal.meta
Only in 2.8.7/Internal: AndroidUnityPlayer.cs
Only in 2.8.7/Internal: AndroidUnityPlayer.cs.meta
Only in 2.8.7/Internal: BGRenderingBehaviour.cs.meta
Only in 2.6.7/Internal: CameraDeviceImpl.cs
Only in 2.6.7/Internal: CloudRecoImageTargetImpl.cs
Only in 2.8.7/Internal: ComponentFactoryStarterBehaviour.cs
Only in 2.8.7/Internal: ComponentFactoryStarterBehaviour.cs.meta
Only in 2.8.7/Internal: Qualcomm.Vuforia.UnityExtensions.dll
Only in 2.8.7/Internal: Qualcomm.Vuforia.UnityExtensions.dll.meta
Only in 2.8.7/Internal: VuforiaBehaviourComponentFactory.cs
Only in 2.8.7/Internal: VuforiaBehaviourComponentFactory.cs.meta
 
 
Only in 2.6.7/Internal: CylinderTargetImpl.cs
Only in 2.6.7/Internal: DataSetImpl.cs
Only in 2.6.7/Internal: IEditorCylinderTargetBehaviour.cs
Only in 2.6.7/Internal: IEditorDataSetTrackableBehaviour.cs
Only in 2.6.7/Internal: IEditorImageTargetBehaviours.cs
Only in 2.6.7/Internal: IEditorMarkerBehaviour.cs
Only in 2.6.7/Internal: IEditorMultiTargetBehaviour.cs
Only in 2.6.7/Internal: IEditorTextRecoBehaviour.cs
Only in 2.6.7/Internal: IEditorTrackableBehaviour.cs
Only in 2.6.7/Internal: IEditorVirtualButtonBehaviour.cs
Only in 2.6.7/Internal: IEditorWordBehaviour.cs
Only in 2.6.7/Internal: ImageImpl.cs
Only in 2.6.7/Internal: ImageTargetBuilderImpl.cs
Only in 2.6.7/Internal: ImageTargetImpl.cs
Only in 2.6.7/Internal: ImageTrackerImpl.cs
Only in 2.6.7/Internal: MarkerImpl.cs
Only in 2.6.7/Internal: MarkerTrackerImpl.cs
Only in 2.6.7/Internal: MultiTargetImpl.cs
Only in 2.6.7/Internal: NullWebCamTexAdaptor.cs
Only in 2.6.7/Internal: QCARMacros.cs
Only in 2.6.7/Internal: QCARManagerImpl.cs
Only in 2.6.7/Internal: QCARRendererImpl.cs
Only in 2.6.7/Internal: QCARUnityImpl.cs
Only in 2.6.7/Internal: StateManagerImpl.cs
Only in 2.6.7/Internal: TargetFinderImpl.cs
Only in 2.6.7/Internal: TextTrackerImpl.cs
Only in 2.6.7/Internal: TextureRenderer.cs
Only in 2.6.7/Internal: TrackableImpl.cs
Only in 2.6.7/Internal: TrackableSourceImpl.cs
Only in 2.6.7/Internal: TrackerManagerImpl.cs
Only in 2.6.7/Internal: VirtualButtonImpl.cs
Only in 2.6.7/Internal: WebCamImpl.cs
Only in 2.6.7/Internal: WebCamProfile.cs
Only in 2.6.7/Internal: WebCamTexAdaptor.cs
Only in 2.6.7/Internal: WebCamTexAdaptorImpl.cs
Only in 2.6.7/Internal: WordImpl.cs
Only in 2.6.7/Internal: WordListImpl.cs
Only in 2.6.7/Internal: WordManagerImpl.cs
Only in 2.6.7/Internal: WordResultImpl.cs
Only in 2.6.7/Internal: Wrapper
 
 
 
 
 
 
 
 
 
 
 
 
 

Vuforia 2.8.7 upgrade error and missing sample

January 1, 2014 - 4:37pm #8

See if you have an ITrackableEventHandler CS file in you project, and if so remove it.

If that doesn't work, try making a copy of your project, so that you have a backup, delete the Qualcomm Augmented Reality / Scripts folder, and then re-import the VP sample or the extension. 

I think that you're running into a collision in the definition of these classes, but Unity isn't recognizing the duplicates because the new ones are defined in the DLL.

Is this the only error you're still seeing?

Vuforia 2.8.7 upgrade error and missing sample

January 1, 2014 - 1:53pm #7

I had upgraded using the unity extension package alone.  

I've imported the VideoPlayback sample package and the error persists.

Are there any other files that could be causing a conflict I should be removing?  I can't see if there is a connection between these errors and the new code changes.

Vuforia 2.8.7 upgrade error and missing sample

January 1, 2014 - 1:27pm #6

Your extension name is correct. Try importing the full video sample into your project to see if it will rectify that error. 

Had you upgraded using the extension unitypackage alone?

Vuforia 2.8.7 upgrade error and missing sample

January 1, 2014 - 1:19pm #5

The VP sample is now packaged with the rest of the Unity samples here - https://developer.vuforia.com/resources/sample-apps

Oh okay, thanks!

Do you have a UnityExtensions.dll in Qualcomm Augmented Reality / Scripts / Internal?

Yes but it's called Qualcomm.Vuforia.UnityExtensions.dll.  Is that good or bad?
 
And that is the DefaultTrackableEventHandler.cs I have in my project, letter for letter.
 
 

Vuforia 2.8.7 upgrade error and missing sample

January 1, 2014 - 1:02pm #4

The VP sample is now packaged with the rest of the Unity samples here - https://developer.vuforia.com/resources/sample-apps

Do you have a UnityExtensions.dll in Qualcomm Augmented Reality / Scripts / Internal?

.. and is the following the DefaultTrackableEventHandler.cs that you have in your project. 

 

 

 

/*==============================================================================
Copyright (c) 2010-2013 Qualcomm Connected Experiences, Inc.
All Rights Reserved.
Confidential and Proprietary - Qualcomm Connected Experiences, Inc.
==============================================================================*/

using UnityEngine;

/// <summary>
/// A custom handler that implements the ITrackableEventHandler interface.
/// </summary>
public class DefaultTrackableEventHandler : MonoBehaviour,
                                            ITrackableEventHandler
{
    #region PRIVATE_MEMBER_VARIABLES
 
    private TrackableBehaviour mTrackableBehaviour;
    
    #endregion // PRIVATE_MEMBER_VARIABLES



    #region UNTIY_MONOBEHAVIOUR_METHODS
    
    void Start()
    {
        mTrackableBehaviour = GetComponent<TrackableBehaviour>();
        if (mTrackableBehaviour)
        {
            mTrackableBehaviour.RegisterTrackableEventHandler(this);
        }
    }

    #endregion // UNTIY_MONOBEHAVIOUR_METHODS



    #region PUBLIC_METHODS

    /// <summary>
    /// Implementation of the ITrackableEventHandler function called when the
    /// tracking state changes.
    /// </summary>
    public void OnTrackableStateChanged(
                                    TrackableBehaviour.Status previousStatus,
                                    TrackableBehaviour.Status newStatus)
    {
        if (newStatus == TrackableBehaviour.Status.DETECTED ||
            newStatus == TrackableBehaviour.Status.TRACKED ||
            newStatus == TrackableBehaviour.Status.EXTENDED_TRACKED)
        {
            OnTrackingFound();
        }
        else
        {
            OnTrackingLost();
        }
    }

    #endregion // PUBLIC_METHODS



    #region PRIVATE_METHODS


    private void OnTrackingFound()
    {
        Renderer[] rendererComponents = GetComponentsInChildren<Renderer>(true);
        Collider[] colliderComponents = GetComponentsInChildren<Collider>(true);

        // Enable rendering:
        foreach (Renderer component in rendererComponents)
        {
            component.enabled = true;
        }

        // Enable colliders:
        foreach (Collider component in colliderComponents)
        {
            component.enabled = true;
        }

        Debug.Log("Trackable " + mTrackableBehaviour.TrackableName + " found");
    }


    private void OnTrackingLost()
    {
        Renderer[] rendererComponents = GetComponentsInChildren<Renderer>(true);
        Collider[] colliderComponents = GetComponentsInChildren<Collider>(true);

        // Disable rendering:
        foreach (Renderer component in rendererComponents)
        {
            component.enabled = false;
        }

        // Disable colliders:
        foreach (Collider component in colliderComponents)
        {
            component.enabled = false;
        }

        Debug.Log("Trackable " + mTrackableBehaviour.TrackableName + " lost");
    }

    #endregion // PRIVATE_METHODS
}

 

Vuforia 2.8.7 upgrade error and missing sample

January 1, 2014 - 12:53pm #3

Thanks for getting back so quickly, would love to get this sorted today.

I deleted TrackableBehaviour and now am getting the following error:

Assets/Qualcomm Augmented Reality/Scripts/DefaultTrackableEventHandler.cs(30,33): error CS1502: The best overloaded method match for `TrackableBehaviour.RegisterTrackableEventHandler(ITrackableEventHandler)' has some invalid arguments
 
I checked and it is the newest DefaultTrackableEventHandler.cs script which its referring to.
 
And sorry I may have mis-spoke but the problem is I cannot physically locate the download link to the new VideoPlayback Sample Package anywhere.  There is no longer a link on that page (I'm viewing in Safari and Firefox).
 
Didn't there used to be a link here (see attachment):
 

Vuforia 2.8.7 upgrade error and missing sample

January 1, 2014 - 12:23pm #2

The TrackableBehaviour class is now in the UnityExtensions DLL. Check to see if you still have the old version as a CS file, and if so remove it.

The VideoPlaybackBehaviour should be in the Vuforia Video Playback / Scripts folder, which is imported w/ the VP sample. 

Log in or register to post comments