Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Testinstallation unter Node 12.6.0

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Testinstallation unter Node 12.6.0

    This topic has been deleted. Only users with topic management privileges can see it.
    • MathiasJ
      MathiasJ last edited by MathiasJ

      dann stimmt aber etwas anderes nicht. ich habe 2 mal den befehl ausgeführt:
      cd /opt/iobroker, dann erst Euren Befehl.
      Als Anhang der komplette Log als txt-Datei.
      Gruß,
      Mathias

      log.txt

      Stabilostick 1 Reply Last reply Reply Quote 0
      • Stabilostick
        Stabilostick @MathiasJ last edited by

        @MathiasJ
        Hattest Du das schon mal vorher ausgeführt?

        sudo apt-get install libbluetooth-dev
        

        Steht in https://github.com/song940/node-bluetooth
        Da steht auch, dass sie vor 10 Monaten Node 10 Kompatibilität eingebaut haben.

        MathiasJ 1 Reply Last reply Reply Quote 0
        • MathiasJ
          MathiasJ @Stabilostick last edited by

          @Stabilostick
          ist schon die neueste Version.

          root@tinkerboard:~# sudo apt-get install libbluetooth-dev
          Reading package lists... Done
          Building dependency tree
          Reading state information... Done
          libbluetooth-dev is already the newest version (5.43-2+deb9u1).
          0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
          root@tinkerboard:~#
          

          Gruß,
          Mathias

          1 Reply Last reply Reply Quote 0
          • MathiasJ
            MathiasJ last edited by

            Na, hat niemand eine Idee?
            Ansonsten muß icch dann die testinstallation einstampfen.
            Die produktive Installation läuft ja unter Node 10.

            AlCalzone 1 Reply Last reply Reply Quote 0
            • AlCalzone
              AlCalzone Developer @MathiasJ last edited by

              @MathiasJ

              Da ist der interessante Part:

              @abandonware/bluetooth-hci-socket@0.5.3-1 install /opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket
              node-pre-gyp install --fallback-to-build

              node-pre-gyp WARN Using request for node-pre-gyp https download
              node-pre-gyp WARN Tried to download(404): https://github.com/sandeepmistry/node-bluetooth-hci-socket/releases/download/0.5.3-1/binding-0.5.3-1-node-v72-linux-arm.tar.gz
              node-pre-gyp WARN Pre-built binaries not found for @abandonware/bluetooth-hci-socket@0.5.3-1 and node@12.6.0 (node-v72 ABI, glibc) (falling back to source compile with node-gyp)
              make: Entering directory '/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/build'
              CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
              ../src/BluetoothHciSocket.cpp: In static member function 'static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)':
              ../src/BluetoothHciSocket.cpp:129:82: error: no matching function for call to 'v8::FunctionTemplate::GetFunction()'
              target->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction());
              ^
              In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63:0,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
              from ../src/BluetoothHciSocket.cpp:7:
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:5948:46: note: candidate: v8::MaybeLocalv8::Function v8::FunctionTemplate::GetFunction(v8::Localv8::Context)
              V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
              ^~~~~~~~~~~
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:5948:46: note: candidate expects 1 argument, 0 provided
              ../src/BluetoothHciSocket.cpp: In member function 'void BluetoothHciSocket::poll()':
              ../src/BluetoothHciSocket.cpp:252:95: warning: 'v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value*)' is deprecated [-Wdeprecated-declarations]
              Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
              ^
              In file included from ../src/BluetoothHciSocket.cpp:8:0:
              ../../../nan/nan.h:1045:46: note: declared here
              NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
              ^~~~~~~~~~~~
              ../src/BluetoothHciSocket.cpp: In member function 'void BluetoothHciSocket::emitErrnoError()':
              ../src/BluetoothHciSocket.cpp:270:109: warning: 'v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
              Local<Function> errorConstructor = Local<Function>::Cast(globalObj->Get(Nan::New("Error").ToLocalChecked()));
              ^
              In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
              from ../src/BluetoothHciSocket.cpp:7:
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3412:55: note: declared here
              V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key));
              ^
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
              declarator attribute((deprecated(message)))
              ^~~~~~~~~~
              ../src/BluetoothHciSocket.cpp:283:93: warning: 'v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value*)' is deprecated [-Wdeprecated-declarations]
              Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
              ^
              In file included from ../src/BluetoothHciSocket.cpp:8:0:
              ../../../nan/nan.h:1045:46: note: declared here
              NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
              ^~~~~~~~~~~~
              ../src/BluetoothHciSocket.cpp: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)':
              ../src/BluetoothHciSocket.cpp:396:34: error: no matching function for call to 'v8::Value::IntegerValue()'
              devId = arg0->IntegerValue();
              ^
              In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63:0,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
              from ../src/BluetoothHciSocket.cpp:7:
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:2565:40: note: candidate: v8::Maybe<long long int> v8::Value::IntegerValue(v8::Localv8::Context) const
              V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
              ^~~~~~~~~~~~
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:2565:40: note: candidate expects 1 argument, 0 provided
              ../src/BluetoothHciSocket.cpp: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)':
              ../src/BluetoothHciSocket.cpp:418:34: error: no matching function for call to 'v8::Value::IntegerValue()'
              devId = arg0->IntegerValue();
              ^
              In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63:0,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
              from ../src/BluetoothHciSocket.cpp:7:
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:2565:40: note: candidate: v8::Maybe<long long int> v8::Value::IntegerValue(v8::Localv8::Context) const
              V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
              ^~~~~~~~~~~~
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:2565:40: note: candidate expects 1 argument, 0 provided
              ../src/BluetoothHciSocket.cpp: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::GetDeviceList(Nan::NAN_METHOD_ARGS_TYPE)':
              ../src/BluetoothHciSocket.cpp:471:77: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
              obj->Set(Nan::New("devId").ToLocalChecked(), Nan::New<Number>(devId));
              ^
              In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
              from ../src/BluetoothHciSocket.cpp:7:
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
              bool Set(Local<Value> key, Local<Value> value));
              ^
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
              declarator attribute((deprecated(message)))
              ^~~~~~~~~~
              ../src/BluetoothHciSocket.cpp:472:78: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
              obj->Set(Nan::New("devUp").ToLocalChecked(), Nan::New<Boolean>(devUp));
              ^
              In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
              from ../src/BluetoothHciSocket.cpp:7:
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
              bool Set(Local<Value> key, Local<Value> value));
              ^
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
              declarator attribute((deprecated(message)))
              ^~~~~~~~~~
              ../src/BluetoothHciSocket.cpp:473:68: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
              obj->Set(Nan::New("idVendor").ToLocalChecked(), Nan::Null());
              ^
              In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
              from ../src/BluetoothHciSocket.cpp:7:
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
              bool Set(Local<Value> key, Local<Value> value));
              ^
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
              declarator attribute((deprecated(message)))
              ^~~~~~~~~~
              ../src/BluetoothHciSocket.cpp:474:69: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
              obj->Set(Nan::New("idProduct").ToLocalChecked(), Nan::Null());
              ^
              In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
              from ../src/BluetoothHciSocket.cpp:7:
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
              bool Set(Local<Value> key, Local<Value> value));
              ^
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
              declarator attribute((deprecated(message)))
              ^~~~~~~~~~
              ../src/BluetoothHciSocket.cpp:475:69: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
              obj->Set(Nan::New("busNumber").ToLocalChecked(), Nan::Null());
              ^
              In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
              from ../src/BluetoothHciSocket.cpp:7:
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
              bool Set(Local<Value> key, Local<Value> value));
              ^
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
              declarator attribute((deprecated(message)))
              ^~~~~~~~~~
              ../src/BluetoothHciSocket.cpp:476:73: warning: 'bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)' is deprecated: Use maybe version [-Wdeprecated-declarations]
              obj->Set(Nan::New("deviceAddress").ToLocalChecked(), Nan::Null());
              ^
              In file included from /home/mzaspel/.node-gyp/12.6.0/include/node/v8-internal.h:14:0,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:25,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node.h:63,
              from /home/mzaspel/.node-gyp/12.6.0/include/node/node_buffer.h:25,
              from ../src/BluetoothHciSocket.cpp:7:
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8.h:3359:26: note: declared here
              bool Set(Local<Value> key, Local<Value> value));
              ^
              /home/mzaspel/.node-gyp/12.6.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATE_SOON'
              declarator attribute((deprecated(message)))
              ^~~~~~~~~~
              binding.target.mk:105: recipe for target 'Release/obj.target/binding/src/BluetoothHciSocket.o' failed
              make: *** [Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1
              make: Leaving directory '/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/build'
              gyp ERR! build error
              gyp ERR! stack Error: make failed with exit code: 2
              gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
              gyp ERR! stack at ChildProcess.emit (events.js:203:13)
              gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
              gyp ERR! System Linux 4.19.57-rockchip
              gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/binding.node" "--module_name=binding" "--module_path=/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/lib/binding" "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72"
              gyp ERR! cwd /opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket
              gyp ERR! node -v v12.6.0
              gyp ERR! node-gyp -v v3.8.0
              gyp ERR! not ok

              Dabei handelt es sich tatsächlich um einen Fehler bei der Kompilierung. Node 12 geht also wohl doch noch nicht.

              MathiasJ Segway 2 Replies Last reply Reply Quote 0
              • MathiasJ
                MathiasJ @AlCalzone last edited by

                @AlCalzone
                Sagte ich doch!
                Dann kann ich mein Testsystem beruhigt wieder abbauen.
                Gruß,
                Mathias

                AlCalzone 1 Reply Last reply Reply Quote 0
                • AlCalzone
                  AlCalzone Developer @MathiasJ last edited by

                  @MathiasJ Dankeschön!

                  1 Reply Last reply Reply Quote 0
                  • Segway
                    Segway @AlCalzone last edited by

                    @AlCalzone sagte in Testinstallation unter Node 12.6.0:

                    Node 12 geht also wohl doch noch nicht.

                    Bei mir läuft node12 einwandfrei seit mehreren Tagen auf meinem Testsystem !
                    adbec797-be43-4ff1-8f17-1b4585e09c6f-image.png

                    AlCalzone MathiasJ 2 Replies Last reply Reply Quote 0
                    • AlCalzone
                      AlCalzone Developer @Segway last edited by

                      @Segway Und nutzt du auch den BLE-Adapter?

                      1 Reply Last reply Reply Quote 0
                      • MathiasJ
                        MathiasJ @Segway last edited by

                        @Segway
                        und den Adapter Radar2 nutzt Du auch unter node 12.6.0 nicht?
                        Der läuft auf Node 12.6.0 nämlich auch nur mit hcitool only.

                        1 Reply Last reply Reply Quote 0
                        • Segway
                          Segway last edited by

                          Nein benutze ich nicht ... brauche das so nicht bzw. habe es anders gelöst.
                          Hätte deutlicher schreiben sollen dass grundsätzlich node 12 funktioniert nur halt mit einigen Adaptern (noch) nicht. Das wird schnell überlesen und wenn dann nur noch sowas steht

                          @AlCalzone sagte in Testinstallation unter Node 12.6.0:

                          Dabei handelt es sich tatsächlich um einen Fehler bei der Kompilierung. Node 12 geht also wohl doch noch nicht.

                          dann gilt das lediglich für den Adapter aber nicht für das gesamte System oder andere Adapter 🙂 ist ja nicht umsonst der Hinweis. Aber viele Standard-Adapter gehen ja bereits.

                          MathiasJ AlCalzone 2 Replies Last reply Reply Quote 0
                          • MathiasJ
                            MathiasJ @Segway last edited by

                            @Segway
                            Bei mir lief die Testinstallation auch unter Node 12.
                            Nur die Adapter Radar2 mit noble und eben BLE nicht.
                            Das habe ich ja mehrfach erwähnt.

                            1 Reply Last reply Reply Quote 0
                            • AlCalzone
                              AlCalzone Developer @Segway last edited by

                              @Segway meine Aussage war bezogen auf Matthias tests mit BLE, nicht auf node12 ansich

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              Support us

                              ioBroker
                              Community Adapters
                              Donate
                              FAQ Cloud / IOT
                              HowTo: Node.js-Update
                              HowTo: Backup/Restore
                              Downloads
                              BLOG

                              826
                              Online

                              31.7k
                              Users

                              79.9k
                              Topics

                              1.3m
                              Posts

                              node 12 testsystem
                              5
                              41
                              3459
                              Loading More Posts
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes
                              Reply
                              • Reply as topic
                              Log in to reply
                              Community
                              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                              The ioBroker Community 2014-2023
                              logo