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

  • Home
  • SEARCH
  • 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 9284927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T19:01:29+00:00 2026-06-18T19:01:29+00:00

For reasons given at Android gcc sysroot and linker for compiling NDK projects on

  • 0

For reasons given at
Android gcc sysroot and linker for compiling NDK projects on Ubuntu, I am compiling my Android NDK project with arm-linux-gnueabi-gcc. There are no problems when compiling with no Android-NDK-specific includes, but now to include jni.h,

arm-linux-gnueabi-gcc -static -o main.exe main.c -I'path/to/native_app_glue' -I'/path/to/android-14/arch-arm/usr/include'

I get some cryptic error undefined reference to __sF.

Does anyone know what could be wrong or has anyone gotten Android NDK projects with jni.h to successfully compile with a standalone toolchain like this?

  • 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-18T19:01:30+00:00Added an answer on June 18, 2026 at 7:01 pm

    Unless you link everything statically, compiling with arm-linux-gnueabi- toolchain will not work because Android uses different sonames than Ubuntu.

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

Sidebar

Related Questions

Given the below setup and code snippets, what reasons can you come up with
In gcc doc one reason is given for using section . This reason is
I'm working through the 'notepad' tutorial given in the developer's guide: http://developer.android.com/guide/tutorials/notepad/index.html For some
I am trying to catch the back button event for Android. I know there
I am trying to work through an android example given on the developers' page.
On Android 1.0 there was a com.google.googlenav namespace for driving directions: Route - Improved
I'm using the method given in Android HTML ImageGetter as AsyncTask to load images
I just set up of Android development environment in Ubuntu 12.04. I made an
Over time our Android project has expanded a great deal, and these days we
Recently, I ran into a mysterious problem in an android project, which I described

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.