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

Add external library to XCode #181

Open
pietrobolcato opened this issue Mar 23, 2021 · 1 comment
Open

Add external library to XCode #181

pietrobolcato opened this issue Mar 23, 2021 · 1 comment

Comments

@pietrobolcato
Copy link

Hello there! :)

I am on Mac, and I followed the readme and I am able to succesfully compile the hello world and run it in max. Pretty cool! :) now, the reason why I am creating an external is the fact that I want to integrate a pytorch model to it. Therefore, I downloaded libtorch and I tried to add it in any possible way to XCode IDE but still I am unable to make it work. It always fails the build saying "Unable to find <torch/torch.h>".

Can anybody give me some guidance here? I would very much appreciate it!

Thank you so much in advance :)

@isabelgk
Copy link
Contributor

isabelgk commented Apr 2, 2021

It sounds like Xcode is not finding the pytorch model header. Which ways have you tried to include the header in the Xcode project?

You may also consider modifying the CMakeList.txt to automatically configure your Xcode environment to include the external library. That would make your project more portable. There's an example here of an open source min project that uses an external library. Perhaps their structure could give you some insights.

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