Skip to content
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

V8 libs compiling question #69

Open
cooperkuo opened this issue Jul 29, 2019 · 10 comments
Open

V8 libs compiling question #69

cooperkuo opened this issue Jul 29, 2019 · 10 comments

Comments

@cooperkuo
Copy link

Hi minggo, how do you compile V8 libraries for Windows and Android platform? May you share your compiling script or options?

Grateful! !

@fastOakan
Copy link

fastOakan commented Mar 3, 2021

@minggo @PatriceJiang ,

I'd like to re-compile V8 for android and ios. Would you please share your compiling script or options? Thanks

@minggo
Copy link
Contributor

minggo commented Mar 3, 2021

@cooperkuo sorry for late reply.
@fastOakan sure. @PatriceJiang could you please share it?

Can i know why you want to compile it yourself? Because you should modify engine codes to adapt it.

@fastOakan
Copy link

@minggo there are some V8 crash reported from field, and I'd like to figure out root cause. There are lots of update to 8.0-lkgr branch of V8, and the crash problem may be fixed by these update.

@fastOakan
Copy link

By the way, I'm using CocosCreator 2.4.3.

@minggo
Copy link
Contributor

minggo commented Mar 4, 2021

Got it.
@PatriceJiang is on holiday these days. He may come back next Monday.

@fastOakan
Copy link

@PatriceJiang I have some urgent issue related with V8 and I'd like to change V8 code, so I need to re-compile V8. Would you please share v8 compile configuration?

@PatriceJiang
Copy link
Contributor

PatriceJiang commented Mar 9, 2021

Checkout v8 source code to 8.0.426.16
args.gn contents :

Android

# Build arguments go here.
# See "gn args <out_dir> --list" for available build arguments.
is_component_build = false
is_debug = false
target_cpu = "arm64"
v8_target_cpu = "arm64"
target_os = "android"
use_goma = false
goma_dir = "None"
v8_use_external_startup_data = false
icu_use_data_file=false
clang_use_chrome_plugins = false
v8_monolithic=true
use_custom_libcxx=false
strip_debug_info=true
v8_enable_i18n_support = false        # Produces a smaller binary.

iOS

# Build arguments go here.
# See "gn args <out_dir> --list" for available build arguments.
ios_deployment_target = 10
is_component_build = false
is_debug = false
target_cpu = "arm64"                 
target_os = "ios"
use_custom_libcxx = false             # Use Xcode's libcxx.
use_xcode_clang = true
v8_enable_i18n_support = false        # Produces a smaller binary.
v8_monolithic = true                  # Enable the v8_monolith target.
v8_use_external_startup_data = false  # The snaphot is included in the binary.
v8_static_library=true
treat_warnings_as_errors=false
v8_enable_pointer_compression=false   

win32

is_clang=true
is_debug=false
target_cpu="x86" 
is_component_build=true
icu_use_data_file=false
use_custom_libcxx=false
v8_use_external_startup_data=false
v8_enable_i18n_support = false        # Produces a smaller binary.

@fastOakan @cooperkuo

@oahcy
Copy link
Contributor

oahcy commented Jan 11, 2022

linux

# Build arguments go here.
# See "gn args <out_dir> --list" for available build arguments.
target_os = "linux"
use_custom_libcxx = false
clang_use_chrome_plugins = false
is_component_build = false
is_debug = false
target_cpu = "x64"
v8_static_library = true
v8_monolithic = true
v8_use_external_startup_data = false
v8_enable_test_features = false
v8_enable_i18n_support = false
symbol_level = 0

@cx-github
Copy link

image
The crash we encountered in the background of Firebase , any suggestions?

@liufsd
Copy link

liufsd commented Jun 14, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants