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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:42:36+00:00 2026-05-24T05:42:36+00:00

I have built boost for the android on both windows and osx and am

  • 0

I have built boost for the android on both windows and osx and am running into an issue with boost library names. On windows boost adds a number of specifiers to the library names, such as libboost_filesystem-gcc-mt-s-1_46.a however on osx it omits all the additional information and is just: libboost_filesystem.a.

The problem now is in my Android.mk file I need to link to the lib yet the names are different for each platform. I am looking for one of two solutions the first: is there a way to tell boost to drop the additional specifiers and just use the format you are seeing here for osx (regardless of what platform the libs were built on) or two: is there a way to determine in my Android.mk if the build environment is windows? I would prefer a solution to #1 however either one would get me going at this point.

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-05-24T05:42:37+00:00Added an answer on May 24, 2026 at 5:42 am

    From the bjam --help listing:

    --layout=<layout>

    Determines whether to choose library names and header locations such that multiple versions of Boost or multiple compilers can be used on the same system.

    • versioned – Names of boost binaries include the Boost version number, name and version of the compiler and encoded build properties. Boost headers are installed in a subdirectory of <HDRDIR> whose name contains the Boost version number.
    • tagged — Names of boost binaries include the encoded build properties such as variant and threading, but do not including compiler name and version, or Boost version. This option is useful if you build several variants of Boost, using the same compiler.
    • system – Binaries names do not include the Boost version number or the name and version number of the compiler. Boost headers are installed directly into <HDRDIR>. This option is intended for system integrators who are building distribution packages.

    The default value is ‘versioned’ on Windows, and ‘system’ on Unix.

    It sounds like you want to build with either --layout=tagged or --layout=system on both platforms, so the resulting filenames are consistent.

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

Sidebar

Related Questions

I have built a number of asp.net servercontrols into a class library, & I
I have built Boost in Release configuration and have staged it into one folder.
I have been trying to marry Boost and android on windows for long time
I have built the Boost library from these instructions: http://stackoverflow.com/questions/3529163/install-boost-library-in-visual-c-2008 Directory of the unzipped
I have built a windows service application in VB.net 2008, and used the Setup
I have a C++ project which is using boost. The whole project is built
I am trying to link the libraries from boost to C::B. I have built
I have been using Boost (the header only library part) for sometime now. I
I have RHEL 5.2, with Boost 1.33 installed. I downloaded boost_1_44_0.tar.bz2. and built it.
I have gcc 4.4.5 and the latest boost library. I want to use boost

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.