yglukhov / nimx

GUI library
MIT License
1.1k stars 75 forks source link

Windows compilation error #245

Closed matkuki closed 7 years ago

matkuki commented 7 years ago

Trying to compile sample01_welcome.nim throws:

...\.nimble\pkgs\nimx-0.1\nimx\assets\web_url_handler.nim(77, 17) Error: undeclared field: 'statusCode'

Windows Vista x64 Nim: devel-0.17.1 with mingw (x86)

yglukhov commented 7 years ago

Looks like async_http_request is outdated.

nimble install -y https://github.com/yglukhov/async_http_request
matkuki commented 7 years ago

Thanks @yglukhov , but now I get: ....nimble\pkgs\nimx-0.1\nimx\view_event_handling.nim(8, 8) Error: method is not a base

Any ideas?

yglukhov commented 7 years ago

@matkuki, try compiling the main.nim from samples. AFAIR, compiling individual sample files doesn't work for some reason.

matkuki commented 7 years ago

Tried compiling main.nim, now the error is:

....nimble\pkgs\nimx-0.1\nimx\cursor.nim(70, 42) Error: undeclared identifier: 'SystemCursor'
yglukhov commented 7 years ago

That's coming from old sdl2 i suppose.

nimble install -y sdl2
matkuki commented 7 years ago

Great! That did it! Thanks @yglukhov