wrld3d / wrld-oculus-demo

Alpha Oculus VR support for WRLD SDK - Mapping for VR

Home Page:http://www.wrld3d.com/virtual-reality-maps/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compile Issues in Oculus VR Sample Not working

shehzadq opened this issue · comments

Hello, I am facing below issue in compiling sample on Xcode 7.2
/Users/Name/Downloads/oculus-sdk-master/Samples/OculusWorldDemo/eeGeo/EegeoPlatform.h:6:10: 'OSXHttpCache.h' file not found

I have followed steps mentioned on github repo. If I replace this file from one of your other Eegeo repository I have then other file missing error "OSXWebLoadRequestFactory.h".

So can you please check and let me know if I am doing something wrong or files missing in github repo.

I believe this repository is not building against the latest eeGeo SDK.

We'll update it as soon as we can and let you know when it's back up and running!

This repository contains a proof of concept app that is built against our mapping platform. The reason its not building is that it hasn't been updated in line with improvements to the platform.

Given that its an open source app, you might want to have a go and bringing it up-to-date with the latest platform yourself, using the feature-by-feature example apps and integrated example app as reference.

Please don't hesitate to give us a shout if you run into any issues along the way. Also, we'd be really interested in hearing any feedback you have on the process.

@tim-jenks
I am able to remove earlier errors and files missing from project issues. But now facing below issue of missing dylibs.

There are two dynamic libraries missing from the platform when we update and these are referenced in xcode project.

•    libapps-on-maps-osx.dylib
•    libhttpxx.dylib

These two libraries are being referenced in the project (reference link from project settings):
1802C9F719B9A87B003D4E4E /* libapps-on-maps-osx.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libapps-on-maps-osx.dylib"; path = "../../../../../eegeo-platform/libapps-on-maps-osx.dylib"; sourceTree = ""; };
These libraries may be available in the older version of eegeo platform but they are not available now when we run up update.platform.sh

Tried to use the EEgeo library available for iOS example but its giving error that “this library is not build for this architecture”. OculusSDK sample is for Mac-OSX while example app has static libraries for iOS.

Glad to hear you've made progress and have the project compiling. We've changed distribution of the eegeo platform from dynamic to static libraries since this Oculus demo code was written.

If you take a look at the files pulled down by update_platform.sh you should see static equivalents of the missing dynamic libraries.

Suggest you modify the project to link against these static libraries. You can find reference for how this is done in the feature-by-feature example app.

Thanks for your quick response.

I linked this oculus project to the static libraries as in example app which are being pulled down from update_platform.sh but I am facing an error. Its saying this library is not supported for this architecture. I think these static libraries are built for i386 (iOS) architecture whereas we need x86_64 for oculus mac sample application.

This library we tried with Oculus sample "libapps-on-maps-cpp11.a"
Xcode : 7.2
Error:
"ld: in /Users/oculus-sdk/eegeo-platform/libapps-on-maps-cpp11-sim.a(EegeoWorld.o), building for OSX, but linking in object file built for iOS, for architecture x86_64"

Please suggest if I am doing something wrong while integrating static library from latest eegeo platform to oculus sample.

@shehzadq - I think you're linking the wrong static library - 'linking in object file built for iOS' indicates this is linking a static library containing iOS symbols. 'libapps-on-maps-cpp11-sim.a' indicates this static library is the iOS simulator. You want to be linking the OSX static library

Did you run ./update.platform.sh -p osx ? - first line in README.md

This will download the OSX SDK - which is now a static library that you need to link against.

@tim-jenks thanks for your response.
Previously static library was not downloaded but now with latest version 657 c6c6954e1516be0c1ea2544e3b93e8b2f1b62185 static libs downloaded and we are able to integrate with source code. Code compilation is achieved successfully but still application crashing after launch.

Textures missing from application bundle, I added few textures from Example Mobile App. But still I am facing issues in application.
I am adding Logs from Xcode when application crashes and also few application images before it get crash.

Debug_logs.docx

20160301_150127
20160301_150140
20160301_150141
20160301_150157

@shehzadq - It looks like there are still some resources are missing from the Oculus SDK project. From the logs, it looks like these are the resources needed for the embedded themes. The addition of embedded themes came after we stopped working on the Oculus, so it makes sense that they're missing.

Can you try copying the Textures/EmbeddedTheme assets from our Mobile Example App repository and adding them to your project? If any other resources appear to be missing according to the logs, the assets in the MEA repository would be a good place to check, as head of MEA's master branch builds and runs successfully against the latest SDK.

@ian-hutchinson thanks for update and quick response. I am adding some more info it might help.

Textures already copied from Mobile Example App repo and added to Oculus project. The few failed textures for which it expecting PNG, I updated all the extentions of embedded textures to png from pvr and still no luck.
I am pasting log below now it can be seen no failed texture error.

FPS: 59.754292 2016-03-01 16:06:50.084 OculusWorldDemo[3983:94842] API key validated FPS: 61.409306 2016-03-01 16:06:51.356 OculusWorldDemo[3983:94842] DownloadBootstrapResources state ran for 4336ms 2016-03-01 16:06:51.357 OculusWorldDemo[3983:94842] CityThemesLoadEmbeddedThemeState::Update() 2016-03-01 16:06:51.357 OculusWorldDemo[3983:94842] GetThemeData::GetThemeData: found theme?: true, Embedded?: true 2016-03-01 16:06:51.358 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/London_London_railDiffuse_repeat 2016-03-01 16:06:51.358 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_SanFran_roadDiffuse_repeat 2016-03-01 16:06:51.358 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_SanFran_wallDiffuse 2016-03-01 16:06:51.358 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture0 2016-03-01 16:06:51.358 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture0_LOD 2016-03-01 16:06:51.358 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture1 2016-03-01 16:06:51.359 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture10 2016-03-01 16:06:51.359 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture10_LOD 2016-03-01 16:06:51.359 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture11 2016-03-01 16:06:51.359 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture11_LOD 2016-03-01 16:06:51.359 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture12 2016-03-01 16:06:51.359 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture12_LOD 2016-03-01 16:06:51.359 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture13 2016-03-01 16:06:51.360 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture13_LOD 2016-03-01 16:06:51.360 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture14 2016-03-01 16:06:51.360 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture14_LOD 2016-03-01 16:06:51.360 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture15 2016-03-01 16:06:51.360 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture15_LOD 2016-03-01 16:06:51.360 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture16 (lldb)
and below image is of stack frame from xcode when it crash
screen shot 2016-03-01 at 4 15 17 pm
and back track

FPS: 59.754292
2016-03-01 16:06:50.084 OculusWorldDemo[3983:94842] API key validated
FPS: 61.409306
2016-03-01 16:06:51.356 OculusWorldDemo[3983:94842] DownloadBootstrapResources state ran for 4336ms
2016-03-01 16:06:51.357 OculusWorldDemo[3983:94842] CityThemesLoadEmbeddedThemeState::Update()
2016-03-01 16:06:51.357 OculusWorldDemo[3983:94842] GetThemeData::GetThemeData: found theme?: true, Embedded?: true
2016-03-01 16:06:51.358 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/London_London_railDiffuse_repeat
2016-03-01 16:06:51.358 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_SanFran_roadDiffuse_repeat
2016-03-01 16:06:51.358 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_SanFran_wallDiffuse
2016-03-01 16:06:51.358 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture0
2016-03-01 16:06:51.358 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture0_LOD
2016-03-01 16:06:51.358 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture1
2016-03-01 16:06:51.359 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture10
2016-03-01 16:06:51.359 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture10_LOD
2016-03-01 16:06:51.359 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture11
2016-03-01 16:06:51.359 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture11_LOD
2016-03-01 16:06:51.359 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture12
2016-03-01 16:06:51.359 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture12_LOD
2016-03-01 16:06:51.359 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture13
2016-03-01 16:06:51.360 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture13_LOD
2016-03-01 16:06:51.360 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture14
2016-03-01 16:06:51.360 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture14_LOD
2016-03-01 16:06:51.360 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture15
2016-03-01 16:06:51.360 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture15_LOD
2016-03-01 16:06:51.360 OculusWorldDemo[3983:94842] Added theme texture for Textures/EmbeddedTheme/SanFrancisco_TerrainTexture16
(lldb)

@shehzadq - could you make sure that all assets are PNG and not PVR. PVR are only supported on our iOS builds.

You'll need to use PNG on OS X.

Let me know if they are all PNG and we can investigate further. It wasn't clear from your last message or the logs.

If you need to create a fresh embedded manifest that contains PNG assets not just PVRs, you can find out how to here: https://github.com/eegeo/environment-themes/

@tim-jenks - All textures being used are PNG at Textures/EmbeddedTheme/
We updated extentions of pvr to png currently. With all PNG textures no luck.

Meanwhile, I will create fresh manifest as you suggested and will try.

I am adding one more screenshot for stack when it crash. It basically crash in Update EegeoPlatform.mm . Application is being crashed while sending an update call to EegeoWorld screen shot 2016-03-02 at 12 53 55 pm

You can have a look at latest source code with updated textures via this link : https://www.dropbox.com/s/a1as3er5rr59n1q/oculus-sdk_updated.zip?dl=0

We are running this on xcode 7.2 and Mac OSX 10.10.5

Looks like you're nearly there. We will take a look at the code drop and get back to you. FWIW, you're welcome to fork and submit latest to a fork on github as well!

Hi shehzadq, we've committed a fix and things are running OK for me. Let us know if you have any more problems.