Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I couldn't install gintro #196

Open
zaifoo opened this issue Jan 10, 2022 · 5 comments
Open

I couldn't install gintro #196

zaifoo opened this issue Jan 10, 2022 · 5 comments

Comments

@zaifoo
Copy link

zaifoo commented Jan 10, 2022

I'm working on windows 10.

nimble.exe install gintro

......
C:\msys64\nim\lib\system\nimscript.nim(273, 7) Error: unhandled exception: FAILED: C:\msys64\tmp\gintrosalewski\gen 1

@StefanSalewski
Copy link
Owner

Sorry, I don't use Windows. And when your main target is Windows, I would really not suggest you to use GTK. Nim has 20 other GUI toolkits, some of them should be suited better for Windows.

Of course GTK and gintro can be used for Windows, some people do that.

@StefanSalewski
Copy link
Owner

Well, after consulting line 273 of nimscript.nim I got an idea: The error seems to be related to executing external processes. So it may result from one of the commands in gintro.nimble. From your name I guess that you are from China, may there the command wget be illegal? Or wait, maybe it is exec(td / wd / "gen 1")? But why may that fail? May the exec("nim c gen.nim") have failed before already?

Well, just use fidget :-)

@zaifoo
Copy link
Author

zaifoo commented Jan 12, 2022

After install gobject-introspection-runtime in msys2, I can install gintro, and my app compiles and runs fine.

pacman -S mingw-w64-x86_64-gobject-introspection-runtime

@zaifoo zaifoo closed this as completed Jan 12, 2022
@StefanSalewski
Copy link
Owner

Fine. I think then we should keep this issue open, as maybe someone other from China has the same problem.

@neroist
Copy link

neroist commented Apr 15, 2022

I've had this problem for a while now and I solved it by installing GTK for Windows via MSYS (and adding C:\msys64\mingw64\bin to PATH), then doing nimble install gintro in administrator mode. It seems that if not in administrator mode, gen.exe (the file that generates the GTK bindings) can't find the GTK DLLs and fails.

This is apparent when running nimble install gintro --verbose where it says:

Hint: gc: refc; opt: none (DEBUG BUILD, `-d:release` generates faster code)
69875 lines; 2.149s; 116.746MiB peakmem; proj: xxx\AppData\Local\Temp\gintrosalewski\gen.nim; out: xxx\AppData\Local\Temp\gintrosalewski\gen.exe [SuccessX]
could not load: libglib-2.0-0.dll
...
C:\Nim\nim-1.6.4\lib\system\nimscript.nim(273, 7) Error: unhandled exception: FAILED: C:\Users\pmpig\AppData\Local\Temp\gintrosalewski\gen 1 [OSError]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants