-
Notifications
You must be signed in to change notification settings - Fork 49
[OSX] ChakraCore DLL not found #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could it be a case-sensitivity issue? I notice when i delete my obj and bin folders, and then do a dotnet restore, the generated
Which specifies |
Hello, H0rdak!
While no one wrote about such errors. I use a similar deployment scheme in two packages: JavaScriptEngineSwitcher.ChakraCore.Native.osx-x64 and LibSassHost.Native.osx-x64.
I have built and tested the ChakraCore on OS X El Capitan10.11.6:
My nuget folder is preserved case sensitive - Try to register the ChakraCore library manually:
|
Thanks for your reply. I will try to manually symlink later. Do you know where I can find any information about how dotnet core handles loading of native assemblies for nuget packages? Maybe this is an upstream bug in dotnet? |
There is very little information on this theme and part of it is already outdated: “Using native libraries in ASP.NET 5”, “Developing Libraries with Cross Platform Tools” and “.NET Core Runtime IDentifier (RID) catalog”. |
So trying with the symlink gives the same error. Do you know if there is a way to see the filename it is trying to locate, and the search paths? Would it give the same error if it found the file but was unable to use the library for some reason? Maybe it needs to be re-built for sierra? |
Unfortunately, I don't know. I recommend before launching the website from the command line, execute the following commands:
I have no such possibility, but you can do it yourself. In the official building instructions there is not enough information yet, so use my instructions: Install dependencies:
To build the ChakraCore you must first clone the ChakraCore repository:
Run the build script:
After the build is complete, copy |
Followed by the same exception as before. So it looks like it finds the library, but has some problems with it. I will try building the library myself and see how that works. |
Building the library from source solved the problem. If you or anyone else who stumbles upon this issue want to use my binary, feel free https://www.dropbox.com/s/1guaf9ngxo2aqen/libChakraCore.dylib?dl=0 |
It's possible, that problem is not even in the ChakraCore library itself, but in absence of its dependencies ( |
Both of those were already installed on my computer, so that wasn't the issue. |
@h0rdak After a series of experiments with the installation and uninstallation of libraries, I came to the conclusion, that this error was caused by the lack of the ICU4C library. In general, problem is solved by using just one command:
|
@Taritsyn I have the same problem on os x 10.12.6.
The exception trace: dyld: loaded: /usr/local/share/dotnet/shared/Microsoft.NETCore.App/2.0.0/System.Native.dylib Unhandled Exception: JavaScriptEngineSwitcher.Core.JsEngineLoadException: During loading of ChakraCoreJsEngine error has occurred. Unable to load DLL 'ChakraCore': The specified module or one of its dependencies could not be found. The most strange thing is, that it worked for the first time. Please, help. |
Hello!
I do not recommend doing this, because the native assembly may be incompatible with current version of .NET wrapper. Moreover, then problem was not in the native assembly, but in the dependencies.
From this, and it was necessary to begin. If you have something worked, and then stopped working, it means that something has changed (or broken) in your operating system. I can only advise to reinstall the ICU4C library:
|
brew reinstall icu4c does not help. |
Try to perform steps from the “Building ChakraCore > OS X > Install dependencies” section of ChakraCore's documentation. |
I tried on the fresh system. |
However with Jint it's working well
|
But somehow it worked.
When you execute a larger amount of JS code, you can encounter serious performance issues. |
@h0rdak, @risayew This problem was solved in version 2.4.12. |
Uh oh!
There was an error while loading. Please reload this page.
I'm having an issue where the ChakraCore DLL is not found, even if the JavaScriptEngineSwitcher.ChakraCore.Native.osx-x64 package is installed.
This is using dotnet core 1.1 with Visual Studio for Mac, same results with the dotnet cli tools.
Some minimal code to get the exception:
The full exception is:
The csproj file:
I'm running the project on OSX Sierra 10.12.4:
The library is installed in:
The text was updated successfully, but these errors were encountered: