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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:00:35+00:00 2026-05-28T11:00:35+00:00

building libraries with waf is nice and I like the lib<targetname> naming scheme. But

  • 0

building libraries with waf is nice and I like the lib<targetname> naming scheme. But when I use is with boost::python, I’d like to get rid of it: I’d like the librarie’s name to be like the target name. This is just a simple rename, I know, but: Can I tell waf to leave out putting lib before the target name (alternatively: specify an own name which stays untouched)?

  • 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-28T11:00:36+00:00Added an answer on May 28, 2026 at 11:00 am

    Ok, got it. This feature can be enabled by using the python tool, found here: http://docs.waf.googlecode.com/git/apidocs_16/tools/python.html#module-waflib.Tools.python

    The main point is calling conf.init_pyext() and in the build directive for the shared library specifying features='pyext':

    def options(opt):
            opt.load('python')
    
    def configure(conf):
        conf.load('python')
        conf.check_python_version((2,4,2))
        conf.check_python_headers()
    
    def build(bld):
    
        bld.shlib(
            features = 'pyext',
            source = "mymodule.cpp",
            target = "myfoo",
            use = "PYTHON BOOST_PYTHON")
    

    Now, in the build directory there is a shared library called myfoo.so which can directly be imported.

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

Sidebar

Related Questions

Does anyone have a set of instructions for building boost libraries for use on
How do I specify 64-bit machine architecture when building boost libraries with bjam on
I'm building the boost libraries with bjam for both the intel compiler and vs2008,
Building a commercial product may use various open source libraries that have use of
My system is having trouble building the boost libraries. I understand that most boost
I'm building the below example boost-consuming user-mode app with the WDK, but I'm getting
I'm building my own libraries, but I'm wondering what's already available for extending string,
When building Boost binary libraries with bjam , one may specify which compiler to
When building static libraries with VS2005 I keep getting linker warnings that VC80.pdb cant
I am building a CAD-file converter on top of two libraries (Opencascade and DWF

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.