momodalo / vimtouch

vimtouch
Apache License 2.0
349 stars 71 forks source link

Compilation issues #61

Closed mvdan closed 8 years ago

mvdan commented 10 years ago

Hello momodalo,

I was trying to update your app on F-Droid from 2.3 to 2.6, and I came across a few issues:

Running ndk-build in build/net.momodalo.app.vimtouch/
jni/fakegpm.c: In function 'Gpm_GetEvent':
jni/fakegpm.c:122:13: error: format not a string literal and no format arguments [-Werror=format-security]
cc1: some warnings being treated as errors

Thank you for your time!

Regards.

rtfb commented 10 years ago
mvdan commented 10 years ago

Hello @rtfb,

You're correct about the README, I totally missed that one.

Thanks for fixing the build with r9!

My two first points still stand, although they are not critical.

rtfb commented 10 years ago

I can also comment some more on bullet point two, since both variables were intriduced by me. Neither of them is required per se. ANDROID_SDK_HOME is only used by a helper script that prepares a fresh system with prerequisites, which implies that the user is unlikely to have ANDROID_HOME either. After the system/workdir has been prepared (or if one chooses to prepare by other means), it's no longer needed.

ANDROID_NDK_ROOT is only needed if my heuristics code fails to detect NDK, which it would be nice to have feedback on -- how often people have to use it.

That said, I don't have problems with renaming either of these, but I'll leave the call to @momodalo :-)

mvdan commented 10 years ago

I want to be able to build the next vimtouch release on F-Droid without patching these things, so I opened a pull request.

mvdan commented 10 years ago

The variables ANDROID_SDK_HOME and ANDROID_NDK_ROOT were changed, which is not crucial but IMHO recommended since they are the default variable names. In fact they are already defined if the user installs the sdk and ndk via a package system like apt, yum, etc.