Skip to content

Please rewrite project to use CocoaPods #22

Open

Description

@anonym24

it would be much easier to install tensorflow using CocoaPods https://www.tensorflow.org/mobile/ios_build

building from source is so much pain (when you don't even have a mac, but use virtual machines)

I tried to change it to CocoaPods by-myself, but as I saw in the project it also needs Google Protobuf files (but this lib is created/downloaded only when building tensorflow ios from source using build script build_all_ios_ssd.sh)

so it would be great to update it to CocoaPods and resolve this issue #11
remove TF-Root from project settings (as we don't need when we have tensorflow from CocoaPods)

Activity

  1. anonym24 commented on Dec 18, 2017

    @anonym24
    Author

    I tried again to build from source with sh script, finally successful build, using the latest clonned tensorflow
    but still iOS_Tensorflow_ObjectDetection_Example project needs 3.3.2 protobuf (seems tensorflow use 3.3.0) and some other errors, also nsync is available only at downloads/nsync, but not at gen/nsync (no such folder), in your project settings one lib path is set to $(TF_ROOT)/tensorflow/contrib/makefile/gen/nsync

    tensorflow/contrib/makefile/compile_nsync.sh -t ios says that everything is ok (already was built)

  2. anonym24 commented on Dec 18, 2017

    @anonym24
    Author

    this time before building I forgot to run ./config.sh
    but still I don't think I'll get newer google probuf version

  3. anonym24 commented on Dec 18, 2017

    @anonym24
    Author

    after your ./config I can't build anymore using next commands:

    tensorflow/contrib/makefile/download_dependencies.sh
    tensorflow/contrib/makefile/compile_ios_protobuf.sh 
    tensorflow/contrib/makefile/compile_ios_tensorflow_s.sh "-O3  -DANDROID_TYPES=ANDROID_TYPES_FULL -DSELECTIVE_REGISTRATION -DSUPPORT_SELECTIVE_REGISTRATION"
    
    tensorflow/core/lib/strings/numbers.cc:26:10: fatal error: 
          'double-conversion/double-conversion.h' file not found
    #include "double-conversion/double-conversion.h"
             ^
    1 error generated.
    make: *** [/Users/admin/tensorflow/tensorflow/contrib/makefile/gen/host_obj/tensorflow/core/lib/strings/numbers.o] Error 1
    make: *** Waiting for unfinished jobs....
    + '[' 2 -ne 0 ']'
    + echo 'arm64 compilation failed.'
    arm64 compilation failed.
    + exit 1
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions