Open psestan opened 2 years ago
I managed to follow the problem and the exception being mentioned as happening on line 86 looks to be raised due to a missing libplatform.h
file which is a part of v8.
The part in the CAMotics build output that appears to ultimately be causing the exception is:
Checking for C++ header file libplatform/libplatform.h... no
Need C++ header libplatform/libplatform.h(cached) error: no result
I firstly concluded that v8 must've been built successfully due to a lack of errors in its SCons output as well as having the Checking for C++ header file v8.h... yes
line in the CAMotics build output, now howerver with the focus on the missing libplatform.h
i am no longer sure about that.
I am including the output of scons -C v8-3.14.5 mode=release arch=x64 library=static
(v8 build) command below in hopes someone can help me shed some light on this problem.
I have this problem too, build on win11.
I have this problem too, build on win11.
@youyizhang, I got in contact with @jcoffland and he explained that with the latest version of the source, for now you wont be able to get a successful build following the Windows_Build.md guide due to some missing features of the V8 3.14.5 that are required for the latest CAMotics builds. I did manage to build an older version of the source (this one: 62c6e04) without any problems by following the guide, so if you don't need any of the newer features, that might do it for you too.
I build the version you mentioned that, but still print the same error.
I build the version you mentioned that, but still print the same error.
I am not sure, but I don't think that kind of exception should be possible on the older code, are you sure you pulled from the specific commit?
You should clone the repository and then do a checkout followed by the specific commit hash, like this:
git checkout 62c6e04718e93e4766094f283cb2772834a62e09
Then you can try building it again.
I tried several ways, but all of failed.
I build successfully in ubuntu18.04, but I never code C++ in ubuntu. Do you have any experience about debugging code in ubuntu? I am planning to add some function in CAMotics.
Ticket should be labeled installer and windows related
I have successfully build Camotios in Window following the Windows_Build.md, using version CAMotics-1.2.0 and C! (1.3.1).
I hope someone can help me shed some light on the a problem I encountered while trying to build on Windows 10 _64. While I was previously successful in building the package on Ubuntu 20.04, this time I was following the Windows_Build.md guide and managed to get the following error while running
scons -C CAMotics optimize=1
:I would greatly appreciate any help or guidance that could point me towards a solution to this.
env.bat
.scons -C v8-3.14.5 mode=release arch=x64 library=static
command completed witnout any problems and I have set the V8_HOME variable as described in the Windows_Build.md.env.bat
looks like this:scons -C cbang disable_local="libevent re2" optimize=1
output below:C! build output
``` scons: Entering directory `c:\build\cbang' scons: Reading SConscript files ... Compiler: cl (msvc) Platform: win32 Mode: msvc Arch: x86_64 Jobs: 3 Checking for C header file zlib.h... no Need header zlib.h(cached) error: no result Checking for C header file bzlib.h... no Need header bzlib.h(cached) error: no result Checking for C header file expat.h... no Need C header expat.h(cached) error: no result Checking for C library ws2_32... yes Checking for C library sqlite3... no Need library sqlite3(cached) error: no result Checking for C header file yaml.h... no Need header yaml.h(cached) error: no result Checking for C library snappy... no Need library snappy(cached) error: no result Checking for C header file mysql/mysql.h... no Checking for C library lz4... no Checking for C header file event.h... no Need header event.h(cached) error: no result Checking for C function epoll_create1()... no Checking for C header file openssl/ssl.h... no Checking for C library libcrypto... no Checking for C library libeay32MT... no Checking for C library libeay32... no Need openssl(cached) error: no result Checking for C++ header file ChakraCore.h... no Need C++ header ChakraCore.h(cached) error: no result Checking for C library winmm... yes Checking for C++ header file v8.h... yes Checking for C++ header file libplatform/libplatform.h... no Need C++ header libplatform/libplatform.h(cached) error: no result Checking for C library ws2_32... yes Checking for C library winmm... yes Checking for C library setupapi... yes Checking for C header file valgrind/valgrind.h... no Checking for C function memmove()... yes Checking for C header file strings.h... no ```Full
scons -C CAMotics optimize=1
output:CAMotics output
``` c:\build>scons -C CAMotics package scons: Entering directory `c:\build\CAMotics' scons: Reading SConscript files ... Compiler: cl (msvc) Platform: win32 Mode: msvc Arch: x86_64 Jobs: 3 Checking for C header file zlib.h... yes Checking for C library z... yes Checking for C header file bzlib.h... yes Checking for C library bz2... yes Checking for C header file expat.h... yes Checking for C library libexpatMT... no Checking for C library expat... yes Checking for C library ws2_32... yes Checking for C library sqlite3... yes Checking for C header file sqlite3.h... yes Checking for C function sqlite3_backup_init()... yes Checking for C header file yaml.h... yes Checking for C library yaml... yes Checking for C library snappy... no Need library snappy(cached) error: no result Checking for C header file mysql/mysql.h... no Checking for C library lz4... yes Checking for C header file event.h... no Need header event.h(cached) error: no result Checking for C function epoll_create1()... no Checking for C++ header file ChakraCore.h... no Need C++ header ChakraCore.h(cached) error: no result Checking for C library winmm... yes Checking for C++ header file v8.h... yes Checking for C++ header file libplatform/libplatform.h... no Need C++ header libplatform/libplatform.h(cached) error: no result Checking for C library ws2_32... yes Checking for C library winmm... yes Checking for C library setupapi... yes Checking for C header file valgrind/valgrind.h... no Checking for C library cbang-boost... yes Checking for C library cbang... yes Checking for C++ header file cbang/Exception.h... yes Python was not found but can be installed from the Microsoft Store: ms-windows-store://pdp/?productid=9NJ46SX7X90PException: Chakra or V8 support is required, please rebuild C! You may need to set CHAKRA_CORE_HOME or V8_HOME.: File "C:\build\CAMotics\SConstruct", line 86: 'Chakra or V8 support is required, please rebuild C! You may ' ```