-
Notifications
You must be signed in to change notification settings - Fork 12
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
Android - another ZLib compile fail on Windows! #45
Comments
The |
|
I've just tested |
I don't anderstand...
|
Is the second publication from the same provider? if yes, the caching algorithm should test the passphrase of the first publication automatically (*). If not, it's normal that you're request a passphrase, the system has no good reason to test all stored passphrases.
The third point does not seem normal.
(*) to be verified in the code. It's the case in the Readium-2 implementation.
|
In Readium "1" |
Great, my experience too using
Strange! Are you able to place breakpoints in
Very strange. But maybe related to (2). I will have another look too. |
I placed breakpoints during my tests and everything seems to be working fine. I am changing the |
I am sorry, but I am unable to reproduce the behaviour your are experiencing. Could you please go to "app info", clear cache and storage, and try again step-by-step? Let us know how it goes, thanks! |
I've reinstall the project from the git repository feature/lcp and i can't make any test, the app crash when i choose a directory...
|
It looks like your project setup is incorrect. The hierarchy of filesystem folders / git repositories should look like:
Steps 10, 11, 12 are actually optional, next time you can just use AndroidStudio directly (make sure that the file Let me know if this helps. Appendix "A1"
Appendix "A2"
Appendix "A3"
|
Thank's Daniel but I can't compile to the end... In step 12, i've got an error Lanch step 12 again, and build failled again !
And in the end :
Perharps it's my local.properties file in fault :
Could you help me ? |
Oh, |
Thank you for correcting the erroneous
|
Also I think that when the app project is built from AndroidStudio (compared with building
So, I will immediately update my instructions to use this path. |
I've updated the ndk, change the directory for libs... But compilation in step 12 failled.
after
After
And the end :
|
Damn, I wonder what the cause of compiler failure is...it is not clear from the console log :( |
Just an idea: my shell / command line tool is GitBash. What's yours? |
I have just followed the above instructions on my Windows 10 laptop (using GitBash) and everything seems to work fine.
...that being said, this is a detail that should not stop you building the |
Oh wait, I remember now: there is a RELEASE compiler error for ZLib Is this what you see as well? |
Instead of |
My shell command line tool is git bash too.
And run the command Here the complete log
|
Have you tried |
Build failed. |
Yep
|
A similar issue was fixed in the See history: Are you using |
I use the
|
Bizarrely, the code in the So it seems that for some weird reason, ZipLib continues to fail on Windows in some cases (works fine on MacOS and Linux): My previous fix consisted in moving the templated C++ classes ( #42 ), maybe a similar workaround can be applied to address your compile error ... but I can't reproduce this bug so I cannot help :( Maybe this is also related to this other ZLib error (RELEASE-specific, at least on my machine): ?? |
If you are still having problems, please contact @llemeurfr who will give you pointers to prebuilt readium-sdk and readium-lcp-client libs. |
So, it is in fact possible to make minimal changes to the Prerequisites: Copy Copy I tested this with both Gradle stable and experimental (with the latter, I was able to step/debug into hybrid C++ and Java code, as usual). Once the refactoring of the build system is finished (i.e. Android Studio latest version, Gradle not-experimental, CMake) then we will re-generate the AARs for LCP client lib, and create them for ReadiumSDK. This will offer developers / integrators the option to completely bypass native source code compilation (at last!), whilst still being able to step into hybrid C++ / Java code in DEBUB mode. |
I implemented LCP with SDK-Android branch feature/lcp for exemple.
In this implementation, passphrase is always needed if we close and reopen the app.
I want to store the user key like specification descibe. But i can't find how have the "user key" value, and how to decrypt an epub with this "user key".
In the Launcher the licence is decrypted with
mLicense.decrypt(passPhrase);
After the code test if the licence is decrypted :
if (!mLicense.isDecrypted()) {
In the Licence class there is no method to work with a "user key".
Can someone help me ?
The text was updated successfully, but these errors were encountered: