Hirokazu MORIKAWA

Results 90 comments of Hirokazu MORIKAWA

https://bugs.openwrt.org/index.php?do=details&task_id=1496&status%5B0%5D=&pagenum=4 > Did you try enabling CONFIG_KERNEL_DEVMEM in the OpenWrt toplevel .config? ("Global build settings" → "Kernel build options" → "/dev/mem virtual device support" in `make menuconfig`)? Settings in toplevel...

@g-vidal After a lot of testing, I found out that the main reason is that the handling of "SWIG_V8_VERSION" in swig is not consistent. As a workaround, you can apply...

libmraa generates "SWIG_V8_VERSION" in this way. https://github.com/eclipse/mraa/blob/master/src/javascript/binding.gyp.cmake#L14 https://github.com/eclipse/mraa/blob/master/src/javascript/binding.gyp.cmake#L37 However, there is a strange replacement in swig's javascriptruntime.swg. https://github.com/swig/swig/blob/master/Lib/javascript/v8/javascriptruntime.swg#L59-L62 I think there is inconsistency on SWIG.

@g-vidal I don't have a development environment for raspberry Pi, so this is just for looks. Do I have the right version of gcc? node v16.x requires gcc and g++...

@g-vidal I created a development environment on a Raspberry Pi 3B with raspbian buster and tested it. The raspbian buster, of course, contains gcc 8.3. ~~There seems to be a...

CMAKE config ``` cmake .. -DENABLEEXAMPLES=0 \ -DBUILDSWIGNODE=ON \ -DSWIG_EXECUTABLE=/usr/local/bin/swig \ -DV8_ROOT_DIR=/usr/local/include/node \ -DNODE_ROOT_DIR=/usr/local/include/node \ -DPYTHON2LIBS_FOUND=FALSE \ -DPYTHON2INTERP_FOUND=FALSE \ -DFIRMATA=ON ``` cmake log ``` -- The C compiler identification is...

Thanks for the report. I will try it with gcc10. (In OpenWrt's cross build environment).

https://blog.tremplin.ens-lyon.fr/GerardVidal/drafts/RaspberryPiMetBuildImage.html#head6.2.1 We no longer need this patch. ```diff --- a/Lib/javascript/v8/javascriptruntime.swg +++ b/Lib/javascript/v8/javascriptruntime.swg @@ -57,9 +57,10 @@ #include #if defined(V8_MAJOR_VERSION) && defined(V8_MINOR_VERSION) -#undef SWIG_V8_VERSION +#ifndef SWIG_V8_VERSION #define SWIG_V8_VERSION (V8_MAJOR_VERSION * 256...

The version of gcc10 that can be configured in OpenWrt is 10.3.0, so I tested with that. ``` -- INFO - swig Version 4.1.0 -- INFO - CXX compiler Version...

> The solution is pushed in the master or should I use another branch? AT the moment I am cloning mraa master. For swig, leave it as is 4.1.0. Please...