|
Boost-Build : |
Subject: [Boost-build] RES: Define link libs (Debug or Release)
From: Renato Tegon Forti (re.tf_at_[hidden])
Date: 2012-04-19 10:17:04
NOW WORK!!! thanks so much... ;0)
I needed to remove:
<threading>multi (this was conflicting w/lib) _ I dont know why!
>From my Janroot, like this:
using mpi ;
project
: requirements
<include>/Projects/project.aysso/Runtime/Hades/Applications/VaultStores/Serv
ices/Parallel
<include>/3rdparty/Boost/1.46.1/include
<include>/usr/include/mpich2
# <threading>multi
;
If I dont remove <threading>multi, I get this error: (why?)
error: No best alternative for ./poconet
next alternative: required properties: <threading>multi <variant>release
not matched
next alternative: required properties: <threading>multi <variant>debug
not matched
error: No best alternative for ./pocofoundation
next alternative: required properties: <threading>multi <variant>release
not matched
next alternative: required properties: <threading>multi <variant>debug
not matched
...found 1 target...
...updating 1 target...
common.Clean clean
...updated 1 target...
De: Phillip Seaver <mailto:[mailto:phil_at_[hidden]]> [mailto:phil_at_[hidden]]
Enviada em: terça-feira, 17 de abril de 2012 10:08
Para: <mailto:re.tf_at_[hidden]> re.tf_at_[hidden]; Boost.Build developer's and
user's list
Assunto: Re: [Boost-build] Define link libs (Debug or Release)
On 4/17/2012 7:32 AM, Renato Tegon Forti wrote:
lib system : : <name>boost_system <search>/3rdparty/Boost/1.46.1/lib
;
lib omp : : <name>gomp <search>/usr/lib/gcc/x86_64-linux-gnu/4.6.3
;
lib mysqlcppconn : : <name>mysqlcppconn <search>/usr/lib ;
# Debug
lib mylib_DEB : : <name> mylibd <search>/3rdparty;
#Release
lib mylib_REL : : <name> mylib <search>/3rdparty;
lib dts_cte_bhv : main.cpp
system
omp
mysqlcppconn
# HOW TO PUT LIBS HERE !
: :
<variant>debug
<variant>release
<cxxflags>-fopenmp
<include>/3rdparty/Poco/2011.1/20110110/Net/include/
<include>/3rdparty/Poco/2011.1/20110110/Foundation/include/
;
I ddi try this:
omp
mysqlcppconn
: :
<variant>debug : mylib_DEB
<variant>release : mylib_REL
<cxxflags>-fopenmp
But dont work! Any Idea!
I usually do "<variant>debug:<source>mylib_DEB"
Alternately, I believe something like this will work:
lib mylib : : <name>mylibd <variant>debug <search>/3rdparty ;
lib mylib : : <name>mylib <variant>release <search>/3rdparty ;
You can then just add "mylib" to the sources of the target.
While I was copying some of your code, I noticed that you have no space
before the semicolon in "<search>/3rdparty;" To the best of my knowledge,
that can still cause problems with parsing.
Hope this helps!
Phillip
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