Skip to content

Compile lanms on windows successfully! #120

@ZhuMingmin9123

Description

@ZhuMingmin9123

my environment is:
windows10 ,
python3.6 (ps:I use Anaconda3),
vs2015 Update 3 (ps: Visual Studio version should be vs2015 Update 3 or newer)

Step 1:Open the console make sure you can use X64 compiler:cl.exe(note: not X86, not X86, not X86 )
2
default

Step 2:to compile adaptor.cpp to adaptor.pyd
execute:cd your_dir\lanms
execute:cl adaptor.cpp ./include/clipper/clipper.cpp /I ./include /I "C:\ProgramData\Anaconda3\include" /LD /Fe:adaptor.pyd /link/LIBPATH:"C:\ProgramData\Anaconda3\libs"
1
ok,adaptor.pyd appears!

Step 3:comment some code in __init__.py
comment line7 and line8
2

Step 4:Congratulations! You can import lanms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions