Boost logo

Boost-Build :

Subject: [Boost-build] Unable to link with Apache lib
From: Anant Rao (arao_at_[hidden])
Date: 2009-06-27 11:00:01


Hi,

I'm unable to get this simple thing working. My requirement is to link with Apache lib. I tried 2, 3 cases, both don't work.

1.
path-constant SRC2 : "../shared/processors/src" ;
path-constant SRC3 : "../shared/processors/phrasecountfeature/src" ;
path-constant SRC4 : "../../../../ThirdParty/Apache/2.2.11/httpd-2.2.11/srclib/apr/.libs" ;

project phrasecountfeature
   : source-location $(SRC1) $(SRC2) $(SRC3)

searched-lib apr : : <name>libapr-1.a <file>/home/arao/SLDS/Master_Repo/dev/ThirdParty/Apache/2.2.11/httpd-2.2.11/srclib/apr/.libs ;

lib libphrasecountfeature
   :
   phrasecountfeaturedll.cpp
   PhraseCountFeatureExtractor.cpp
   processor_modules_common.cpp
   apr
   : <define>$(DEFINES) : <link>shared ;

RESULT:
error: Unable to find file or target named
error: '/home/arao/SLDS/Master_Repo/dev/ThirdParty/Apache/2.2.11/httpd-2.2.11/srclib/apr/.libs'
error: referred from project at
error: '.'

2.
path-constant SRC2 : "../shared/processors/src" ;
path-constant SRC3 : "../shared/processors/phrasecountfeature/src" ;
path-constant SRC4 : "../../../../ThirdParty/Apache/2.2.11/httpd-2.2.11/srclib/apr/.libs" ;

project phrasecountfeature
   : source-location $(SRC1) $(SRC2) $(SRC3)
   : requirements <library>../../../../ThirdParty/Apache/2.2.11/httpd-2.2.11/srclib/apr/.libs/libapr-1.a
   ;

searched-lib apr : : <name>libapr-1.a <file>/home/arao/SLDS/Master_Repo/dev/ThirdParty/Apache/2.2.11/httpd-2.2.11/srclib/apr/.libs ;

lib libphrasecountfeature
   :
   phrasecountfeaturedll.cpp
   PhraseCountFeatureExtractor.cpp
   processor_modules_common.cpp
   apr
   : <define>$(DEFINES) : <link>shared ;

RESULT:
error: Unable to find file or target named
error: '/home/arao/SLDS/Master_Repo/dev/ThirdParty/Apache/2.2.11/httpd-2.2.11/srclib/apr/.libs'
error: referred from project at
error: '.'

3.
path-constant SRC2 : "../shared/processors/src" ;
path-constant SRC3 : "../shared/processors/phrasecountfeature/src" ;
path-constant SRC4 : "../../../../ThirdParty/Apache/2.2.11/httpd-2.2.11/srclib/apr/.libs" ;

project phrasecountfeature
   : source-location $(SRC1) $(SRC2) $(SRC3)

lib libphrasecountfeature
   :
   phrasecountfeaturedll.cpp
   PhraseCountFeatureExtractor.cpp
   processor_modules_common.cpp
   /home/arao/SLDS/Master_Repo/dev/ThirdParty/Apache/2.2.11/httpd-2.2.11/srclib/apr/.libs/libapr-1.a
   : <define>$(DEFINES) : <link>shared ;

RESULT:
This builds ok, but it doesn't really link in the Apache lib.

--------------------------

I'm sure this is easy or you to answer. Please help.

Thanks,
Anant



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