Ok, this is to report my failure as well. I managed to build the MEX with 
VS. For that I had to create an import lib from libjulia.dll, which I did 
both with MinGW and VS (2013) but Matlab fails with

>> mexjulia
Invalid MEX-file 'C:\SVN\mironeWC64\mexjulia.mexw64': A dynamic link 
library (DLL) initialization routine failed.

and I'm not able to find why with the Dependency Walker (libjulia.dll is 
from master built by me as well)

Quarta-feira, 3 de Dezembro de 2014 3:19:44 UTC, Jameson escreveu:
>
> perhaps matlab is providing an older version of one of those dll files? if 
> launched from cygwin, you might still end up pulling in an newer one (from 
> cygwin), so julia is still happy. however, if launched directly, then julia 
> is unable to load.
>
> depends22 will throw up a warning dialog box if one of the required 
> dependencies is missing. the other unresolved dlls are typically wrapped 
> inside of one of the other dlls (advapi), and are unimportant.
>
> On Tue Dec 02 2014 at 8:28:07 PM Tracy Wadleigh <[email protected] 
> <javascript:>> wrote:
>
>> Yet more detective work:
>>
>> I downloaded ListDLLs 
>> <http://technet.microsoft.com/en-us/sysinternals/bb896656>. I dumped the 
>> results for MATLAB.exe to files for both the successful launch and call via 
>> cygwin and the unsuccessful non-cygwin launch. I then diff'd the files. The 
>> only differences are the obvious ones:
>>
>> > 0x0000000035da0000  0x25000   U:\prj\mexjulia\mexjulia.mexw64
>> > 0x0000000036730000  0x336d000  C:\Julia-0.4.0-dev\bin\libjulia.dll
>> > 0x0000000035dd0000  0x1c000   C:\Julia-0.4.0-dev\bin\libgcc_s_seh-1.dll
>> > 0x0000000035e80000  0xed000   C:\Julia-0.4.0-dev\bin\libstdc++-6.dll
>> > 0x000000007c190000  0x203c000  C:\Julia-0.4.0-dev\bin\libopenblas.DLL
>> > 0x000000006f600000  0x134000  C:\Julia-0.4.0-dev\bin\libgfortran-3.dll
>> > 0x0000000039aa0000  0x57000   C:\Julia-0.4.0-dev\bin\libquadmath-0.dll
>> > 0x000000005ac10000  0x182000  C:\Julia-0.4.0-dev\bin\libpcre.DLL
>> > 0x0000000039b00000  0x27000   C:\Julia-0.4.0-dev\bin\libdSFMT.DLL
>> > 0x000000003d7b0000  0x8b000   C:\Julia-0.4.0-dev\bin\libgmp.DLL
>> > 0x0000000064b90000  0x1ac000  C:\Julia-0.4.0-dev\bin\libmpfr.DLL
>> > 0x0000000039b30000  0x4e000   C:\Julia-0.4.0-dev\bin\libopenlibm.DLL
>>
>> I double-checked to make sure that C:\Julia-0.4.0-dev\bin is on the 
>> system path, so that can't be it...
>>
>> :-(
>>
>

Reply via email to