Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How I compile this project in Xcode #756

Open
nassifbasheer opened this issue Jun 3, 2019 · 7 comments
Open

How I compile this project in Xcode #756

nassifbasheer opened this issue Jun 3, 2019 · 7 comments

Comments

@nassifbasheer
Copy link

any help please

@ruslo
Copy link
Collaborator

ruslo commented Jun 3, 2019

Can you please explain what you have tried and what error you've got?

See also:

@nassifbasheer
Copy link
Author

I cloned the repo, moved to drishti location and followed the next two steps
cmake -H. -B_builds -GXcode -DHUNTER_STATUS_DEBUG=ON -DDRISHTI_BUILD_EXAMPLES=ON
cmake --build _builds --config Release

Build was successful , but no xcodeproject was build. I am missing something

@ruslo
Copy link
Collaborator

ruslo commented Jun 3, 2019

cmake --build _builds --config Release

If you're able to run this command successfully, then Xcode project is generated. Check for the _builds/drishtisdk.xcodeproj.

@nassifbasheer
Copy link
Author

My mistake , I was checking in src/examples. Can we run this xcodeproject on an iOS device

@ruslo
Copy link
Collaborator

ruslo commented Jun 3, 2019

Can we run this xcodeproject on an iOS device

No, default Xcode project is targeting macOS. If you want to build for iOS, you should use toolchain. Start from here:

@nassifbasheer
Copy link
Author

Thanks, so I guess ,
I need to do the following steps

cd Users/nassif/Desktop/RootFolder/drishti/src/lib/drishti
mkdir build
cd build
cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=../../ios.toolchain.cmake -DPLATFORM=OS64COMBINED
cmake --build . --config Release --target install

@ruslo
Copy link
Collaborator

ruslo commented Jun 3, 2019

so I guess, I need to do the following steps

No, there are no such instructions in README.

Please check:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants