Comments (8)
What XCode version are you using? Seems cstdint
is missing.
I notice now that I haven't listed XCode >= 7 as a requirement on macOS.
from chakracore-rs.
It is 8.3.3 :/
from chakracore-rs.
Looks like reinstalling the commandline tools fixed it. Maybe only there were out of date. Thanks!
from chakracore-rs.
Now I get this
Compiling chakracore v0.1.0
error[E0425]: cannot find function `JsCreatePropertyIdUtf8` in this scope
--> /Users/corbinu/.cargo/registry/src/github.com-1ecc6299db9ec823/chakracore-0.1.0/src/property.rs:21:23
|
21 | jsassert!(JsCreatePropertyIdUtf8(bytes.as_ptr() as _, bytes.len(), &mut reference));
| ^^^^^^^^^^^^^^^^^^^^^^ did you mean `JsCreatePropertyId`?
error[E0425]: cannot find value `JsCopyPropertyIdUtf8` in this scope
--> /Users/corbinu/.cargo/registry/src/github.com-1ecc6299db9ec823/chakracore-0.1.0/src/property.rs:33:47
|
33 | ::util::to_string_impl(self.as_raw(), JsCopyPropertyIdUtf8).unwrap()
| ^^^^^^^^^^^^^^^^^^^^ did you mean `JsCopyPropertyId`?
error[E0433]: failed to resolve. Use of undeclared type or module `ffi`
--> /Users/corbinu/.cargo/registry/src/github.com-1ecc6299db9ec823/chakracore-0.1.0/src/runtime.rs:32:9
|
32 | ffi::initialize();
| ^^^^^^^^^^^^^^^ Use of undeclared type or module `ffi`
error[E0425]: cannot find function `JsCreateStringUtf8` in this scope
--> /Users/corbinu/.cargo/registry/src/github.com-1ecc6299db9ec823/chakracore-0.1.0/src/value/string.rs:14:23
|
14 | jsassert!(JsCreateStringUtf8(string.as_ptr(), string.len(), &mut value));
| ^^^^^^^^^^^^^^^^^^ did you mean `JsCreateStringUtf16`?
error[E0425]: cannot find value `JsCopyStringUtf8` in this scope
--> /Users/corbinu/.cargo/registry/src/github.com-1ecc6299db9ec823/chakracore-0.1.0/src/value/string.rs:33:47
|
33 | ::util::to_string_impl(self.as_raw(), JsCopyStringUtf8).unwrap()
| ^^^^^^^^^^^^^^^^ did you mean `JsCopyStringUtf16`?
error[E0308]: mismatched types
--> /Users/corbinu/.cargo/registry/src/github.com-1ecc6299db9ec823/chakracore-0.1.0/src/value/function.rs:38:35
|
38 | JsCreateFunction(Some(Self::callback), context, reference)
| ^^^^^^^^^^^^^^ expected struct `chakracore_sys::JsRef`, found *-ptr
|
= note: expected type `unsafe extern "system" fn(chakracore_sys::JsRef, bool, *mut chakracore_sys::JsRef, u16, *mut libc::c_void) -> chakracore_sys::JsRef`
found type `unsafe extern "system" fn(chakracore_sys::JsRef, bool, *mut chakracore_sys::JsRef, u16, *mut libc::c_void) -> *mut libc::c_void {value::function::Function::callback}`
error[E0308]: mismatched types
--> /Users/corbinu/.cargo/registry/src/github.com-1ecc6299db9ec823/chakracore-0.1.0/src/value/function.rs:46:55
|
46 | JsCreateNamedFunction(name.as_raw(), Some(Self::callback), context, reference)
| ^^^^^^^^^^^^^^ expected struct `chakracore_sys::JsRef`, found *-ptr
|
= note: expected type `unsafe extern "system" fn(chakracore_sys::JsRef, bool, *mut chakracore_sys::JsRef, u16, *mut libc::c_void) -> chakracore_sys::JsRef`
found type `unsafe extern "system" fn(chakracore_sys::JsRef, bool, *mut chakracore_sys::JsRef, u16, *mut libc::c_void) -> *mut libc::c_void {value::function::Function::callback}`
error: aborting due to previous error(s)
error: Could not compile `chakracore`.
from chakracore-rs.
Looks like compiling against master branch here works fine
from chakracore-rs.
Yeah, unfortunately build errors were introduced in chakracore 1.0 due to the chakracore-sys changes, albeit the most recent crates version (2.0), works without issues.
from chakracore-rs.
Ahh ok sorry I just copied and pasted 1.0 from the README. Is a great project am super excited to see somebody working on this! I am really excited about the idea of that some of my Rust apps could allow for easy dynamic plugins in JS. Think it will really help drive adoption if the users don't have to learn Rust.
from chakracore-rs.
Thanks for mentioning! I just updated the README's version.
Glad to hear! It was similar reasons I started this project in the first place :)
from chakracore-rs.
Related Issues (20)
- Implement symbol type
- Implement typed arrays
- Implement data views
- Implement external properties data
- Cloning Context/Value fails w/o ContextGuard HOT 2
- Can't build to target musl on Ubuntu HOT 2
- lib directory does not exist on Windows custom
- JsCopyString expected 5 parameters HOT 5
- How to load a js file? HOT 3
- How to pass function callbacks? HOT 2
- access violation with call_with_this HOT 9
- Compilation problem HOT 3
- Segfault when dropping Context
- Only one thread can access the same context at a given time HOT 15
- Audit context guard soundness HOT 2
- Build from binaries? HOT 2
- 0.2.0 does not build HOT 1
- Value::to_json should return Result HOT 1
- Exception source, line, and column info
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chakracore-rs.