I am very doing some very rudementary SDL stuff and had it up and running on my Win8.1 laptop, but when copying my folder to my Win8.1 desktop and installing nimrod + aporia there, it compiles fine, but the dies when trying to access the SDL2.dll
EDIT: using v 0.96 64bit
Message in Aporia console:
could not load: SDL2.dll > Process terminated with exit code 1
Code is the same and dll is the same.
the config file only has one line:
and the dll is located in ./lib I have tried to copy the .dll to the project directory but doesnt change anything. Works great on my laptop and not at all on my desktop.
Second issue: I can only compile my program using Aporia on my desktop if I run nimrod in mingw I get: cannot create directory: c:somepathgamenimcache (same if I run mingw as admin)
And if I run in cmd (with --parallelBuild:1 for error messages) I get: C:Nimrodlib/nimbase.h:383:13: error: size of array 'assert_numbits' is negative typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];
Hopefully you geniuses know what I am missing.
Thanks J
Update:
When running nimrod_debug.exe c -r myfile.nim instead it does compile ok but crashes on the SDL2.dll like when running inside Aporia.
Thanks Araq,
I uninstalled my old mingw as well as nimrod and aporia, reinstalled the latest 64 bit installer from http://nimrod-lang.org/download.html. Now I dont get the "size of array 'assert_numbits' is negative" but it still refuses to use the SDL2.dll.
could not load: SDL2.dll > Process terminated with exit code 1
Is there any way to get a clue on why it cant?
Did you download the 64bit sdl2.dll?
Bingo!
I must have had the 32bit dll since 32 bit Nimrod worked better before. But now it seems I have to have it im my root. Before I could have it in my./lib directory.
My code looks like this: import sdl2 import sdl2/image import game
clean()
and my config has only:
What should I do to make it search in the lib directory?
Done and that works.. was just an extra that for some reason worked on my laptop. But it really doesnt matter.
You guys rock and this forum is badass (just missing a search function).
A thousand thanks J