Boost logo

Boost Users :

Subject: [Boost-users] Getting introduced to boost Python world, struck at hello_ext.pyd generation
From: Raghu Kalyan Anna (raghukalyan_at_[hidden])
Date: 2013-10-18 07:36:58


Hi,

  Started to explore boost.Python to use C++ classes (.so or .dll) from
Python world.

  I did these, (Windows)

  downloaded boost 1.54 and unpacked to C:\boost_1_54, Python 3.3 (earlier
tried with Python 2.7)
  installed visuall C++ 2010 Express free edition

  From Visual studio command prompt, tested example.cpp and got the result.

  Now struck in getting hellp.cpp and to generate hello_ext.pyd.
  Looked at posts in stackoverflow and tried similar steps. Still the same.

  After unpacking boost1.54, I tried these

  <boost root>
  C:\boost_1_54>bootstrap.bat
  C:\boost_1_54>b2
  Now it said add C:\boost_1_54 to compiler include path and
   add c:\boost_1_54\stage\lib to linker paths.

Added these two paths to %PATH% environment variable thru advanced settings.

Now ran bjam from hello tutorial

C:\boost_1_54\libs\python\example\tutorial>bjam

hello_ext.pyd is not generated

And noted this
"LINK : fatal error LNK1104: cannot open file
'boost_python-vc100-mt-gd-1_54.lib'

        call "C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\vcvarsall.b
at" x86 >nul
link /NOLOGO /INCREMENTAL:NO /DLL /DEBUG /MACHINE:X86 /MANIFEST
/subsystem:conso
le /out:"bin\msvc-10.0\debug\hello_ext.pyd"
/IMPLIB:"bin\msvc-10.0\debug\hello_e
xt.lib" /LIBPATH:"C:\Python33\libs"
@"bin\msvc-10.0\debug\hello_ext.pyd.rsp"
        if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%

...failed msvc.link.dll bin\msvc-10.0\debug\hello_ext.pyd
bin\msvc-10.0\debug\he
llo_ext.lib bin\msvc-10.0\debug\hello_ext.pdb
bin\msvc-10.0\debug\hello_ext.pdb.
..
common.copy boost_python-vc100-gd-1_54.dll
..\..\..\..\bin.v2\libs\python\build\msvc-10.0\debug\boost_python-vc100-gd-1_54.
dll
        1 file(s) copied.
...skipped <p.>hello_ext.pyd for lack of
<pbin\msvc-10.0\debug>hello_ext.pyd...
common.mkdir bin\hello.test
common.mkdir bin\hello.test\msvc-10.0
common.mkdir bin\hello.test\msvc-10.0\debug
...failed updating 3 targets...
...skipped 1 target...
...updated 41 targets..."

If this is basic question, please answer.
Or else please direct to appropriate Boost mailing list

-- 
Regards,
Ram
**


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net