Overview
Features
Download
Documentation
Community
Add-Ons & Services

Android build tutorial not working

Please post support and help requests here.

Android build tutorial not working

Postby devdavid » 11 Mar 2013, 17:22

It appears that the android tutorial is not working, do one need to specify how to include STL in some way?
I think this:
Code: Select all
expected unqualified-id before '(' token
is caused by the wrong STL...
Please help!

Last login: Mon Mar 11 16:08:27 on ttys001
Exjobbs-MacBook-Pro:~ exjobb$ /Applications/adt-bundle-mac-x86_64/android-ndk-r8d/build/tools/make-standalone-toolchain.sh --platform=android-8 --install-dir=$HOME/my-android-toolchain
Auto-config: --toolchain=arm-linux-androideabi-4.6
Copying prebuilt binaries...
Copying sysroot headers and libraries...
Copying libstdc++ headers and libraries...
Copying files to: /Users/exjobb/my-android-toolchain
Cleaning up...
Done.
Exjobbs-MacBook-Pro:~ exjobb$ export PATH=$PATH:$HOME/my-android-toolchain/bin
Exjobbs-MacBook-Pro:poco-1.5.1-all exjobb$ /Users/exjobb/Downloads/poco-1.5.1-all/configure --config=Android --no-samples --no-tests
Configured for Android
Exjobbs-MacBook-Pro:poco-1.5.1-all exjobb$ make -s -j4
sh: /Users/exjobb/Downloads/poco-1.5.1-all/build/script/projname: /bin/sh^M: bad interpreter: No such file or directory
** Compiling src/ArchiveStrategy.cpp (debug, static)
** Compiling src/Base64Decoder.cpp (debug, static)
** Compiling src/Base64Encoder.cpp (debug, static)
** Compiling src/BinaryReader.cpp (debug, static)
In file included from include/Poco/FPEnvironment.h:47:0,
from include/Poco/NumericString.h:45,
from include/Poco/NumberFormatter.h:44,
from include/Poco/ArchiveStrategy.h:47,
from src/ArchiveStrategy.cpp:37:
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isInfiniteImpl(float)':
include/Poco/FPEnvironment_DUMMY.h:98:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isInfiniteImpl(double)':
include/Poco/FPEnvironment_DUMMY.h:104:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isInfiniteImpl(long double)':
include/Poco/FPEnvironment_DUMMY.h:110:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isNaNImpl(float)':
include/Poco/FPEnvironment_DUMMY.h:116:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isNaNImpl(double)':
include/Poco/FPEnvironment_DUMMY.h:122:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static bool Poco::FPEnvironmentImpl::isNaNImpl(long double)':
include/Poco/FPEnvironment_DUMMY.h:128:14: error: expected unqualified-id before '(' token
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static float Poco::FPEnvironmentImpl::copySignImpl(float, float)':
include/Poco/FPEnvironment_DUMMY.h:134:9: error: 'copysignf' is not a member of 'std'
include/Poco/FPEnvironment_DUMMY.h:134:9: note: suggested alternative:
/Users/exjobb/my-android-toolchain/bin/../sysroot/usr/include/math.h:352:7: note: 'copysignf'
include/Poco/FPEnvironment_DUMMY.h: In static member function 'static double Poco::FPEnvironmentImpl::copySignImpl(double, double)':
include/Poco/FPEnvironment_DUMMY.h:140:9: error: 'copysign' is not a member of 'std'
include/Poco/FPEnvironment_DUMMY.h:140:9: note: suggested alternative:
/Users/exjobb/my-android-toolchain/bin/../sysroot/usr/include/math.h:275:8: note: 'copysign'
** Compiling src/BinaryWriter.cpp (debug, static)
** Compiling src/Bugcheck.cpp (debug, static)
** Compiling src/ByteOrder.cpp (debug, static)
make[1]: *** [/Users/exjobb/Downloads/poco-1.5.1-all//obj/Android/armeabi/debug_static/ArchiveStrategy.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Foundation-libexec] Error 2
Exjobbs-MacBook-Pro:poco-1.5.1-all exjobb$

BEST REGARDS!
devdavid
 
Posts: 17
Joined: 11 Mar 2013, 16:10

Re: Android build tutorial not working

Postby alex » 11 Mar 2013, 19:08

See issue 57 on GitHub. This was fixed in develop (which will become 1.5.2 in few weeks).
alex
 
Posts: 1156
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron