V8 on Linux: documented but not wired up in CMake, and V8Platform doesn't build with V8 12+
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- cmake, cpp
- Ambito
- backend, build-system
Direzione di ricerca
Start with the V8 branches in Dependencies/JsRuntimeHost/Core/Node-API/CMakeLists.txt, which exist only for Android and Win32, and with the V8Platform.h and V8Inc.h headers. The issue also names the Xlib include order in the Unix Platform.h and DeviceImpl_Unix.cpp, plus the BUILDING.md section. Done means either a Linux V8 configure that compiles against V8 12+ or a BUILDING.md that no longer documents Linux V8. Maintainers need to choose between those two paths first.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
BUILDING.md describes building on Linux with -D NAPI_JAVASCRIPT_ENGINE=V8 and libv8-dev. However, Dependencies/JsRuntimeHost/Core/Node-API/CMakeLists.txt has V8 branches only for Android and Win32, so Linux stops with "Unsupported JavaScript engine: V8".
With a local Linux branch (headers plus the system libv8/libnode), we hit three more problems building against V8 12.4 (Fedora's Node 22):
V8Platform.h: V8 12 madeCallOnWorkerThread,CallBlockingTaskOnWorkerThread,CallLowPriorityTaskOnWorkerThread,CallDelayedOnWorkerThread,PostJobandCreateJobnon-virtual wrappers. Embedders now overridePostTaskOnWorkerThreadImpl,PostDelayedTaskOnWorkerThreadImplandCreateJobImpl, so theoverrides fail to compile.TaskRunnerlikewise gainedPost*TaskImpl.- X11 macros:
Core/Graphics/Include/Platform/Unix/.../Platform.hincludes<X11/Xlib.h>, whose macros (True,Status, …) break V8's headers when they come later in the same file (DeviceImpl_Unix.cpp). V8Inc.h: the V8 inspector expectsv8-inspector.h, which distribution V8 packages may not ship.
With those worked around (version-guarded Impl overrides, V8 headers included before Xlib, inspector off), the Playground runs on V8 12.4 on Linux. Under a V8 build, Babylon.js scenes and a large physics simulation behave the same as under JavaScriptCore.
Expected behavior
Either Linux V8 is supported (a CMake branch, plus V8Platform guarded for V8 ≥ 12), or BUILDING.md no longer documents it. We can send the V8Platform/V8ForegroundTaskRunner changes as a PR if that's wanted.
Other
- Platform: Linux x64, Fedora 44, GCC 16, V8 12.4.254.21 (from Node 22.23).
- Lingua principale
- C++
- Stelle
- 931
- Fork
- 169
- Merge medio
- 2g 17h
- PR unite (30g)
- 66
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di BabylonJS/BabylonNative
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
BabylonJS/BabylonNative#2138 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
BabylonJS/BabylonNative#2042 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
BabylonJS/BabylonNative#2052 ·
I maintainer di solito rispondono entro 1 giorno
-
testing
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
BabylonJS/BabylonNative#2136 ·
I maintainer di solito rispondono entro 1 giorno
-
Support useNDCHalfZRange (half-range NDC depth) so Babylon.js half-range depth visual tests can runAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
BabylonJS/BabylonNative#2134 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di BabylonJS/BabylonNative
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
gofractally/psibase#2379 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
simnJS/AnyPS5#735 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
needs-format
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Niko1221/Strata#7719 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni