i-p-tel / sipdroid

Free SIP/VoIP client for Android
http://sipdroid.org
GNU General Public License v3.0
638 stars 265 forks source link

Error:(2351, 21) error: cast from pointer to smaller type 'jint' (aka 'int') loses information #1028

Open shashankel opened 7 years ago

shashankel commented 7 years ago

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

lukroth commented 6 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; ^ `

Bears-Eat-Beets commented 6 years ago

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.

shashankel commented 6 years ago

I am not working on this project anymore. But I remember resolving the error by changing the type from jint to long

KORuL commented 5 years ago

The same error when compiling for arm64-v8, does not compile, what should I do?

barracuda156 commented 5 days ago

The same error when compiling for arm64-v8, does not compile, what should I do?

-Wno-error=int-to-pointer-cast?