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

Building on Windows [solution] #25

Open
shrddr opened this issue Dec 7, 2019 · 2 comments
Open

Building on Windows [solution] #25

shrddr opened this issue Dec 7, 2019 · 2 comments

Comments

@shrddr
Copy link

shrddr commented Dec 7, 2019

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
@1757732743
Copy link

图片

@1757732743
Copy link

can you help me? i am new person

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants