pangolin icon indicating copy to clipboard operation
pangolin copied to clipboard

Building on Windows [solution]

Open shrddr opened this issue 5 years ago • 2 comments

Environment: Windows 10, Visual Studio 2019, Python 3.7.4 64-bit

  1. Follow the instructions in readme.md
  2. When cmake fails to find vcvarsall.bat, instead of usual command prompt, use "developer command prompt" of Visual Studio (it's in Start menu)
  3. You'll have to download and install git for Windows (hmm doesn't VS have that included?)
  4. After cmake succeds, open the .sln file with Visual Studio, switch Debug to Release and try building. When the build fails at "pangolin_export.h not found", go to build\src\include\pangolin\ and rename _pangolin_export.h to pangolin_export.h. Remove all leading underscores inside the file as well. This should build 18 projects in the solution and 1 still fails.
  5. Inside Visual Studio go to pangolin project properties > C/C++ > General > Additional Include Directories > add directories to the list:
yourgitclonepath\build\src\include
yourgitclonepath\build\external\glew\include
  1. Download Eigen library and add to include directories
  2. Build the solution
  3. Change the setup.py file:
__library_file__ = 'Release/pangolin*.pyd' # line 8
assert len(lib_file) == 1 and install_dir is not None  # line 24

shrddr avatar Dec 07 '19 18:12 shrddr

图片

1757732743 avatar Dec 13 '21 14:12 1757732743

can you help me? i am new person

1757732743 avatar Dec 13 '21 14:12 1757732743