Closed hpmachining closed 3 years ago
Looks like it's missing the v8 platform library. Newer versions of v8 may require linking against libv8_libplatform.a
. I recommend building the v8 libv8_monolith.a
library. If you rename it libv8.a
cbang will link against it. I could also change the cbang config to look for these other library names.
Thank you. I want to get it to work with my current dynamic v8 build, because there is already a package in the Arch Linux AUR (v8-r) that is being maintained. I got it to work with the following hacks in cbang
:
sed -i "20i\ conf.CBRequireLib('v8_libplatform')" config/v8/__init__.py
sed -i "37i\ env.CBDefine('V8_COMPRESS_POINTERS')" SConstruct
Is there a better way to accomplish this? Can I pass the define V8_COMPRESS_POINTERS
in the scons
command line instead of hacking the SConstruct
file?
I added similar code to cbang to solve this. The latest commit should work now.
@jcoffland Just FYI, the cbang commit from 16th Feb caused issues for my local CAMotics build on Fedora 33 (packages v8-devel-8.4.371).
#
# Fatal error in , line 0
# Embedder-vs-V8 build configuration mismatch. On embedder side pointer compression is ENABLED while on V8 side it's DISABLED.
#
I just needed to comment out the #define V8_COMPRESS_POINTERS line to get working again..
Good to know. This really depends on the libv8 you are linking to. Perhaps I should add an option to C! to select either option. Unfortunately, libv8 does not have a config.h
that specifies which why the lib was compiled.
I built cbang using V8 version 9.0.136. Here is the cbang build command I used:
Here is my camotics build command:
Here are the build errors:
Let me know if there is anything you want me to try or provide. Thanks!