PDA

View Full Version : Many errors in Android build ( RTBareBones )



mmortall
06-15-2011, 05:41 AM
I have done all in "Setting up the NDK and compiling RTBareBones" from wiki.

Also I uncomment line "export NDK_PROJECT_PATH=" in build.sh for avoid errors with window path.

Now I have many compile errors. Compiler can not found 'string', 'vector', 'deque', 'map', 'iostream', 'sstream' etc.

All demo projects from NDK compiled successful. RTBareBones for window build success.

p.s. Also I don't now how to setup Ant. I downloaded it and added in some path.

kalango
06-15-2011, 04:14 PM
Make sure that your NDK is the NDKr4 from Crystax, because it supports STL (vector, deque, etc).
To setup Ant just add a system variable ANT_HOME to your ant directory.

mmortall
06-16-2011, 11:45 AM
Make sure that your NDK is the NDKr4 from Crystax, because it supports STL (vector, deque, etc).
To setup Ant just add a system variable ANT_HOME to your ant directory.

Thank you! I got *.so file. But next build step is filed.
It is possible to use Eclipce + this lib for build application for android without Ant ?

kalango
06-18-2011, 02:30 AM
Try to search the forums a thread of mine that i came up with the same error then solved it. Ant build is pretty easy to set up so i think you shouldnt get on with eclipse because some times it acts a little buggy.

mmortall
06-18-2011, 10:06 PM
Thanks for your help! I successful compile and run RTBareBones on the emulator.

kalango, I have the same problem with Ant build.xml.

kalango
06-19-2011, 05:54 PM
Thanks for your help! I successful compile and run RTBareBones on the emulator.

kalango, I have the same problem with Ant build.xml.

No problem. Everyone with updated SDK will find this problem because android has a slight different build script now. But its simple to solve.