nim-pymod icon indicating copy to clipboard operation
nim-pymod copied to clipboard

Building on Windows?

Open matkuki opened this issue 7 years ago • 0 comments

Hi jboy,

Building the greatings.nim example on windows throws:

Caught OSError([WinError 2] File not found)
Traceback (most recent call last):
  File "C:\Users\Matic\.nimble\pkgs\pymod-0.1.0\pmgen.py", line 525, in <module>
    main()
  File "C:\Users\Matic\.nimble\pkgs\pymod-0.1.0\pmgen.py", line 157, in main
    (python_includes, python_ldflags) = determine_python_includes_ldflags()
  File "C:\Users\Matic\.nimble\pkgs\pymod-0.1.0\pmgen.py", line 432, in determine_python_includes_ldflags
    (includes, ldflags) = guess_python_includes_ldflags_use_sysconfig()
  File "C:\Users\Matic\.nimble\pkgs\pymod-0.1.0\pmgen.py", line 507, in guess_python_includes_ldflags_use_sysconfig
    ldflags += getvar('LIBS').split()
AttributeError: 'NoneType' object has no attribute 'split'

I'm on Windows Vista and Nim 0.14.3 with the MinGW-W64 GCC compiler.

Any ideas?

Matic

matkuki avatar Jul 24 '16 09:07 matkuki