[android-developers] Re: Android NDK C++ 'wstring' support

2011-10-08 Thread JP
STL is not supported by the NDK. Tons of discussions on this topic, web research Android NDK STL On Oct 8, 5:17 am, Ankit Shah iankits...@gmail.com wrote: Hi, I have source code/lib written in C++ - now i would like to compile and use the same in Android NDK project (NDK 6). I am able to

[android-developers] Re: Android NDK: Can I include prebuild android so-libraries?

2011-05-16 Thread fritzr
thx... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options,

[android-developers] Re: Android NDK with templateclass T

2011-05-09 Thread Grégoire Badoual
Yes, it was in the first place what I do but I tried to experiment something different to understand my mistakes. So I have return my source code to his beginning So I give you my .h associated : #ifndef VECTOR2_H #define VECTOR2_H #include math.h #include typeinfo #include ../config/Define.h

Re: [android-developers] Re: Android NDK with templateclass T

2011-05-09 Thread Kostya Vasilyev
See below: 09.05.2011 11:45, Grégoire Badoual пишет: namespace AS { /** * @class CVector2 * * @brief This class represents a vector with 2 components and its main operations */ templateclass T class CVector2 { public :

[android-developers] Re: Android NDK with templateclass T

2011-05-09 Thread Grégoire Badoual
Sorry, You're right I've made a mistake declaring my class but that wasn't that I will want to understand. But I have modified like you said, and like was the header file in the first place. So there is the file and the errors : /** * @file Vector2.h * @brief A container with 2 components *

Re: [android-developers] Re: Android NDK with templateclass T

2011-05-09 Thread Kostya Vasilyev
09.05.2011 12:32, Grégoire Badoual пишет: Vector2.h: In constructor 'AS::CVector2T::CVector2(T)': /home/gbadoual/Workspace/proj/template/android_os/android/jni/maths/ Vector2.h:34: error: class 'AS::CVector2T' does not have any field named 'X'

[android-developers] Re: Android NDK

2011-01-06 Thread Robert Green
Where to start? 1) Read the documentation. http://developer.android.com/sdk/ndk/index.html 2) Ask on the right mailing list. http://groups.google.com/group/android-ndk 3) Get replies publicly so that the information can help other people. Asking to have people personally email you answers

Re: [android-developers] Re: Android NDK

2011-01-06 Thread Rocky
thax for reply yeap, i'm in windows, i install, cygwin, but still, not able to understand, how to run,build the project, ndk-build command also not working. thax in adv. On Fri, Jan 7, 2011 at 12:31 PM, Robert Green rbgrn@gmail.com wrote: Where to start? 1) Read the documentation.

[android-developers] Re: Android NDK r5

2011-01-05 Thread Nightwolf
Just my observation. I was trying to use ogg in my project. Shared libvorbisfile uses static libogg. My final shared library uses libvorbisfile. For some reason it works on Galaxy S (Android 2.2) and doesn't on G1 (Android 1.6). So I had to merge libogg and libvorbisfile into one static library

[android-developers] Re: Android NDK - raw socket creation problem

2010-11-01 Thread Chris Stratton
If this a proper ndk application - ie, a native library attached to a java program - you can't really run it as root. If you've abused the ndk's gcc to make a standalone executable, then launching it from a root context such as the adb shell on an unsecured device or whatever su type capability

[android-developers] Re: Android NDK has a bug in socket recvfrom ????

2010-09-09 Thread fadden
On Sep 7, 10:02 pm, HISONA hison...@gmail.com wrote: When, I call recvfrom function, but struct sockaddr *addr parameter returns NULL value. [...] int udp_read(int socket_no, char *str, int len, struct sockaddr *addr) {         int read;         return recvfrom(socket_no, str, len, 0,

Re: [android-developers] Re: Android NDK has a bug in socket recvfrom ????

2010-09-09 Thread David Turner
For the record, sizeof(struct sockaddr) will likely be too smal as the input value. You need to provide the real size of the socket address structure being pointed to. In this specific case, this would be sizeof(struct sockaddr_in). On Thu, Sep 9, 2010 at 9:19 PM, fadden fad...@android.com

[android-developers] Re: Android NDK installation on windows?

2010-03-06 Thread mah
It looks as if you're issuing the build/host-setup.sh command from a DOS window, instead of a Cygwin BASH window. If so, this is definitely a no-no... use the BASH shell to run the script, and before running it, cd /cygdrive/c/android-ndk-1.6_r1. On Mar 5, 12:58 pm, Abhi

[android-developers] Re: Android NDK installation on windows?

2010-03-05 Thread Abhi
Hi Michael, I installed cygwin again selecting the required packages. This is what results when I try to do build/host-setup.sh: $ build/host-setup.sh cygwin warning: MS-DOS style path detected: C:\cygwin\cygdrive\c\android-ndk-1.6_r1 Preferred POSIX equivalent is:

[android-developers] Re: Android NDK ( Native code Debugging)

2009-08-27 Thread Dianne Hackborn
The mailing list is android-ndk. There have been blog posts on this: http://android-developers.blogspot.com/2009/06/introducing-android-15-ndk-release-1.html On Thu, Aug 27, 2009 at 6:49 PM, santosh kumar santosh.1...@gmail.comwrote: Hi, I have seen in the Android NDK release, presently NDK