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 7802049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:08:29+00:00 2026-06-02T01:08:29+00:00

I’m trying to build for an android device and I don’t have real SDK/NDK

  • 0

I’m trying to build for an android device and I don’t have real SDK/NDK for it. Unlike usual Android devices that have libc.so this one has symbolic link libc.so.6 –> libc-2.7.so.
If I build with regular android NDK-x86 my shared lib (as reported by readelf -d) imports from libc.so which doesn’t exist on the device.

What’s that numbering is about, how does gcc/ld knows to link to libc.so.6 if I simply say -lc?

To be more specific, that device is an android google tv box (Logitech revue) and it seems that it’s a bit different from regular android, my guess it doesn’t use retarded bionic and uses normal libc, regular pthread and it’s seems to be closer to regular linux.

So, can I use regular android-x86 toolchain to generate code for the google tv device that has different libc? How does it know to link to libc.so.6 instead (so I can tell it what libs to link to?). I tried to simply hardcode these libs at link time, but then I get some problems at runtime (missing symbols, because it used incompatible headers and libs).

  • 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-02T01:08:31+00:00Added an answer on June 2, 2026 at 1:08 am

    What’s that numbering is about

    You can read about external library versioning here.

    how does gcc/ld knows to link to libc.so.6 if I simply say -lc?

    On Linux with glibc, the libc.so is actually a linker script, containing something like:

    GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a 
             AS_NEEDED ( /lib/ld-linux-x86-64.so.2 ) )
    

    So, can I use regular android-x86 toolchain to generate code for the google tv device that has different libc?

    No, you need a cross-compiler for this. A cross-compiler is one that runs on one OS (regular Linux here), but creates an executable that will run somewhere else (on Google V).

    Your best bet is to download SDK for GoogleTV, which will include such a cross-compiler, as well as required libraries.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
I am trying to loop through a bunch of documents I have to put
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

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.