-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
I can't run sample code, return JsErrorNoCurrentContext #1799
Comments
The same code run successful at vs2015, only cut off Utf8 of JsXxxxxUtf8 and convert string to wstring or wchar_t. |
ChakraCore runs on Fedora. Should be running on centos too. |
@FettLuo static or dynamic lib? could you please share the steps in detail? |
@obastemur ubuntu server 16.10 on HyperV on my SurfacePro3. ChakraCore is dynamic lib(so). |
Shared library requires an explicit call to DllMain. See https://github.com/Microsoft/Chakra-Samples/blob/master/ChakraCore%20Samples/Hello%20World/Python/helloWorld.py#L24-L28 |
BTW:Manual call DllMain that not enough smart in linux. best auto call DllMain at first call CreateRuntime internal. |
@FettLuo why don't you use static library on xplat? |
@obastemur Documentation on using statically linked libraries? |
@FettLuo I agree the DllMain call requirement is ugly. Opened an issue (#1811) to track that. Static library usage sample: |
Hope can be directly compiled in Centos. CentOS has a lot of users in China. |
this file in "@ubuntu:~/github/ChakraCore/BuildLinux/Release/bin/ChakraCore"
at JsRunScriptUtf8
return JsErrorNoCurrentContext
btw: pls support centos7.
The text was updated successfully, but these errors were encountered: