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

I was compiling wrapper libs for sdk25. Can anyone help with my error? #135

Open
z3r0c00l-2k opened this issue Apr 13, 2018 · 1 comment

Comments

@z3r0c00l-2k
Copy link

z3r0c00l-2k commented Apr 13, 2018

[  6% 1/15] target thumb C++: libdvnc_flinger_sdk25 <= /home/mj_jabir1/droidVncServer/nativeMethods/flinger/flinger.cpp
FAILED: /bin/bash -c "(PWD=/proc/self/cwd prebuilts/misc/linux-x86/ccache/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -I /home/mj_jabir1/droidVncServer/na
tiveMethods/flinger -I /home/mj_jabir1/droidVncServer/nativeMethods/flinger/.. -I /home/mj_jabir1/droidVncServer/nativeMethods/flinger -I out/target/product/generic/obj/SHARE
D_LIBRARIES/libdvnc_flinger_sdk25_intermediates -I out/target/product/generic/gen/SHARED_LIBRARIES/libdvnc_flinger_sdk25_intermediates -I libnativehelper/include/nativehelper
 \$(cat out/target/product/generic/obj/SHARED_LIBRARIES/libdvnc_flinger_sdk25_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include 
-isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem hardware/ril/include -isystem libnativehelper/include -isystem frameworks/native/i
nclude -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem out/target/product/generic/obj/include -isystem bion
ic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm -isystem bi
onic/libm/include -isystem bionic/libm/include/arm -c    -fno-exceptions -Wno-multichar -msoft-float -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-str
ong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -DANDROID -fmessag
e-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -DNDEBUG -g 
-Wstrict-aliasing=2 -DNDEBUG -UDEBUG  -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-arg
ument -fcolor-diagnostics -nostdlibinc  -target arm-linux-androideabi    -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-andro
ideabi/bin    -fvisibility-inlines-hidden -Wsign-promo  -Wno-inconsistent-missing-override -nostdlibinc  -target arm-linux-androideabi   -mthumb -Os -fomit-frame-pointer -fno
-strict-aliasing  -fno-rtti -fPIC -D_USING_LIBCXX -std=gnu++14  -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast  -Werror=address-of-temporary -Werror=null-dereference
 -Werror=return-type    -MD -MF out/target/product/generic/obj/SHARED_LIBRARIES/libdvnc_flinger_sdk25_intermediates/flinger.d -o out/target/product/generic/obj/SHARED_LIBRARI
ES/libdvnc_flinger_sdk25_intermediates/flinger.o /home/mj_jabir1/droidVncServer/nativeMethods/flinger/flinger.cpp ) && (cp out/target/product/generic/obj/SHARED_LIBRARIES/lib
dvnc_flinger_sdk25_intermediates/flinger.d out/target/product/generic/obj/SHARED_LIBRARIES/libdvnc_flinger_sdk25_intermediates/flinger.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' 
-e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < out/target/product/generic/obj/SHARED_LIBRARIES/libdvnc_flinger_sdk25_intermediates/flinger.d >> out/target/product/generic/obj
/SHARED_LIBRARIES/libdvnc_flinger_sdk25_intermediates/flinger.P; rm -f out/target/product/generic/obj/SHARED_LIBRARIES/libdvnc_flinger_sdk25_intermediates/flinger.d )"-
/home/mj_jabir1/droidVncServer/nativeMethods/flinger/flinger.cpp:28:10: fatal error: 'surfaceflinger/ISurfaceComposer.h' file not found

#include <surfaceflinger/ISurfaceComposer.h>
         ^
1 error generated.
ninja: build stopped: subcommand failed.

I found the header in "./frameworks/native/include/gui/ISurfaceComposer.h" added it and ended up in more errors.

@mixaz
Copy link

mixaz commented May 18, 2018

This repo didn't get updates for a long time, more recent forks exists, with precompiled binaries for API 25 as well, I'm using this one: https://github.com/appknox/droid-VNC-server.

I recommend you try to build from that repo first, most likely NDK compilation issues with later API were addressed there.

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

2 participants