Open shashankel opened 7 years ago
Any progress here?, I have the same problem... I can build the app for an emulated device, but when I try to build it for a "real" device it fails with the same error (see one example out of several below).
/app/src/main/jni/OSNetworkSystem.cpp:1475:22:
warning: cast to 'signed char ' from smaller integer type 'jint' (aka 'int') [-Wint-to-pointer-cast]
jbyte message = (jbyte *)address;
^
`
Same problem for me. Any progress?
I've had to update the code to include <cstring>
as it was complaining of undefined functions prior to this problem.
I am not working on this project anymore. But I remember resolving the error by changing the type from jint to long
The same error when compiling for arm64-v8, does not compile, what should I do?
The same error when compiling for arm64-v8, does not compile, what should I do?
-Wno-error=int-to-pointer-cast
?
When I try to build the native library see the error Error:(2351, 21) error: cast from pointer to smaller type 'jint' (aka 'int') loses information OSNetworkSystem.cpp