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

Use "main" #7

Closed
mtngld opened this issue Apr 28, 2015 · 1 comment
Closed

Use "main" #7

mtngld opened this issue Apr 28, 2015 · 1 comment

Comments

@mtngld
Copy link

mtngld commented Apr 28, 2015

Hi,

In order to unit test the JNI I would like to compile and run it using the main function, are you able to use it for testing? How can this be done? I also noticed the mobile/main.cpp under caffe, what is the purpose of that testing?

Thanks

@sh1r0
Copy link
Owner

sh1r0 commented Apr 28, 2015

mobile/main.cpp is for desktop debugging.
For mobile debugging, please follow the steps below:

  1. toggle the comments in these two lines, then re-build for the executable.
  2. push it into /data/local/tmp
  3. chmod 755 /data/local/tmp/<executable>
  4. export LD_LIBRARY_PATH=<lib path>:$LD_LIBRARY_PATH
  5. run...

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