|
Boost-Build : |
From: Paolo Coletta (paolo_at_[hidden])
Date: 2007-01-05 09:18:12
On Fri, 05 Jan 2007 13:04:51 +0100, Jorge Suit Perez Ronda wrote:
> I think you need to do:
>
> import project ;
> project.initialize $(__name__) ;
> project site-config ;
>
> in order to use site-config.jam as a project
>
> the line 'project.initialize $(__name__) ;' is missing
>
> I take that from the documentation: http://boost.org/boost-build2/doc/html/bbv2/recipies/site-config.html
>
> hope it helps, regards,
>
> Jorge
Unfortunately this didn't help. I still get the same error.
Moreover, I found a previous thread
(http://article.gmane.org/gmane.comp.lib.boost.build/10165/match=seting+boost+enabled+development+environement)
where it was said that the first two lines should not be needed anymore
since ver 1.33. BTW, this probably means that the doc is out-of-date.
Other hints?
Paolo
>
> On Fri, 2007-01-05 at 02:40 +0100, Paolo Coletta wrote:
>> Hi,
>> I need to include jni headers (from Java jdk) in some of my projects.
>> To avoid adding
>> <include>/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/include/
>> <include>/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/include/linux
>> in the specific projects (which makes the Jamfile non portable on
>> different PCs) the suggested solution seems to be to customize the
>> site-config.jam
>> Thus, I tried to change site-config as follows:
>>
>> # siteconfig.jam
>> project site-config ;
>> lib jdk :
>> : <include>/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/include/
>> <include>/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/include/linux ;
>>
>> and modified my Jamfile to use site-config//jdk: # Jamfile lib jni : [
>> glob ../../../src/jni/*.cpp ]
>>
>> /site-config//jdk
>>
>> : <link>static ;
>>
>> However, I get the following error:
>> error: Unable to find file or target named error: '/site-config//jdk'
>> error: referred from project at
>> error: 'jni'
>>
>> I also tried to use the syntax suggested in the doc
>> http://www.boost.org/doc/html/bbv2/recipies/site-config.html i.e., I
>> added the following two lines to site-config.jam import project ;
>> project.initialize $(__name__) ;
>> but I get the same error. Anyway, I remember to have seen a msg in the
>> list (but I do not find it now) which said the above two lines should
>> not be needed anymore in ver 1.33.1.
>>
>> I'm using boost 1.33.1 (and the bjam version therein).
>>
>> Is there something wrong with this approach?
>>
>> Thanks,
>> Paolo
>>
>> _______________________________________________ Unsubscribe & other
>> changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
> _______________________________________________ Unsubscribe & other
> changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
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