Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] boost/1.72.0: not compile on Windows with shared and python options. #2973

Closed
mherok opened this issue Sep 21, 2020 · 0 comments · Fixed by #9059
Closed

[package] boost/1.72.0: not compile on Windows with shared and python options. #2973

mherok opened this issue Sep 21, 2020 · 0 comments · Fixed by #9059
Labels
bug Something isn't working

Comments

@mherok
Copy link

mherok commented Sep 21, 2020

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: boost/1.72.0
  • Operating System+version: Windows 10
  • Compiler+version: MSVC++ v15.9.26
  • Docker image: --
  • Conan version: conan 1.29.0
  • Python version: Python 3.8.5

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86
compiler=Visual Studio
compiler.version=15
build_type=Debug
[options]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

conanfile.txt:

[requires]
boost/1.72.0

[options]
*:python=True
*:fPIC=True
*:without_python=False
boost:shared=True
poco:shared=True
sqlite3:shared=True

[generators]
cmake_find_package
cmake_paths

conan install conanfile.txt -s build_type=Debug --build=missing

Logs (Include/Attach if Applicable)

Click to expand log
msvc.link.dll c:\.conan\d32830e\1\boost\bin.v2\libs\python\build\msvc-14.0\dbg\pythn-3.8\thrd-mlt\boost_python38.dll

LINK : fatal error LNK1181: cannot open input file 'python38.lib'



        call "c:\.conan\d32830e\1\boost\bin.v2\standalone\msvc\msvc-14.0\msvc-setup.bat" x86 >nul

 link /NOLOGO /INCREMENTAL:NO /DLL /DEBUG /MACHINE:X86 /MANIFEST /subsystem:console /out:"c:\.conan\d32830e\1\boost\bin.v2\libs\python\build\msvc-14.0\dbg\pythn-3.8\thrd-mlt\boost_python38.dll" /IMPLIB:"c:\.conan\d32830e\1\boost\bin.v2\libs\python\build\msvc-14.0\dbg\pythn-3.8\thrd-mlt\boost_python38.lib" /LIBPATH:"c:\python\libs\python38.lib"   @"c:\.conan\d32830e\1\boost\bin.v2\libs\python\build\msvc-14.0\dbg\pythn-3.8\thrd-mlt\boost_python38.dll.rsp"

        if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%

    

...failed msvc.link.dll c:\.conan\d32830e\1\boost\bin.v2\libs\python\build\msvc-14.0\dbg\pythn-3.8\thrd-mlt\boost_python38.dll c:\.conan\d32830e\1\boost\bin.v2\libs\python\build\msvc-14.0\dbg\pythn-3.8\thrd-mlt\boost_python38.lib c:\.conan\d32830e\1\boost\bin.v2\libs\python\build\msvc-14.0\dbg\pythn-3.8\thrd-mlt\boost_python38.pdb...

...skipped <pc:\.conan\be9e3b4\1\lib>boost_python38.dll for lack of <pc:\.conan\d32830e\1\boost\bin.v2\libs\python\build\msvc-14.0\dbg\pythn-3.8\thrd-mlt>boost_python38.dll...

...skipped <pc:\.conan\be9e3b4\1\lib>boost_python38.lib for lack of <pc:\.conan\d32830e\1\boost\bin.v2\libs\python\build\msvc-14.0\dbg\pythn-3.8\thrd-mlt>boost_python38.lib...

...skipped <pc:\.conan\d32830e\1\boost\bin.v2\libs\python\build\msvc-14.0\dbg\pythn-3.8\thrd-mlt>libboost_python-variant-shared-py3.8.cmake for lack of <pc:\.conan\d32830e\1\boost\bin.v2\libs\python\build\msvc-14.0\dbg\pythn-3.8\thrd-mlt>boost_python38.lib...

The path to python38.lib is correct but linker does not see it. Everything works after changing LIBPATH to "c:\python\libs". I do this by changing line 343 from:
return python_lib.replace('\\', '/')
to:
return libdir.replace('\\', '/')

@mherok mherok added the bug Something isn't working label Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant