Prolem building STLport for Android

Sergio
2010-12-29
2013-05-13
  • Sergio
    Sergio
    2010-12-29

    Hi all,

        I´m trying to build STLport for Android (under Ubuntu 10.04) . I have follow the steps bellow:

       1 - downloaded STLport  using git (git clone git://stlport.git.sourceforge.net/gitroot/stlport/stlport)
       2 - cd stlport
       2 - ./configure -target=arm-eabi -with-extra-cxxflags="-fshort-enums" -with-extra-cflags="-fshort-enums"
       3- cd src
       4 - make SYSROOT="<MY NDK R5 path >/build/platforms/android-5/arch-arm/" release-static

    but the compilation fail with the following errors:

        In file included from ../stlport/stl/_alloc.h:45,
                     from ../stlport/memory:29,
                     from dll_main.cpp:41:
    ../stlport/stl/_new.h:45:24: error: new: No such file or directory
    In file included from ../stlport/stl/_limits.h:36,
                     from ../stlport/limits:29,
                     from dll_main.cpp:48:
    ../stlport/stl/_cwchar.h:26:30: error: cstddef: No such file or directory
    In file included from ../stlport/stl/_utility.h:35,
                     from ../stlport/utility:35,
                     from dll_main.cpp:40:
    ../stlport/type_traits:889: error: 'declval' was not declared in this scope
    ../stlport/type_traits:889: error: expected primary-expression before '>' token
    ../stlport/type_traits:889: error: expected primary-expression before ')' token
    ../stlport/type_traits:889: error: 'declval' was not declared in this scope
    ../stlport/type_traits:889: error: expected primary-expression before '>' token
    ../stlport/type_traits:889: error: expected primary-expression before ')' token
    ../stlport/type_traits:889: error: ISO C++ forbids declaration of 'decltype' with no type
    ../stlport/type_traits:889: error: ISO C++ forbids in-class initialization of non-const static member 'decltype'
    ../stlport/type_traits:889: error: template declaration of 'int std::tr1::detail::decltype'
    ../stlport/type_traits:942: error: ISO C++ forbids declaration of 'decltype' with no type
    ../stlport/type_traits:942: error: ISO C++ forbids in-class initialization of non-const static member 'decltype'
    ../stlport/type_traits:942: error: template declaration of 'int std::tr1::detail::decltype'
    make: *** [obj/arm-eabi-gcc/so/dll_main.o] Error 1
    

    What am I missing?

    Thanks and best regrads,
    Sergio

     
  • Im having the same problem