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

F-Droid #62

Closed
Poussinou opened this issue May 25, 2018 · 17 comments
Closed

F-Droid #62

Poussinou opened this issue May 25, 2018 · 17 comments

Comments

@Poussinou
Copy link
Contributor

F-Droid received a Request For Packaging for your app.
To be build by F-Droid, we need to find a way to build everything from source. Could you help us to do so? Here are the problematic prebuilt libraries:

ERROR: Found shared library at mjpeg-view/src/main/jniLibs/x86/libImageProc.so
ERROR: Found shared library at mjpeg-view/src/main/jniLibs/mips/libImageProc.so
ERROR: Found shared library at mjpeg-view/src/main/jniLibs/armeabi-v7a/libImageProc.so
ERROR: Found shared library at mjpeg-view/src/main/jniLibs/armeabi/libImageProc.so

@niqdev
Copy link
Owner

niqdev commented May 26, 2018

Hi, thanks for including the package on F-Droid.
So there is a script to build those libraries, but unfortunately at the moment is not integrated with any CI/CD and they were built manually.
Consider also that with the help of @amadeu01 we are looking at #59 and #60 which means a full rewrite of the project in Kotlin, so not sure if is worth fix this issue now.

Where those errors came from? How is the build process working to release the app on F-Droid?

@Rudloff
Copy link

Rudloff commented May 26, 2018

This script could work for us if the SDK path was not hardcoded:

diff --git a/compileJni.sh b/compileJni.sh
index 9a76b5a..a16dc11 100755
--- a/compileJni.sh
+++ b/compileJni.sh
@@ -3,7 +3,7 @@
 JNI_SRC="mjpeg-view/src/main"
 
 rm -fr $JNI_SRC/jniLibs
-~/Library/Android/sdk/ndk-bundle/ndk-build -C $JNI_SRC
+$ANDROID_HOME/ndk-bundle/ndk-build -C $JNI_SRC
 cp -a $JNI_SRC/libs $JNI_SRC/jniLibs
 rm -fr $JNI_SRC/libs $JNI_SRC/obj

However, if you are rewriting the app, it might be safer to wait before including it in F-Droid (so we don't have to do the packaging work twice).

@niqdev
Copy link
Owner

niqdev commented May 26, 2018

I can create a PR for that now if you want, is not a big deal. Regarding the rewrite is not something that is going to happen any time soon, just considering how and what to do.

@Rudloff
Copy link

Rudloff commented May 26, 2018

Well, if building the libraries is as easy as running this script, I guess I can work on packaging the current version.

@Rudloff
Copy link

Rudloff commented May 26, 2018

Are these prebuilt libraries really necessary?
It seems I can build and run the demo app with Gradle even if I remove them.

@niqdev
Copy link
Owner

niqdev commented May 26, 2018

No, I was planning to remove it before considering a full rewrite. The native implementation is broken and never got time to try to fix it. If it compiles and work just ignore those files

@Rudloff
Copy link

Rudloff commented May 26, 2018

Oh OK so we can totally package this on F-Droid then.
Thanks for the explanation!

@niqdev
Copy link
Owner

niqdev commented May 26, 2018

Nice, I'll merge the PR then, is that enough?

@Rudloff
Copy link

Rudloff commented May 26, 2018

If you are talking about #63, I don't think we strictly need it, it's just something our linter complains about.

So I think you should merge it (for security reasons) but it is not a requirement.

@niqdev
Copy link
Owner

niqdev commented May 26, 2018

Got it, is correct the command I've added in the PR to generate the hash? or how did you get that and what should I run next time I bump the version?

@niqdev
Copy link
Owner

niqdev commented May 26, 2018

@Rudloff last question, which are the criteria to add an app on F-Droid other then being open source? I have another app that you might be interested in...

@Rudloff
Copy link

Rudloff commented May 26, 2018

You can check our inclusion policy.

Feel free to open a request for your other app if it meets the criteria.

@niqdev
Copy link
Owner

niqdev commented May 26, 2018

Awesome, thanks!

@niqdev niqdev closed this as completed May 26, 2018
@Rudloff
Copy link

Rudloff commented May 26, 2018

Sorry to bother you again but I tried to build v1.6 and it does not work correctly.
Some of the videos are blank and I get this error in logcat:

05-26 14:16:58.618 15296 15411 E Mjpeg   : error during connection
05-26 14:16:58.618 15296 15296 E IpCamSnapshotActivity: mjpeg error

However 663e23e builds and runs correctly.
Are you planning a new release soon?

@niqdev
Copy link
Owner

niqdev commented May 26, 2018

Yep, I'm going to release the latest version now, I'll tell you when is done

@niqdev
Copy link
Owner

niqdev commented May 26, 2018

I've released app v.1.7.0, let me know if works now

@Rudloff
Copy link

Rudloff commented May 26, 2018

It works, thanks!

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

3 participants