You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linking libjulia.dll in Windows is using wrong separator on loading library:
ERROR: Unable to load dependent library $(WORKING_DIR)\bin\../bin/libgcc_s_seh-1.dll
Furthermore setting local environment inside the executable is not working, since load_library is called by DllMainCRTStartup in internal loader_lib.c.
The reason for the error seams to be the bindir used in Make.inc during Julia build.
Extending PATH environment is not working for deployment reasons.
Solution should support Julia specific environment (JULIA_BINDIR) and not checking dlls in DllMainCRTStartup .
The text was updated successfully, but these errors were encountered:
Here is some code that the old MSys2 Mingw 1.4.1 Julia package used; I have no idea if it is a solution or a problem
I am currently working on upgrading the package to 1.8.3 and trying to decide if this patch is okay to continue to use.
Tim S.
+++ build-x86_64-w64-mingw32/src/dlload.c 2019-08-06 12:20:36.256669200 +0800
@@ -181,6 +181,17 @@
}
}
+#ifdef __MINGW32__
+ for(i=0; i < n_extensions; i++) {
+ const char *ext = extensions[i];
+ path[0] = '\0';
+ snprintf(path, PATHBUF, "%s/julia-%s/%s%s", jl_options.julia_bindir, JULIA_VERSION_STRING, modname, ext);
+ handle = jl_dlopen(path, flags);
+ if (handle)
+ goto done;
+ }
+#endif
+
// now fall back and look in default library paths, for all extensions
for(i=0; i < n_extensions; i++) {
const char *ext = extensions[i];
Linking libjulia.dll in Windows is using wrong separator on loading library:
ERROR: Unable to load dependent library $(WORKING_DIR)\bin\../bin/libgcc_s_seh-1.dll
Furthermore setting local environment inside the executable is not working, since load_library is called by DllMainCRTStartup in internal loader_lib.c.
The reason for the error seams to be the bindir used in Make.inc during Julia build.
Extending PATH environment is not working for deployment reasons.
Solution should support Julia specific environment (JULIA_BINDIR) and not checking dlls in DllMainCRTStartup .
The text was updated successfully, but these errors were encountered: