cannot open file 'boost_python-vc100-mt-1_49.lib'

596 views
Skip to first unread message

devq

unread,
May 21, 2013, 11:10:54 AM5/21/13
to map...@googlegroups.com
Hello,

I am building mapnik on Windows 7 64bit VS 2010. Everything compiled sucessfully except the error below.

How to fix this error?:
........................................
compile-c-c++ build\utils\svg2png\msvc-10.0\release\threading-multi\svg2png.obj
svg2png.cpp
c:\dev2\mapnik\include\mapnik/grid/grid_pixel.hpp(293) : warning C4244: '=' : conversion from 'mapnik::gray32::calc_type' to 'mapnik::gray32::value_type', possible loss of data
c:\dev2\mapnik\include\mapnik/grid/grid_pixel.hpp(294) : warning C4244: '=' : conversion from 'mapnik::gray32::calc_type' to 'mapnik::gray32::value_type', possible loss of data
c:\dev2\mapnik\include\mapnik/grid/grid_pixel.hpp(301) : warning C4244: '=' : conversion from 'mapnik::gray32::calc_type' to 'mapnik::gray32::value_type', possible loss of data
c:\dev2\mapnik\include\mapnik/grid/grid_pixel.hpp(302) : warning C4244: '=' : conversion from 'mapnik::gray32::calc_type' to 'mapnik::gray32::value_type', possible loss of data
c:\dev2\mapnik\utils\svg2png\svg2png.cpp(152) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
c:\dev2\mapnik\utils\svg2png\svg2png.cpp(153) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
msvc.link build\utils\svg2png\msvc-10.0\release\threading-multi\svg2png.exe
msvc.manifest build\utils\svg2png\msvc-10.0\release\threading-multi\svg2png.exe
common.mkdir build\tests
common.mkdir build\tests\cpp_tests
common.mkdir build\tests\cpp_tests\msvc-10.0
common.mkdir build\tests\cpp_tests\msvc-10.0\release
common.mkdir build\tests\cpp_tests\msvc-10.0\release\threading-multi
msvc.link.dll build\bindings\python\msvc-10.0\release\threading-multi\_mapnik.pyd
LINK : fatal error LNK1104: cannot open file 'boost_python-vc100-mt-1_49.lib'

        call "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >nul
link /NOLOGO /INCREMENTAL:NO /DLL /MACHINE:X86 /subsystem:console /out:"build\bindings\python\msvc-10.0\release\threading-multi\_mapnik.pyd" /IMPLIB:"build\bindings\python\msvc-10.0\release\threading-multi\_mapnik.lib" /LIBPATH:"C:\Python27\libs" /LIBPATH:"c:\dev2\boost-49-vc100\lib" /LIBPATH:"c:\dev2\icu\lib"   @"build\bindings\python\msvc-10.0\release\threading-multi\_mapnik.pyd.rsp"
        if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
    
...failed msvc.link.dll build\bindings\python\msvc-10.0\release\threading-multi\_mapnik.pyd build\bindings\python\msvc-10.0\release\threading-multi\_mapnik.lib...
...skipped <pc:\mapnik-2.0\python\2.7\site-packages\mapnik>_mapnik.pyd for lack of <pbuild\bindings\python\msvc-10.0\release\threading-multi>_mapnik.pyd...
...skipped <pc:\mapnik-2.0\python\2.7\site-packages\mapnik>_mapnik.lib for lack of <pbuild\bindings\python\msvc-10.0\release\threading-multi>_mapnik.pyd...
compile-c-c++ build\tests\cpp_tests\msvc-10.0\release\threading-multi\params_test.obj
params_test.cpp
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdint.h(72) : warning C4005: 'INT8_MIN' : macro redefinition
        c:\dev2\icu\include\unicode/umachine.h(153) : see previous definition of 'INT8_MIN'
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdint.h(73) : warning C4005: 'INT16_MIN' : macro redefinition
        c:\dev2\icu\include\unicode/umachine.h(157) : see previous definition of 'INT16_MIN'
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdint.h(74) : warning C4005: 'INT32_MIN' : macro redefinition
        c:\dev2\icu\include\unicode/umachine.h(161) : see previous definition of 'INT32_MIN'
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdint.h(76) : warning C4005: 'INT8_MAX' : macro redefinition
        c:\dev2\icu\include\unicode/umachine.h(166) : see previous definition of 'INT8_MAX'
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdint.h(77) : warning C4005: 'INT16_MAX' : macro redefinition
        c:\dev2\icu\include\unicode/umachine.h(170) : see previous definition of 'INT16_MAX'
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdint.h(78) : warning C4005: 'INT32_MAX' : macro redefinition
        c:\dev2\icu\include\unicode/umachine.h(174) : see previous definition of 'INT32_MAX'
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdint.h(79) : warning C4005: 'UINT8_MAX' : macro redefinition
        c:\dev2\icu\include\unicode/umachine.h(179) : see previous definition of 'UINT8_MAX'
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdint.h(80) : warning C4005: 'UINT16_MAX' : macro redefinition
        c:\dev2\icu\include\unicode/umachine.h(183) : see previous definition of 'UINT16_MAX'
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdint.h(81) : warning C4005: 'UINT32_MAX' : macro redefinition
        c:\dev2\icu\include\unicode/umachine.h(187) : see previous definition of 'UINT32_MAX'
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdint.h(165) : warning C4005: 'INT64_C' : macro redefinition
        c:\dev2\icu\include\unicode/pwin32.h(107) : see previous definition of 'INT64_C'
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdint.h(166) : warning C4005: 'UINT64_C' : macro redefinition
        c:\dev2\icu\include\unicode/pwin32.h(110) : see previous definition of 'UINT64_C'
msvc.link build\tests\cpp_tests\msvc-10.0\release\threading-multi\params_test.exe
msvc.manifest build\tests\cpp_tests\msvc-10.0\release\threading-multi\params_test.exe
compile-c-c++ build\tests\cpp_tests\msvc-10.0\release\threading-multi\font_registration_test.obj
font_registration_test.cpp
msvc.link build\tests\cpp_tests\msvc-10.0\release\threading-multi\font_registration_test.exe
msvc.manifest build\tests\cpp_tests\msvc-10.0\release\threading-multi\font_registration_test.exe
...failed updating 1 target...
...skipped 2 targets...
...updated 614 targets...
Started at 16:59:29.36, finished at 17:48:45.19

There is no boost_python-vc100-mt-1_49.lib in c:\dev2\boost-49-vc100\lib but there are libboost_python-vc100-mt-1_49.lib
I tried to change boost_python-vc100-mt-1_49 to libboost_python-vc100-mt-1_49 in site-config.jam but that did not help.



Artem Pavlenko

unread,
May 21, 2013, 12:54:11 PM5/21/13
to map...@googlegroups.com
Hi there,

you need to build shared boost_python library :

bjam toolset=msvc --prefix=..\\%BOOST_PREFIX% --with-python
--python=2.7 release link=shared --build-type=complete
address-model=64 install

you might need to adjust options but link=shared is the key here.

HTH,

Artem
> --
> You received this message because you are subscribed to the Google Groups
> "mapnik" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mapnik+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

devq

unread,
May 22, 2013, 8:21:16 AM5/22/13
to map...@googlegroups.com
It fixed the issue. Thank you Artem!

вторник, 21 мая 2013 г., 19:54:11 UTC+3 пользователь artemp написал:
Reply all
Reply to author
Forward
0 new messages