forked from yujiali/pygco
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added windows compilation (see issue yujiali#5, credit: mohammadkamal…
…zare)
- Loading branch information
Joao Henriques
committed
Aug 17, 2018
1 parent
7328257
commit 0748925
Showing
7 changed files
with
85 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,9 @@ | |
*.o | ||
*.so | ||
test_wrapper | ||
test_wrapper.lib | ||
libcgco.dll | ||
libcgco.lib | ||
*.obj | ||
*.exp | ||
*.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
@echo USAGE: | ||
@echo ------ | ||
@echo Open the "Developer Command Prompt for VS<version>" | ||
@echo For 32-bit Python, run: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\vsvars32.bat" | ||
@echo For 64-bit Python, run: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall" amd64 | ||
@echo Then finally run compilewindows.bat (this file) | ||
@echo. | ||
|
||
@pause | ||
|
||
cl gco_source\LinkedBlockList.cpp /link /out:LinkedBlockList.obj | ||
cl gco_source\graph.cpp /link /out:graph.obj | ||
cl gco_source\maxflow.cpp /link /out:maxflow.obj | ||
cl gco_source\GCoptimization.cpp /link /out:GCoptimization.obj | ||
cl cgco.cpp /link /out:cgco.obj | ||
cl LinkedBlockList.obj graph.obj maxflow.obj GCoptimization.obj cgco.obj /link /dll /out:libcgco.dll | ||
|
||
cl /EHsc test_wrapper.cpp libcgco.lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters