-
Notifications
You must be signed in to change notification settings - Fork 527
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
iOS build broken (Tensorflow dependency) #1352
Comments
Update: as the Stackoverflow post hints at, switching the C++ dialect to gnu++14 (in Xcode) solves the problem for the string comparison function. |
hi @LDMFD, I can see that similar problems occur in OpenCV, and they now support deactivating the Eigen Tensors. We could be interested in doing the same. |
Hi @palonso thank you for the feedback. I hit this problem again after including I built with
I am looking for pitch detection primarily. |
@LDMFD, Since tensor-based methods are only required when using these models, we could have a directive For now, you can just comment out these methods in |
Appreciate the pointer - will give this a try. |
I'm following up here in hopes this will be useful for others. From what I can tell, Essentia with tensorflow (needed for TemopCNN) is simply incompatible with iOS. TensorFlowLite (the only supported target for iOS), has a different set of interfaces to what the TempoCNN components in Essentia use. Including the TensorFlow header path in an XCode project results in undefined symbol compiler errors. _TF_AllocateTensor, referenced from: It would have been useful to know about this incompatibility before wasting a day trying to make it work. Hopefully this will be useful for others. |
Building with
python3 waf configure --cross-compile-ios --lightweight= --fft=ACCELERATE --build-static --ignore-algos=NNLSChroma
I needed to comment out two sections in
types.h
;case_insensitive_str_cmp()
- this may be related to https://stackoverflow.com/questions/22386882/why-have-unary-function-binary-function-been-removed-from-c11#include <unsupported/Eigen/CXX11/Tensor>
Alias for Eigen::Tensor.
).This is despite Tensor apparently being ignored; the build log gives:
Is there any fix already present that I simply need to enable?
I'm building on MacOS Ventura 13.4, with Xcode 15.0 beta 2.
The text was updated successfully, but these errors were encountered: