Giter Club home page Giter Club logo

Comments (8)

darfink avatar darfink commented on May 28, 2024

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.

corbinu avatar corbinu commented on May 28, 2024

It is 8.3.3 :/

from chakracore-rs.

corbinu avatar corbinu commented on May 28, 2024

Looks like reinstalling the commandline tools fixed it. Maybe only there were out of date. Thanks!

from chakracore-rs.

corbinu avatar corbinu commented on May 28, 2024

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.

corbinu avatar corbinu commented on May 28, 2024

Looks like compiling against master branch here works fine

from chakracore-rs.

darfink avatar darfink commented on May 28, 2024

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.

corbinu avatar corbinu commented on May 28, 2024

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.

darfink avatar darfink commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.