Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity Compass for WP8.1

Discussion in 'Windows' started by khaerul10056, Dec 17, 2015.

  1. khaerul10056

    khaerul10056

    Joined:
    May 28, 2015
    Posts:
    8
    Can anyone help me to solve the compass plugin in WP8.1, actually I want to make a qibla compass inside unity project.

    thanks in advanced...
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,642
    OK, but exactly is your problem?
     
  3. khaerul10056

    khaerul10056

    Joined:
    May 28, 2015
    Posts:
    8
    It can run without any problem when play in editor, but when building to WP8.1 device targetI'm gettin' error:

    Exception: Failed to build Visual Studio project using arguments 'C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe "D:\Bitbucket\SholatGuide\Outputs\WP8.1\Sholat Guide.sln" /nologo /maxcpucount /p:Configuration=Release /p:platform=ARM /p:SolutionDir="D:\\Bitbucket\\SholatGuide\\Outputs\\WP8.1\\" /t:Build /clp:Verbosity=minimal'.
    Output: UnityInstallationDir "C:\Program Files\Unity\Editor".
    UnityWSAPlayerDir "C:\Program Files\Unity\Editor\Data\PlaybackEngines\metrosupport".
    UnityProjectDir "D:\Bitbucket\SholatGuide".
    Copying unprocessed assemblies...
    C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1886,5): error MSB3774: Could not find SDK "Microsoft.VCLibs, Version=12.0". [D:\Bitbucket\SholatGuide\Outputs\WP8.1\Sholat Guide\Sholat Guide.csproj]


    ApplicationLauncherImpl.RunMSBuild (System.String args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:290)
    ApplicationLauncherImpl.Build () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:174)
    ApplicationLauncher.BuildAndRun (BuildLaunchPlayerArgs args, WSASDK wsaSDK) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:56)
    ApplicationLauncher.BuildAndRun (BuildLaunchPlayerArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:46)
    UnityEditor.Metro.BuildPostprocessor.LaunchPlayer (BuildLaunchPlayerArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:72)
    UnityEditor.PostprocessBuildPlayer.Launch (BuildTarget target, System.String path, System.String productName, BuildOptions options) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:282)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
     
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,642
    Do you have Visual Studio 2013 installed with Windows Phone 8,1 support?
    Try using only Build from Unity and then manually build from Visual Studio.
     
  5. khaerul10056

    khaerul10056

    Joined:
    May 28, 2015
    Posts:
    8
    I used both vs 2013 and 2015 with Windows Phone 8, 8.1 and 10 SDK on Windows 8.1 64Bit and Unity 5.2.2f1. Nothing change, still getting same error message...

    When build from visual studio 2013 not support.
    When build from vs 2015 get error like this :

    - Severity Code Description Project File Line Suppression State
    Error Could not find SDK "Microsoft.VCLibs, Version=12.0". Sholat Guide

    - Severity Code Description Project File Line Suppression State
    Warning The referenced component 'Microsoft Visual C++ 2013 Runtime Package for Windows' could not be found. Sholat Guide
     

    Attached Files:

  6. khaerul10056

    khaerul10056

    Joined:
    May 28, 2015
    Posts:
    8
    When I try to build in Unity 5.3.0f4 with VS 2015 and WP8.1 installed can run on emulator WP.8.1 but all of buttons can't be execute, event I've change button script to new API.
    Then I load another scene in build setting get this error.
    It about PDB and UnityPlayer.dll
     

    Attached Files:

  7. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,642
    Looks like some embedded breakpoint is hit. Just hit Continue.
    If you don't need to debug the code, you can try building Release configuration, that would work faster and you wouldn't hit those embedded breakpoints (though, they usually indicate there is something wrong).