TensorFlowAndroidDemo icon indicating copy to clipboard operation
TensorFlowAndroidDemo copied to clipboard

How I can build latest r0.12?

Open hannan-sultan opened this issue 8 years ago • 8 comments

How I can build latest r0.12 android demo in Tensorflow repo by myself for android studio? I want to learn to whole steps, so I can make latest version and use it in android studio. It would be really helpful for me.

hannan-sultan avatar Dec 05 '16 13:12 hannan-sultan

I did it for version 0.11,

Basiclly its just building the demo apk using the tensorflow build, then picking the pieces and creating the app project.


From: codeloverr [email protected] Sent: Monday, December 5, 2016 1:46:52 PM To: miyosuda/TensorFlowAndroidDemo Subject: [miyosuda/TensorFlowAndroidDemo] How I can build latest r0.12? (#7)

How I can build latest r0.12 android demo in Tensorflow repo by myself for android studio? I want to learn to whole steps, so I can make latest version and use it in android studio. It would be really helpful for me.

You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/miyosuda/TensorFlowAndroidDemo/issues/7, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATjLRBklmVqZ8zv7o0MVfEA-MIgBb_gcks5rFBXMgaJpZM4LEPOP.

elich11 avatar Dec 05 '16 14:12 elich11

@elich11 Can you provide a tutorial link? As I am having problems for building for 0.12, I also want to use it in Android Studio. Also can you share your 0.11 repo? Thanks

hannan-sultan avatar Dec 05 '16 14:12 hannan-sultan

I used the regular tensorFlow Android here:

https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android

[https://avatars0.githubusercontent.com/u/15658638?v=3&s=400]https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android

tensorflow/tensorflow/examples/android at master ...https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android github.com This folder contains a simple camera-based demo application utilizing TensorFlow. As a prerequisite, Bazel, the Android NDK, and the Android SDK must all be installed ...

Then, I just picked the pieces, and created the standalone project.


From: codeloverr [email protected] Sent: Monday, December 5, 2016 2:30:16 PM To: miyosuda/TensorFlowAndroidDemo Cc: elich11; Mention Subject: Re: [miyosuda/TensorFlowAndroidDemo] How I can build latest r0.12? (#7)

@elich11https://github.com/elich11 Can you provide a tutorial link? As I am having problems for building for 0.12, I also want to use it in Android Studio. Thanks

You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/miyosuda/TensorFlowAndroidDemo/issues/7#issuecomment-264867885, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATjLRNlK9zt5I93JeaMMb_03As51GEgNks5rFB_4gaJpZM4LEPOP.

elich11 avatar Dec 06 '16 07:12 elich11

I have successfully build for r0.12. Thanks for your reply. Can you help me with one thing, I want to get the scores in textview instead of canvas. @elich11

hannan-sultan avatar Dec 07 '16 09:12 hannan-sultan

This is not related to tensorflow, just Android UI.


From: codeloverr [email protected] Sent: Wednesday, December 7, 2016 9:50:32 AM To: miyosuda/TensorFlowAndroidDemo Cc: elich11; Mention Subject: Re: [miyosuda/TensorFlowAndroidDemo] How I can build latest r0.12? (#7)

I have successfully build for r0.12. Thanks for your reply. Can you help me with one thing, I want to get the scores in textview instead of canvas. @elich11https://github.com/elich11

You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/miyosuda/TensorFlowAndroidDemo/issues/7#issuecomment-265403149, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATjLRNJK1tcKG00IAdh83thIN8E309BJks5rFoFogaJpZM4LEPOP.

elich11 avatar Dec 08 '16 12:12 elich11

@elich11 I have one question. You've mentioned that "you pick the pieces" and create a new app-project. Do you mean, you copied the lib*.so files into a new Android-Studio project? I would like to integrate it in to an already existing NDK-project and I also need to have the latest version.

Building the c-code using the make & make install approach would be perfect. Does this still work? I don't like to learn a new build-system (BAZEL) for now..

Thank you very much!

beniroquai avatar Dec 08 '16 16:12 beniroquai

Hi,

Please see my answers below.


From: beniroquai [email protected] Sent: Thursday, December 8, 2016 4:39 PM To: miyosuda/TensorFlowAndroidDemo Cc: elich11; Mention Subject: Re: [miyosuda/TensorFlowAndroidDemo] How I can build latest r0.12? (#7)

@elich11https://github.com/elich11 I have one question. You've mentioned that "you pick the pieces" and create a new app-project. Do you mean, you copied the lib*.so files into a new Android-Studio project?

Yes, but also all the source code and resources.

I would like to integrate it in to an already existing NDK-project and I also need to have the latest version.

I didn't need to use NDK in my case, since I had everything I needed already compiled (the lib*.so file)

Building the c-code using the make & make install approach would be perfect. Does this still work? I don't like to learn a new build-system (BAZEL) for now..

You don't need to learn bazel, just need to call bezel to build it.

Thank you very much!

Hope it helps

You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/miyosuda/TensorFlowAndroidDemo/issues/7#issuecomment-265787697, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATjLREYzDIMwkkrvUZjXSbMuVyn7O5tRks5rGDLUgaJpZM4LEPOP.

elich11 avatar Dec 09 '16 10:12 elich11

Thank you very much for your quick reply! :) I try to do what you’ve said. I successfully build the demo-app and have most of the Genfiles, etc. found in a (weird) folder (basel-output?!) /private/var/tmp/_bazel_Bene/67b9aa95a3c42cc01980b40e2bdde5e1/execroot/tenso rflow/bazel-out/arm-linux-

androideabi-4.9-v7a-gnu-libstdcpp-opt/genfiles/tensorflow/core

I guess, I need to find the include-directory and copy all .lo and a files manually to update to the .12 version, am I right?

I’ve seen, that the „libandroid_tensorflow_kernels.lo“ as missing, as myiosoda has mentioned. What have you done to encounter for this problem?

Maybe the way I try to solve this problem is completely nonsense, but I feel I’m on the right way now. Thanks!:)

Best

Bene

Von: elich11 [email protected] Antworten an: miyosuda/TensorFlowAndroidDemo <reply+00424eb8bb379211682c2feab62746cad08bdc4a41faba0a92cf0000000114624c219 [email protected]> Datum: Freitag, 9. Dezember 2016 um 11:40 An: miyosuda/TensorFlowAndroidDemo [email protected] Cc: Benedict Diederich [email protected], Comment [email protected] Betreff: Re: [miyosuda/TensorFlowAndroidDemo] How I can build latest r0.12? (#7)

Hi,

Please see my answers below.


From: beniroquai [email protected] Sent: Thursday, December 8, 2016 4:39 PM To: miyosuda/TensorFlowAndroidDemo Cc: elich11; Mention Subject: Re: [miyosuda/TensorFlowAndroidDemo] How I can build latest r0.12? (#7)

@elich11https://github.com/elich11 I have one question. You've mentioned that "you pick the pieces" and create a new app-project. Do you mean, you copied the lib*.so files into a new Android-Studio project?

Yes, but also all the source code and resources.

I would like to integrate it in to an already existing NDK-project and I also need to have the latest version.

I didn't need to use NDK in my case, since I had everything I needed already compiled (the lib*.so file)

Building the c-code using the make & make install approach would be perfect. Does this still work? I don't like to learn a new build-system (BAZEL) for now..

You don't need to learn bazel, just need to call bezel to build it.

Thank you very much!

Hope it helps

You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub<https://github.com/miyosuda/TensorFlowAndroidDemo/issues/7#issuecomme nt-265787697>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ATjLREYzDIMwkkrvUZj XSbMuVyn7O5tRks5rGDLUgaJpZM4LEPOP>.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/miyosuda/TensorFlowAndroidDemo/issues/7#issuecomment-265 984368> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AEJOuJgqWzLLJpi766Xy26cE9 pEVWAT6ks5rGTAhgaJpZM4LEPOP> .

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4b b","name":"GitHub"},"entity":{"external_key":"github/miyosuda/TensorFlowAndr oidDemo","title":"miyosuda/TensorFlowAndroidDemo","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143 418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"h ttps://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6 -9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/miyosuda/TensorFlowAndroidDemo"}},"updates ":{"snippets":[{"icon":"PERSON","message":"@elich11 in #7: Hi,\n\nPlease see my answers below.\n\n\n________________________________\nFrom: beniroquai \[email protected]\u003e\nSent: Thursday, December 8, 2016 4:39 PM\nTo: miyosuda/TensorFlowAndroidDemo\nCc: elich11; Mention\nSubject: Re: [miyosuda/TensorFlowAndroidDemo] How I can build latest r0.12? (#7)\n\n\n@elich11\u003chttps://github.com/elich11\u003e I have one question. You've mentioned that "you pick the pieces" and create a new app-project. Do you mean, you copied the lib*.so files into a new Android-Studio project?\n\n\nYes, but also all the source code and resources.\n\n\n\nI would like to integrate it in to an already existing NDK-project and I also need to have the latest version.\n\n\nI didn't need to use NDK in my case, since I had everything I needed already compiled (the lib*.so file)\n\n\nBuilding the c-code using the make \u0026 make install approach would be perfect. Does this still work? I don't like to learn a new build-system (BAZEL) for now..\n\n\nYou don't need to learn bazel, just need to call bezel to build it.\n\n\nThank you very much!\n\n\nHope it helps\n\n-\nYou are receiving this because you were mentioned.\nReply to this email directly, view it on GitHub\u003chttps://github.com/miyosuda/TensorFlowAndroidDemo/issues/7#issue comment-265787697\u003e, or mute the thread\u003chttps://github.com/notifications/unsubscribe-auth/ATjLREYzDIMwkk rvUZjXSbMuVyn7O5tRks5rGDLUgaJpZM4LEPOP\u003e.\n"}],"action":{"name":"View Issue","url":"https://github.com/miyosuda/TensorFlowAndroidDemo/issues/7#iss uecomment-265984368"}}}

beniroquai avatar Dec 09 '16 11:12 beniroquai