Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7768777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:00:05+00:00 2026-06-01T16:00:05+00:00

I am creating a new SDK component (application) based on the sample device located

  • 0

I am creating a new SDK component (application) based on the sample device located at /device/sample
the idea is to port an existing application written using C++, which utilizes lots of templates, RTTI, exceptions, STL; from the documentation it is clear that if I build my application with gnustl_static/gnustl_shared support this will provide me with all the support I need.

Now if I am creating a NDK application, which has Application.mk I know adding APP_STL := gnustl_static in it is one way to do it.

But as the component is part of new device sdk-addon.

Q1. I dont know how to provide Application.mk for native C++ application/component being build part of sdk-addon.

Q2. As per my knowledge I only have access to Android.mk and I am looking for a way to add support for gnustl_static using only Android.mk

I have tried various combinations of following options in Android.mk without any luck

LOCAL_CPPFLAGS += -fexceptions
LOCAL_CPPFLAGS += -frtti
LOCAL_SRC_FILES += libs/$(TARGET_ARCH_ABI)/libstdc++.a
LOCAL_STATIC_LIBRARIES := gnustl_static

Do let me know if you have any suggestions, thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:00:06+00:00Added an answer on June 1, 2026 at 4:00 pm

    For now I have decided to avoid using RTTI/exceptions and I have decided to go with stlport

    LOCAL_SHARED_LIBRARIES += libstlport
    

    I guess same should also work with gnustl.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating new virtual device using ubuntu gelelio@ubuntu:/media/Android/eclipse-linux/android-sdk-linux_x86/tools$ ./android I have create new
When creating a new project in Flash Builder, how does it determine which sdk
I have problem creating new instance of excel 2007 using VBA (from Access 2002).
I'm creating new Site Definitions using this method: http://weblogs.asp.net/paulballard/archive/2007/04/09/creating-a-custom-sharepoint-2007-portal-site-definition-using-the-portalprovisioningprovider-class.aspx and when they get created,
I'm using Facebook C# SDK and got a sample on how to set up
I created a sample hello world application using Flash Builder 4.5.1 (with the update
I had created a project using base sdk 5.0 in xcode 4.2. While creating
I am creating a twitter sharing by using sugree's twitter-android-sdk . So when the
I am creating a simple word doc, using the openXml SDK. It is working
Can IntelliJ use an Android SDK sample project as a base when creating a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.