Boost logo

Boost-Build :

From: Jürgen Hunold (hunold+lists.Boost_at_[hidden])
Date: 2003-01-28 17:03:16


Am Dienstag 28 Januar 2003 17:08 schrieb Vladimir Prus:
> I've just added the first version of stlport module for V2. I have
[...]
> in examples-v2/hello. All works as expected. The second command line
> uses stlport with native iostreams.

Thanks, Vladimir. I've copied this and it basically works.
Some flaws:
Toolset does not specify Llibrary path with -L option. It therefore
doesn't link on my machine because I'm not using vendor-stlport (SuSE)
but own version patched for gcc-3.2.1 and my programs.
(Hardcoding dll-path with -Wl,-rpath would be great, too).

It does not work with qt-toolset. bjam says:

hunold_at_stofi:~/develop/laden/gui> bjam --v2 stdlib=stlport
/home/hunold/packages/boost/tools/build/new/feature.jam:777: in
feature.run-actions
*** argument error
* rule qt.qt.add-properties ( property )
* called with: ( <uses>qt : <stdlib>stlport <os>LINUX <toolset>gcc
<link>shared <link-runtime>shared <optimization>off <threading>single
<rtti>on <debug-symbols>on <hardcode-dll-paths>true <variant>debug
<include>. <include>/usr/local/STLport-4.5.3/stlport
<include>/home/hunold/packages/boost <uses>qt )
* extra argument <stdlib>stlport
/home/hunold/packages/boost/tools/build/new/qt.jam:72:see definition of
rule 'qt.qt.add-properties' being called
/home/hunold/packages/boost/tools/build/new/targets.jam:536: in
object(typed-target)@3.generate

when using with stport-toolset. It chokes even when doing
hunold_at_stofi:~/develop/laden/gui> bjam --v2
/home/hunold/packages/boost/tools/build/new/feature.jam:777: in
feature.run-actions
*** argument error
* rule qt.qt.add-properties ( property )
* called with: ( <uses>qt : <os>LINUX <toolset>gcc <stdlib>native
<link>shared <link-runtime>shared <optimization>off <threading>single
<rtti>on <debug-symbols>on <hardcode-dll-paths>true <variant>debug
<include>. <include>/usr/local/STLport-4.5.3/stlport
<include>/home/hunold/packages/boost <uses>qt )
* extra argument <os>LINUX
/home/hunold/packages/boost/tools/build/new/qt.jam:72:see definition of
rule 'qt.qt.add-properties' being called
/home/hunold/packages/boost/tools/build/new/targets.jam:536: in
object(typed-target)@3.generate

I've skipped the rest of the messages since they do not seem to be
important.
The problem seems to be the "extra argument" line. I don't know what
triggers this.

> Support for debug mode is next thing --- once I figure out how to use
> it by hand.

Simplest use: specify _STLP_DEBUG and link against -lstlport_gcc_debug.
This enables the debug engine. You can then specify more specific debug
options (see stlport/stl_user_config.h)

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold ! Institut für Verkehrswesen, Eisenbahnbau
* voice: ++49 511 762-2529 ! und -betrieb, Universität Hannover
* fax : ++49 511 762-3001 ! Appelstrasse 9a, D-30167 Hannover
* hunold_at_[hidden] ! www.ive.uni-hannover.de
 

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