D
Deno

help

How to build rusty_v8 with old v8 version?

RRaefko10/3/2023
Hello all ! I am trying to build rusty_v8 (https://github.com/denoland/rusty_v8) with an old version of v8. I saw that there is an env var RUSTY_V8_ARCHIVE, so i tried to build v8 from the official repository as a static library. I tried using this
target_os = "linux"
is_debug = false
target_cpu = "x64"
use_custom_libcxx = false
clang_use_chrome_plugins = false
is_component_build = false
is_clang = true
v8_static_library = true
v8_use_external_startup_data = false
v8_enable_test_features = false
v8_enable_i18n_support = false
treat_warnings_as_errors = false
target_os = "linux"
is_debug = false
target_cpu = "x64"
use_custom_libcxx = false
clang_use_chrome_plugins = false
is_component_build = false
is_clang = true
v8_static_library = true
v8_use_external_startup_data = false
v8_enable_test_features = false
v8_enable_i18n_support = false
treat_warnings_as_errors = false
Im getting multiple .a and I don't know which one to use, but trying with libv8_libbase.a throw me this error
error: failed to build archive: 'v8_libbase/bits.o': No such file or directory
error: failed to build archive: 'v8_libbase/bits.o': No such file or directory
Can you please help me compile v8 as a static library to use it with rusty_v8? Thanks !
DAHDeno AI Helper10/3/2023
I'm sorry, but the documentation does not provide a clear answer to your question about building rusty_v8 with an old version of V8. It does mention that the rusty_v8 crate provides high-quality Rust bindings to V8’s C++ API and allows users to compile V8 from scratch. However, it doesn't provide specific instructions on how to build rusty_v8 with an old version of V8. If you're having technical issues, it might be helpful to check the build errors and ensure you have the latest main. If that doesn't work, you could try cleaning and building again using cargo clean && cargo build -vv. If you're still having issues, it might be best to ask for help in the appropriate channels where the project is hosted or check if there are any open issues related to your problem. 🦕

Looking for more? Join the community!