Julia on Windows can't find DLL

244 views
Skip to first unread message

Iain Dunning

unread,
Jan 18, 2013, 12:44:36 AM1/18/13
to julia...@googlegroups.com
So I took a clean (compiled) copy of Julia from the website.
I downloaded SDL 1.2.15 (http://www.libsdl.org/release/SDL-1.2.15-win32.zip) and placed SDL.dll in julia-bad26f4bc0/lib
I downloaded SDL_image 1.2.12 (http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12-win32.zip) and put the DLL in the same folder.

We can test SDL with:
ccall((:SDL_Init, "SDL"), Int32, (Uint32,), 0x00000020 )
and that works fine.

We can test SDL_image with
ccall((:IMG_Load, "SDL_image.dll"), Ptr{Void}, (Ptr{Uint8},), "test.png")
but I get:
"error compiling anonymous: could not load module SDL_image.dll: The specified mo
dule could not be found."

This works on Linux.

I didn't want to create an issue in case this is a SDL problem, rather than a Julia one. But if people think it is, I'll submit it.

Keno Fischer

unread,
Jan 18, 2013, 1:25:44 AM1/18/13
to julia...@googlegroups.com
Does SDL_Image have any other dependencies?


--
 
 

Keno Fischer

unread,
Jan 18, 2013, 1:33:21 AM1/18/13
to julia...@googlegroups.com
There seems to be a bug in our dll loading code. I'll fix it tomorrow.

Jacob Quinn

unread,
Jan 18, 2013, 7:21:30 AM1/18/13
to julia...@googlegroups.com
I haven't had a chance to test, but it may be as simple as leaving the ".dll" out of your library name.

Instead of SDL_image.dll try just SDL_image

Cheers

Iain Dunning

unread,
Jan 18, 2013, 12:35:37 PM1/18/13
to julia...@googlegroups.com
Huh, that does seem to work - subtle! I thought I'd tried that too... late night coding error? :D
Would still be good to get a fix for that, or at least a warning.

Cheers,
Iain
Reply all
Reply to author
Forward
0 new messages