Closed mrhdias closed 4 years ago
Sorry you need to install nimrod-glfw >= 3.2.1
Thanks. I uninstalled the package nim-glfw and installed the nimrod-glfw.
But none of the sample run.
I use Archlinux linux.
$ nim c -r todo.nim Hint: used config file '/usr/local/programs/x86_64/nim-1.0.4/config/nim.cfg' [Conf] Hint: operation successful (300 lines compiled; 0.050 sec total; 5.879MiB peakmem; Debug Build) [SuccessX] Hint: /home/hdias/Downloads/tmp/fidget/examples/todo/todo [Exec] Failed to intialize GLFW. Error: execution of an external program failed: '/home/hdias/Downloads/tmp/fidget/examples/todo/todo '
Looks like something is wrong with glfw itself. Not sure I can help here. I have not done any testing in Arch before.
On Sun, Dec 29, 2019, 12:42 PM Henrique Dias notifications@github.com wrote:
Thanks. I uninstalled the package nim-glfw and installed the nimrod-glfw.
But none of the sample run.
I use Archlinux linux.
$ nim c -r todo.nim Hint: used config file '/usr/local/programs/x86_64/nim-1.0.4/config/nim.cfg' [Conf] Hint: operation successful (300 lines compiled; 0.050 sec total; 5.879MiB peakmem; Debug Build) [SuccessX] Hint: /home/hdias/Downloads/tmp/fidget/examples/todo/todo [Exec] Failed to intialize GLFW. Error: execution of an external program failed: '/home/hdias/Downloads/tmp/fidget/examples/todo/todo '
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/treeform/fidget/issues/4?email_source=notifications&email_token=AAA6X7CPZ7I54KDTSGPCY5DQ3EDT3A5CNFSM4KA7UCP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHZH5SY#issuecomment-569540299, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA6X7G6Z7NAMLPRCDM24EDQ3EDT3ANCNFSM4KA7UCPQ .
Strange issue with nimrod-glfw the GLFW fail, but if I install nim-glfw package the GLFW works fine.
$ git clone https://github.com/rafaelvasco/nimrod-glfw $ cd nimrod-glfw/test $ nim c -r -d:release --app:gui glfwtest.nim glfwtest.nim(4) glfwtest Error: unhandled exception: Failed to Initialize GLFW [Exception]
$ nimble uninstall glfw $ nimble install glfw $ git clone https://github.com/ephja/nim-glfw $ cd nim-glfw/examples $ nim c -r -d:glfwStaticLib boing.nim
I opened a issue! https://github.com/rafaelvasco/nimrod-glfw/issues/14
I opened a issue! rafaelvasco/nimrod-glfw#14
I think the nimrod-glfw is not maintained anymore!
I experimented with my own wrapper here: https://github.com/treeform/staticglfw I will probably use this one as it does not require an extra DLL.
I have fixed the nimble file can you try reinstalling this package (which should fix the dependencies) and see if it works for you?
It works. Good work. Thanks
Nice and now with no dynamic linked libraries to ship! All static.
Cannot run any of the examples because it says "Error: cannot open file: glfw3"
I tried to install the glfw3 library but it says it doesn't exist. But the glfw@3.3.0.2 library exists and is installed.
install-info.txt nim c -r bars.nim ... Hint: dynlib [Processing] Hint: input [Processing] /home/hdias/Downloads/tmp/fidget/src/fidget/openglbackend/input.nim(1, 8) Warning: imported and not used: 'unicode' [UnusedImport] Hint: perf [Processing] Hint: strformat [Processing] /home/hdias/Downloads/tmp/fidget/src/fidget/openglbackend/base.nim(4, 8) Error: cannot open file: glfw3