Giter VIP home page Giter VIP logo

Comments (2)

jk89 avatar jk89 commented on August 16, 2024 1

So i managed to get it to build by renaming ssize_t as ds_ssize_t in this commit and it seems to compile ok.

git clone [email protected]:jk89/dualshock.git
cd dualshock
npm install
> [email protected] install
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | arm
gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/user/code/dualshock/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/user/.cache/node-gyp/18.16.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/user/.cache/node-gyp/18.16.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/user/.cache/node-gyp/18.16.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/user/code/dualshock',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/user/code/dualshock/build'
  CXX(target) Release/obj.target/sbc/main.o
../main.cc: In function ‘void sbcEncode(const v8::FunctionCallbackInfo<v8::Value>&)’:
../main.cc:135:94: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result]
  135 |  nBuf->Set(ctx,String::NewFromUtf8(iso,"unparsed").ToLocalChecked(),Number::New(iso,len-iPos));
      |                                                                                              ^
In file included from /home/user/.cache/node-gyp/18.16.0/include/node/v8-array-buffer.h:13,
                 from /home/user/.cache/node-gyp/18.16.0/include/node/v8.h:24,
                 from /home/user/.cache/node-gyp/18.16.0/include/node/node.h:73,
                 from ../main.cc:1:
/home/user/.cache/node-gyp/18.16.0/include/node/v8-object.h:244:37: note: declared here
  244 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
      |                                     ^~~
../main.cc:136:73: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result]
  136 |  for(size_t i=0; i<oPos; i++) nBuf->Set(ctx,i,Number::New(iso,sbcOut[i]));
      |                                                                         ^
In file included from /home/user/.cache/node-gyp/18.16.0/include/node/v8-array-buffer.h:13,
                 from /home/user/.cache/node-gyp/18.16.0/include/node/v8.h:24,
                 from /home/user/.cache/node-gyp/18.16.0/include/node/node.h:73,
                 from ../main.cc:1:
/home/user/.cache/node-gyp/18.16.0/include/node/v8-object.h:247:37: note: declared here
  247 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
      |                                     ^~~
In file included from ../main.cc:1:
../main.cc: At global scope:
/home/user/.cache/node-gyp/18.16.0/include/node/node.h:997:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
  997 |       (node::addon_register_func) (regfunc),                          \
      |                                           ^
/home/user/.cache/node-gyp/18.16.0/include/node/node.h:1031:3: note: in expansion of macro ‘NODE_MODULE_X’
 1031 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
      |   ^~~~~~~~~~~~~
../main.cc:150:1: note: in expansion of macro ‘NODE_MODULE’
  150 | NODE_MODULE(sbc, init)
      | ^~~~~~~~~~~
  CC(target) Release/obj.target/sbc/sbc/sbc_primitives_neon.o
  CC(target) Release/obj.target/sbc/sbc/sbc.o
  CC(target) Release/obj.target/sbc/sbc/sbc_primitives.o
  CC(target) Release/obj.target/sbc/sbc/sbc_primitives_armv6.o
  CC(target) Release/obj.target/sbc/sbc/sbc_primitives_iwmmxt.o
  CC(target) Release/obj.target/sbc/sbc/sbc_primitives_mmx.o
  SOLINK_MODULE(target) Release/obj.target/sbc.node
  COPY Release/sbc.node
make: Leaving directory '/home/user/code/dualshock/build'
gyp info ok 

up to date, audited 49 packages in 1m

9 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

My node gyp version

user@ubuntu:~/code/dualshock$ node-gyp -v
v9.3.1

from dualshock.

antonioconselheiro avatar antonioconselheiro commented on August 16, 2024

same problem here

from dualshock.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.