googlefonts/fontcrunch

can setup on windows?

Closed this issue · 4 comments

hi, i try install on windows 7 64b, but i get this error:

F:\fonts-tools\fontcrunch>python setup.py install
----------------------------
running install
running bdist_egg
running egg_info
writing FontCrunch.egg-info\PKG-INFO
writing top-level names to FontCrunch.egg-info\top_level.txt
writing dependency_links to FontCrunch.egg-info\dependency_links.txt
reading manifest file 'FontCrunch.egg-info\SOURCES.txt'
writing manifest file 'FontCrunch.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
running build_ext
building 'fontcrunch/_quadopt' extension
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IG:\WinPython-32bit-2.7.6.3\python-2.7.6\include -IG:\WinPython-32bit-2.7.6.3\python-2.7.6\PC /Tpfontcrunch/quadopt_wrap.cxx /Fobuild\temp.win32-2.7\Release\fontcrunch/quadopt_wrap.obj -std=c++0x -O3
quadopt_wrap.cxx
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IG:\WinPython-32bit-2.7.6.3\python-2.7.6\include -IG:\WinPython-32bit-2.7.6.3\python-2.7.6\PC /Tpfontcrunch/quadopt.cc /Fobuild\temp.win32-2.7\Release\fontcrunch/quadopt.obj -std=c++0x -O3
quadopt.cc
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
fontcrunch/quadopt.cc(47) : error C2039: 'hypot' : is not a member of 'std'
fontcrunch/quadopt.cc(61) : error C2039: 'hypot' : is not a member of 'std'
fontcrunch/quadopt.cc(66) : error C2039: 'round' : is not a member of 'std'
fontcrunch/quadopt.cc(66) : error C2664: 'round' : cannot convert parameter 1 from 'double' to 'Point'
        No constructor could take the source type, or constructor overload resolution was ambiguous
fontcrunch/quadopt.cc(66) : error C2039: 'round' : is not a member of 'std'
fontcrunch/quadopt.cc(66) : error C2664: 'round' : cannot convert parameter 1 from 'double' to 'Point'
        No constructor could take the source type, or constructor overload resolution was ambiguous
fontcrunch/quadopt.cc(128) : error C2039: 'hypot' : is not a member of 'std'
fontcrunch/quadopt.cc(239) : error C2039: 'hypot' : is not a member of 'std'
fontcrunch/quadopt.cc(359) : error C2664: 'round' : cannot convert parameter 1 from 'const double' to 'Point'
        No constructor could take the source type, or constructor overload resolution was ambiguous
fontcrunch/quadopt.cc(364) : error C2039: 'round' : is not a member of 'std'
fontcrunch/quadopt.cc(364) : error C2664: 'round' : cannot convert parameter 1 from 'double' to 'Point'
        No constructor could take the source type, or constructor overload resolution was ambiguous
fontcrunch/quadopt.cc(364) : error C2039: 'round' : is not a member of 'std'
fontcrunch/quadopt.cc(364) : error C2664: 'round' : cannot convert parameter 1 from 'double' to 'Point'
        No constructor could take the source type, or constructor overload resolution was ambiguous

please help me how to use this on windows?
thanks

Try forcing C++11. Not sure if MSVC supports that.

Ever get this working @zoghal?
I'm thinking the best bet is to use a Docker container; similar to a light-weight VM.

@tomByrer on windows? no.
but in ubuntu is ok,

Ok, cheers!