Log in or register to post comments

Deploying Sample to Hololens not working

December 5, 2017 - 2:22am #1

Hey,

I've been trying to find out for 2 days now how to get the hololens sample deployed onto the hololens.

- I have the "Windows Mixed Reality" SDK turned on

-Virutal Reality supported turned on

- Vuforia Augmented Reality support turned on



I have also used IL2Cpp as scripting backend

 

InternetClient, Webcam, Microphone and SpatialPerception are checked.



Testing the App in Unity works - I get it to recognize the markers and so on.

Building works.

 

When opening in Visual Studio and trying to deploy the problems start:

It's telling me the IL2CPPOutputproject & My App are out of date.

When I try to build it I get errors (info: I changed the beginning of the filepaths for pasting here):

Fehler

C1083

Datei (Include) kann nicht ge?ffnet werden: "Shlobj.h": No such file or directory

Il2CppOutputProject

..\_App\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\Environment.cpp

6

MSB3073

Der Befehl ""..\_App\Il2CppOutputProject\\IL2CPP\build\il2cpp.exe" --libil2cpp-static --compile-cpp -architecture=x86 -configuration=Release -platform=winrt -outputpath="..\_App\\build\bin\Win32\Release\GameAssembly.dll" --data-folder="..\_App\\build\bin\Win32\Release\\" -cachedirectory="..\_App\\build\obj\il2cppOutputProject\Win32\Release\\" -generatedcppdir="..\_App\Il2CppOutputProject\\Source" --additional-defines=WINDOWS_UWP --additional-defines=UNITY_UWP --additional-defines=UNITY_WSA_10_0 --additional-defines=UNITY_WSA --additional-defines=UNITY_WINRT --additional-defines=PLATFORM_WINRT -dotnetprofile=Net45 -verbose --map-file-parser="..\_App\Il2CppOutputProject\\IL2CPP\MapFileParser\MapFileParser.exe"" wurde mit dem Code -532462766 beendet.

Il2CppOutputProject

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets

41

LNK1181

Eingabedatei ".._App\build\bin\Win32\Release\GameAssembly.lib" kann nicht geöffnet werden.

New Mars Marker

..\_App\New Mars Marker\LINK

1

Deploying Sample to Hololens not working

February 1, 2018 - 6:18pm #7

Hello everyone, 

I'm also having some trouble with the HoloLens sample. I'm following this tutorial (https://library.vuforia.com/articles/Training/Developing-Vuforia-Apps-for-HoloLens) which points me to this sample (https://assetstore.unity.com/packages/templates/packs/vuforia-hololens-sample-101553). I am using Unity 2017.2 with Visual Studios 2017. I was able to get the app to successfully deploy but it kept freezing after the loading screen. I finally deleted the loading screen from the build and tried to deploy it again. It got stuck again, but this time while trying to map the surroundings. It doesn't necessarily crash, but it freezes so I have to turn off my HoloLens in order to stop the app. Just posting to see if any one has experienced this. Any help would be appreciated. Thank you so much. 

I have attached my deploy output messages below. It starts skipping things on page 8-17. 

 

 

Deploying Sample to Hololens not working

December 15, 2017 - 2:12am #6

jorgeghospital wrote:

Changing to .NET give some errors in Unity environment. How did you achieved it?

 

Solved.Changing to .NET config is the solution to the library problem with sholbj.h. To solve problem when change to .NET, it´s important to delete the full building directory and create once again, usually the one called APP, because Unity needs to recompile the entire project. That makes Sample works fine.

Deploying Sample to Hololens not working

December 12, 2017 - 4:42am #5

Changing to .NET give some errors in Unity environment. How did you achieved it?

Deploying Sample to Hololens not working

December 11, 2017 - 5:55pm #4

Same problems here

Deploying Sample to Hololens not working

December 7, 2017 - 5:23pm #3

I was able to deploy the application in hololens through the hololens sample. Firstly I went on play setting and switched IL2CPP by net.

Next I created a build. In visual studio 2017 I had to go in the project and click with the right button and use the Rebuid Solution. Followed pictures

AttachmentSize
Image icon Rebuid Solution.png179.06 KB
Image icon net.PNG62.78 KB

Deploying Sample to Hololens not working

December 5, 2017 - 11:36am #2

I'm having the exact same issue. Any suggestions?

Thanks!

Log in or register to post comments