hyperb1iss / vncflinger

A fast system-level VNC server for Android
Other
55 stars 12 forks source link

how to build it with ndk-build #2

Open jiaochuandong opened 6 years ago

jiaochuandong commented 6 years ago

Hi cyanogen, I have a problem when I build it.

ndk-build Android NDK: WARNING: Unsupported source file extensions in /home/git/Public/jni/Android.mk for module vncflinger
Android NDK: aidl/org/chemlab/IVNCService.aidl
[armeabi] Compile++ thumb: vncflinger <= InputDevice.cpp /home/git/Public/jni/src/InputDevice.cpp:19:23: fatal error: utils/Log.h: No such file or directory

include <utils/Log.h>

                   ^

compilation terminated. make: *** [/home/git/Public/obj/local/armeabi/objs/vncflinger/src/InputDevice.o] Error 1

How to import utils or other include files?

Thanks chuandong

hyperb1iss commented 4 years ago

I've only built this thus far along side AOSP, it's possible that I'm using APIs that aren't part of the NDK. I'll see if I can't get it going this week.

laowangsir commented 4 years ago

The two project cannot be built in NDK environment ,they are built as android externals

  1. download tigervnc , https://github.com/cyanogen/tigervnc
  2. unzip tigervnc and vncflinger in android(AOSP) directory/external/
  3. build all ASOP project
  4. enter external/tigervnc ,execute mm (compile current directory)
  5. enter external/vncflinger, execute mm (compile current directory)