bk138 / droidVNC-NG

VNC server app for Android that does not require root privileges.
GNU General Public License v2.0
1.39k stars 201 forks source link

Build Issues on Windows with Android NDK and CMake #192

Closed world9604 closed 8 months ago

world9604 commented 8 months ago

Describe the bug I'm attempting to integrate the droidVNC-NG library into my Android app on Windows, following successful builds on Ubuntu. However, I encounter a build error on Windows stating a failure to fingerprint input file property due to a missing 'libdroidvnc-ng.so.dbg' file. I'm seeking advice on configuring my Windows PC development environment correctly to resolve these build errors and ensure compatibility with the Android NDK and CMake.

Your environment (please complete the following information):

To Reproduce

  1. git clone
  2. git submodule update --init
  3. .\gradlew assembleRelease
  4. build error log : "Failed to create MD5 hash for file 'E:\develop\etc\droidVNC-NG\app\build\intermediates\native_debug_metadata\release\out\arm64-v8a\libdroidvnc-ng.so.dbg' as it does not exist."

Expected Behavior

  1. git clone
  2. git submodule update --init
  3. .\gradlew assembleRelease
  4. build success!!
bk138 commented 8 months ago

Please use the community chat for future questions :-)

I'm not building on Windows so have no info on the build setup there. Your best bet might be to research around Android Studio, CMake and Windows. It looks like your release build is looking for files related to the debug build which seems flaky. Maybe doing a git clean -fxd before building might help?

Sorry for not being able to help you on this one.