Boost logo

Boost-Build :

Subject: Re: [Boost-build] Picking up options from pkg-config
From: Daniel Lidström (daniel.lidstrom_at_[hidden])
Date: 2009-04-01 10:05:51


> > If you are on Linux, then please use this:
> >
> > exe a : a.cpp
> > : <cflags>`pkg-config --cflags glib-2.0`
> > : <linkflags>`pkg-config --libs glib-2.0`
> > ;
> >
> > - Volodya
>

I can't get it to work though:

georog-dev:/home/daniel/projects/test> dir
total 37K
drwxr-xr-x 2 daniel daniel 144 2009-04-01 16:02 .
drwxr-xr-x 10 daniel daniel 768 2009-01-26 09:25 ..
-rwxr-xr-x 1 daniel daniel 22K 2008-09-08 10:12 a.out
-rw-r--r-- 1 daniel daniel 108 2009-04-01 16:02 Jamroot
-rw-r--r-- 1 daniel daniel 2.5K 2008-09-08 10:12 main.cpp
-rw-r--r-- 1 daniel daniel 422 2008-07-09 16:40 mono.cs
georog-dev:/home/daniel/projects/test> cat Jamroot
exe a : a.cpp
        : <cflags>`pkg-config --cflags glib-2.0`
    : <linkflags>`pkg-config --libs glib-2.0`
    ;
georog-dev:/home/daniel/projects/test> bjam
/home/daniel/projects/Vendor/boost-build/milestone12/build/property.jam:320:
in property.make from module property
error: '-cflags' is not a valid for property specification
/home/daniel/projects/Vendor/boost-build/milestone12/build/property-set.jam:
390: in property-set.create-from-user-input from module property-set
/home/daniel/projects/Vendor/boost-build/milestone12/build/property-set.jam:
437: in property-set.refine-from-user-input from module property-set
/home/daniel/projects/Vendor/boost-build/milestone12/build/targets.jam:1477:
in targets.main-target-requirements from module targets
/home/daniel/projects/Vendor/boost-build/milestone12/build/targets.jam:1551:
in targets.create-typed-target from module targets
/home/daniel/projects/Vendor/boost-build/milestone12/build/type.jam:368: in
exe from module type
Jamroot:3: in modules.load from module Jamfile</home/daniel/projects/test>
/home/daniel/projects/Vendor/boost-build/milestone12/build/project.jam:312:
in load-jamfile from module project
/home/daniel/projects/Vendor/boost-build/milestone12/build/project.jam:68:
in load from module project
/home/daniel/projects/Vendor/boost-build/milestone12/build/project.jam:170:
in project.find from module project
/home/daniel/projects/Vendor/boost-build/milestone12/build-system.jam:248:
in load from module build-system
/home/daniel/projects/Vendor/boost-build/milestone12/kernel/modules.jam:261:
in import from module modules
/home/daniel/projects/Vendor/boost-build/milestone12/kernel/bootstrap.jam:13
2: in boost-build from module
/home/daniel/projects/Vendor/boost-build/milestone12/boost-build.jam:1: in
module scope from module

georog-dev:/home/daniel/projects/test> bjam -v
Boost.Jam Version 3.1.17. OS=LINUX.
   Copyright 1993-2002 Christopher Seiwald and Perforce Software, Inc.
   Copyright 2001 David Turner.
   Copyright 2001-2004 David Abrahams.
   Copyright 2002-2008 Rene Rivera.
   Copyright 2003-2008 Vladimir Prus.

What am I missing?

/Daniel


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk