[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-build
Subject:    Re: [Boost-build] Boost Python Build Error
From:       Rene Rivera via Boost-build <boost-build () lists ! boost ! org>
Date:       2017-02-21 19:18:47
Message-ID: CAHEh_GhoSad1k6nS5LLtfK9t=4Mp7C05Ga7papnmaUiD66yDBg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


There is a bug in building BPL stuff (all of it) that you just ran into..
And that I'm trying to fix ATM.

On Tue, Feb 21, 2017 at 11:35 AM, B Ku via Boost-build <
boost-build@lists.boost.org> wrote:

> Hi Guys,
>
> I am trying to get the Boost Python example working.
>
> I am running Windows.  I downloaded the source code for boost_1_63_0, ran
> the boostrap.bat file to generate b2.exe and bjam.exe.  Then I executed
> b2.exe to build libboost*.lib in state/lib.
>
> I then modified and placed the user-config.jam file in the
> %HOMEDRIVE%%HOMEPATH% directory as follows:
>
> # Configure specific msvc version (searched for in standard locations and
> PATH).
> using msvc : 12.0 ;
>
> # Configure specific Python version.
> using python
> : 3.5
> : C:\\Users\\Ben\\AppData\\Local\\Programs\\Python\\Python35\\python.exe
> : C:\\Users\\Ben\\AppData\\Local\\Programs\\Python\\Python35\\include
> : C:\\Users\\Ben\\AppData\\Local\\Programs\\Python\\Python35\\libs
> : <toolset>msvc
> ;
>
> Then, I modified the libs/python/example/tutorial/Jamfile as follows, so
> include .h files can be found:
> project tutorial
>   : requirements
> <include>../../../../
>     <location>.
>     ;
>
> Finally, I copied the bjam.exe to libs/python/example, and executed
> bjam.exe and got the following error:
>
> C:\Users\Ben\Home\boost\boost_1_63_0\libs\python\example>bjam.exe
> ...patience...
> ...found 996 targets...
> ...updating 4 targets...
> msvc.link.dll tutorial\hello_ext.pyd
> LINK : fatal error LNK1181: cannot open input file 'boost_python.lib'
>
>         call "C:\Users\Ben\AppData\Local\Temp\b2_msvc_12.0_vcvarsall_x86.cmd"
> >nul
> link /NOLOGO /INCREMENTAL:NO /DLL /NOENTRY /DEBUG /MACHINE:X86 /MANIFEST
> /subsystem:console /out:"tutorial\hello_ext.pyd" /IMPLIB:"tut
>         if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
>
> ...failed msvc.link.dll tutorial\hello_ext.pyd tutorial\hello_ext.pdb
> tutorial\hello_ext.pdb...
> ...skipped <ptutorial>hello for lack of <ptutorial>hello_ext.pyd...
> ...failed updating 2 targets...
> ...skipped 2 targets...
>
> Is there a way to specify where the .lib files are supposed to be?
>
> Am I missing a step?  By default, b2 generates lib files with this name
> format: libboost*.lib, not boost_python.lib.
>
> Thank you very much for your help in advance!
>
> Thanks,
> Ben
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/
> mailman/listinfo.cgi/boost-build
>
>


-- 
-- Rene Rivera
-- Grafik - Don't Assume Anything
-- Robot Dreams - http://robot-dreams.net
-- rrivera/acm.org (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail

[Attachment #5 (text/html)]

<div dir="ltr">There is a bug in building BPL stuff (all of it) that you just ran \
into.. And that I&#39;m trying to fix ATM.</div><div class="gmail_extra"><br><div \
class="gmail_quote">On Tue, Feb 21, 2017 at 11:35 AM, B Ku via Boost-build <span \
dir="ltr">&lt;<a href="mailto:boost-build@lists.boost.org" \
target="_blank">boost-build@lists.boost.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi Guys,<div><br></div><div>I am trying to get \
the Boost Python example working.   </div><div><br></div><div>I am running Windows.   \
I downloaded the source code for boost_1_63_0, ran the boostrap.bat file to generate \
b2.exe and bjam.exe.   Then I executed b2.exe to build libboost*.lib in \
state/lib.</div><div><br></div><div>I then modified and placed the user-config.jam \
file in the %HOMEDRIVE%%HOMEPATH% directory as follows:</div><div><br></div><div># \
Configure specific msvc version (searched for in standard locations and \
PATH).<br></div><div>using msvc : 12.0 ;<br></div><div><br></div><div><div># \
Configure specific Python version.</div><div>using python</div><div><span \
class="m_-4001999685554812463gmail-Apple-tab-span" \
style="white-space:pre-wrap">	</span>: 3.5</div><div><span \
class="m_-4001999685554812463gmail-Apple-tab-span" \
style="white-space:pre-wrap">	</span>: \
C:\\Users\\Ben\\AppData\\<wbr>Local\\Programs\\Python\\<wbr>Python35\\python.exe</div><div><span \
class="m_-4001999685554812463gmail-Apple-tab-span" \
style="white-space:pre-wrap">	</span>: \
C:\\Users\\Ben\\AppData\\<wbr>Local\\Programs\\Python\\<wbr>Python35\\include</div><div><span \
class="m_-4001999685554812463gmail-Apple-tab-span" \
style="white-space:pre-wrap">	</span>: \
C:\\Users\\Ben\\AppData\\<wbr>Local\\Programs\\Python\\<wbr>Python35\\libs</div><div><span \
class="m_-4001999685554812463gmail-Apple-tab-span" \
style="white-space:pre-wrap">	</span>: &lt;toolset&gt;msvc</div><div><span \
class="m_-4001999685554812463gmail-Apple-tab-span" \
style="white-space:pre-wrap">	</span>;</div></div><div><br></div><div>Then, I \
modified the libs/python/example/tutorial/<wbr>Jamfile as follows, so include .h \
files can be found:</div><div><div>project tutorial</div><div>   : \
requirements</div><div><span class="m_-4001999685554812463gmail-Apple-tab-span" \
style="white-space:pre-wrap">	</span>&lt;include&gt;../../../../</div><div>      \
&lt;location&gt;.</div><div>      ;</div></div><div><br></div><div>Finally, I copied \
the bjam.exe to libs/python/example, and executed bjam.exe and got the following \
error:<br></div><div><br></div><div><div>C:\Users\Ben\Home\boost\boost_<wbr>1_63_0\libs\python\example&gt;<wbr>bjam.exe</div><div>...patience...</div><div>...found \
996 targets...</div><div>...updating 4 targets...</div><div>msvc.link.dll \
tutorial\hello_ext.pyd</div><div>LINK : fatal error LNK1181: cannot open input file \
&#39;boost_python.lib&#39;</div><div><br></div><div>            call \
&quot;C:\Users\Ben\AppData\Local\<wbr>Temp\b2_msvc_12.0_vcvarsall_<wbr>x86.cmd&quot; \
&gt;nul</div><div>link /NOLOGO /INCREMENTAL:NO /DLL /NOENTRY /DEBUG /MACHINE:X86 \
/MANIFEST /subsystem:console /out:&quot;tutorial\hello_ext.pyd&quot; \
/IMPLIB:&quot;tut</div><div>            if %ERRORLEVEL% NEQ 0 EXIT \
%ERRORLEVEL%</div><div><br></div><div>...failed msvc.link.dll tutorial\hello_ext.pyd \
tutorial\hello_ext.pdb tutorial\hello_ext.pdb...</div><div>...skipped \
&lt;ptutorial&gt;hello for lack of \
&lt;ptutorial&gt;hello_ext.pyd...</div><div>...failed updating 2 \
targets...</div><div>...skipped 2 targets...</div></div><div><br></div><div>Is there \
a way to specify where the .lib files are supposed to be?   \
<br></div><div><br></div><div>Am I missing a step?   By default, b2 generates lib \
files with this name format: libboost*.lib, not boost_python.lib.   \
<br></div><div><br></div><div>Thank you very much for your help in \
advance!</div><div><br></div><div>Thanks,</div><div>Ben</div></div> \
<br>______________________________<wbr>_________________<br> Unsubscribe &amp; other \
changes: <a href="http://lists.boost.org/mailman/listinfo.cgi/boost-build" \
rel="noreferrer" target="_blank">http://lists.boost.org/<wbr>mailman/listinfo.cgi/boost-<wbr>build</a><br>
 <br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-- Rene \
Rivera<br>-- Grafik - Don&#39;t Assume Anything<br>-- Robot Dreams -  <a \
href="http://robot-dreams.net/" target="_blank">http://robot-dreams.net</a><br>-- \
rrivera/<a href="http://acm.org/" target="_blank">acm.org</a>  (msn)  -  \
grafikrobot/aim,yahoo,skype,efnet,gmail</div></div> </div>



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic