Here are instruction how to make this package work on Windows, by using MinGW system. Probably it can be done with Visual Studio, but I lack skills to make such magic.
So assuming user has MinGW available, additional two packages are needed:
I extracted both packages in my C:\src folder. Both are easy to build by executing ./configure; make and ./autogen.sh; make respectively, on MSYS prompt.
After that, we need some variables to build pypotrace successfully:
there is a little catch for agg includes, as paths referenced in cpp sources point to agg2/*.h while in downloaded agg package we don't have agg2 folder. For me it was easiest to rename C:/src/agg-2.5/include to C:/src/agg-2.5/agg2 and use C:/src/agg-2.5 as agg include folder.
Next, libdirs for libraries we build above:
potrace: C:/src/potrace-1.11/src/.libs
agg: C:/src/agg-2.5/src
and we can make pypotrace build command, and execute it:
Here are instruction how to make this package work on Windows, by using MinGW system. Probably it can be done with Visual Studio, but I lack skills to make such magic.
So assuming user has MinGW available, additional two packages are needed:
I extracted both packages in my
C:\src
folder. Both are easy to build by executing./configure; make
and./autogen.sh; make
respectively, on MSYS prompt.After that, we need some variables to build pypotrace successfully:
First, includes paths:
C:/Python27/Lib/site-packages/numpy/core/include
C:/src/potrace-1.11/src
C:/src/agg-2.5
there is a little catch for agg includes, as paths referenced in cpp sources point to
agg2/*.h
while in downloaded agg package we don't haveagg2
folder. For me it was easiest to renameC:/src/agg-2.5/include
toC:/src/agg-2.5/agg2
and useC:/src/agg-2.5
as agg include folder.Next, libdirs for libraries we build above:
C:/src/potrace-1.11/src/.libs
C:/src/agg-2.5/src
and we can make pypotrace build command, and execute it:
Finally install the package:
Thanks :)