openxrlab/xrslam

Help getting started

FreakTheMighty opened this issue · 1 comments

I'm interested in building the sample iOS app that has some videos posted, but I'm not clear on how to reproduce those results. A couple specific questions. Thanks in advance for your help.

What exactly do these instructions build? Is this building an iOS framework or the sample application?

### iOS
- In XRPrimer, run `./build-ios.sh` to configure some common dependencies.
- In XRSLAM, run `./build-ios.sh` to generate the XCode project using cmake.
+ If it is the first time to run its iOS version, `build-ios.conf` will be automatically generated, you need to assign the `IOS_DEVELOPMENT_TEAM` with your own development id, then run `./build-ios.sh` again to generate the xcode project.
+ It will cost about several minutes (Apple M1 Pro). Then the XCode project `xrslam-superbuild` will be automatically open. if not, you can also open this Xcode project manually by the path `project_path/build/iOS/xrslam-superbuild.xcodeproj`
- The target `xrslam-ios-visulaizer` is what you need to download to the iPhone, and an APP named `XRSLAM` will start automatically.
+ Be sure that your iPhone is supported by checking the [supported devices list](./supported_devices.md)
+ If the project failed to build in Xcode, try to clean the build folder using `cmd+shift+k`

Is this line up-to-date? I don't see a build-ios.sh script in the primer repository.

- In XRPrimer, run `./build-ios.sh` to configure some common dependencies.

Thank you for expressing interest in XRSLAM :D

To address your first question, this process will construct the sample application, identical to what you observed in the video.

Regarding your second question, you need to switch to the opencv3.4 branch, available at: https://github.com/openxrlab/xrprimer/tree/xrslam-opencv3.4.7. Once you've switched to this branch, you'll find the build-ios.sh script."