-
Notifications
You must be signed in to change notification settings - Fork 24
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
libtee submodule issue (tee_shared_data_types.h not found) #5
Comments
Hello ambihelical, I had the same problem when I tried to use the opentee-android. The header file tee_shared_data_types.h and tee_client_api.h are missing from the folder opentee-android/otservice/src/main/jni/ To fix that, I suppose you have the original Open-TEE project somewhere. The missing header files are in the original Open-TEE project. So you could create soft links in the folder opentee-android/otservice/src/main/jni/
Then, go back the android studio, Sync -> Clean project ->Rebuild Project.
I have not figured out how to fix those errors. By some reasons, the library log is not linked. I tried to add ndk block in build.gradle (Module:otservice) and include If you find out how to fix the link error, please let me know :) Thanks and gl. |
I didn't have any problem after I cloned the libtee.git repo in the right place, as I indicated in my post. |
The gradle build was not finding tee_shared_data_types.h, so I investigated:
The git submodule references otsservice/src/main/jni/libtee
This is a symlink to ../../../..opentee/src/main/jni/libtee
Which resolves to opentee/src/main/jni/libtee in the opentee-android repo.
git submodule update --init didn't do anything so I ended up doing this:
I don't know why the submodule is set up like this, or why it didn't update (doesn't like the symlink?), but this was a workaround that allowed the gradle build to succeed.
Git is version 2.9.3.
The text was updated successfully, but these errors were encountered: