1

I am trying to build the BGSLibrary python module from C++ and boost source. The library compiles without a problem on linux. For windows I am using Visual Studio 2017 and Cmake 3.9. Here were my steps.

  1. Visual Studio Install options image

  2. Download Boost, Install Script from within Visual Studio Command Line Terminal

    bootstrap.bat

    b2 -j%cores% toolset=msvc-14.1 address-model=32 architecture=x86 link=static threading=multi runtime-link=static --build-type=complete stage --with-python

    1. Rename boost_python-vc141-mt-s-1_64.lib to python_boost.lib to satisfy cmake requirements.
  3. CMake Config options image

  4. Visual Studio External Include Directories image

  5. Visual Studio External Lib Directories image

  6. Move a copy of the originally named boost_python-vc141-mt-s-1_64.lib to the bgs build folder.

  7. Execute Visual Studio Build. It successful creates libbgs python dll enter image description here

  8. According to this question I rename libbgs.dll to .pyd and have the boost lib in the folder. I added bgslibrary/build to path. Unfortunately not quite there yet.

image

Some dependency issue. A quick look at DependencyWalker is very intimidating, a huge number of problems.

enter image description here

Before I go and try to individual add all those .dll manually to the bgslibrary/build folder, is there a higher level error that I've done. Should I have selected "static library" in the general properties of visual studio, would that make a difference?

1 Answer 1

1

Solved. Dependency walker is old enough where it just shows alot of errors. Really it was jut the 4 opencv dlls. Adding opencv/build/release/bin to my path did it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.