Skip to content

Failed installing lib on Raspberry PI 3 #37

Description

@HMAZonderland

Also tried to install the library on a Raspberry PI 3, with no success. Not sure what build and so-ever. Just a default shipped PI.

python --version
Python 2.7.13

Got node V8:

$ node -v
v8.11.1

NPM?

$ npm -v
6.13.4

Used install.sh script to get everything in place (did already run this once):

$ sudo ./install.sh 
Detected OS:
linux (32bit)
Download FTDI Library
--2020-02-21 15:06:58--  http://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx1.1.12.tar.gz
Resolving www.ftdichip.com (www.ftdichip.com)... 217.160.0.65
Connecting to www.ftdichip.com (www.ftdichip.com)|217.160.0.65|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx1.1.12.tar.gz [following]
--2020-02-21 15:06:58--  https://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx1.1.12.tar.gz
Connecting to www.ftdichip.com (www.ftdichip.com)|217.160.0.65|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 950540 (928K) [application/gzip]
Saving to: 'libftd2xx1.1.12.tar.gz'

libftd2xx1.1.12.tar.gz                          100%[=====================================================================================================>] 928.26K  --.-KB/s    in 0.1s    

2020-02-21 15:06:59 (7.81 MB/s) - 'libftd2xx1.1.12.tar.gz' saved [950540/950540]

extract lib
'tmp/release/build/i386/libftd2xx.a' -> '/usr/local/lib/libftd2xx.a'
'tmp/release/build/i386/libftd2xx.so.1.1.12' -> '/usr/local/lib/libftd2xx.so.1.1.12'
mkdir: cannot create directory '/usr/local/include/libftd2xx': File exists
'tmp/release/ftd2xx.h' -> '/usr/local/include/libftd2xx/ftd2xx.h'
'tmp/release/WinTypes.h' -> '/usr/local/include/libftd2xx/WinTypes.h'
'/usr/local/lib/libftd2xx.so' -> '/usr/local/lib/libftd2xx.so.1.1.12'

Then tried to run npm install:

$ npm install

> ftdi@1.2.1 install /home/pi/web/node_modules/ftdi
> node-gyp rebuild

make: Entering directory '/home/pi/web/node_modules/ftdi/build'
  CXX(target) Release/obj.target/ftdi/src/ftdi_device.o
../src/ftdi_device.cc: In member function 'virtual void ReadWorker::HandleOKCallback()':
../src/ftdi_device.cc:190:85: warning: 'v8::Local<v8::Object> v8::Function::NewInstance(int, v8::Local<v8::Value>*) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       Local<Object> actualBuffer = bufferConstructor->NewInstance(3, constructorArgs);
                                                                                     ^
In file included from /home/pi/.cache/node-gyp/8.11.1/include/node/v8.h:26:0,
                 from /home/pi/.cache/node-gyp/8.11.1/include/node/node.h:63,
                 from /home/pi/.cache/node-gyp/8.11.1/include/node/node_buffer.h:25,
                 from ../src/ftdi_device.cc:8:
/home/pi/.cache/node-gyp/8.11.1/include/node/v8.h:3847:31: note: declared here
                 Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
                               ^
/home/pi/.cache/node-gyp/8.11.1/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/ftdi_device.cc:202:29: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
       callback->Call(2, argv);
                             ^
In file included from ../src/ftdi_device.h:9:0,
                 from ../src/ftdi_device.cc:11:
../../nan/nan.h:1674:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/ftdi_device.cc: In member function 'virtual void OpenWorker::HandleOKCallback()':
../src/ftdi_device.cc:341:29: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
       callback->Call(1, argv);
                             ^
In file included from ../src/ftdi_device.h:9:0,
                 from ../src/ftdi_device.cc:11:
../../nan/nan.h:1674:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/ftdi_device.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE ftdi_device::FtdiDevice::Open(Nan::NAN_METHOD_ARGS_TYPE)':
../src/ftdi_device.cc:395:27: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
     callback->Call(1, argv);
                           ^
In file included from ../src/ftdi_device.h:9:0,
                 from ../src/ftdi_device.cc:11:
../../nan/nan.h:1674:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/ftdi_device.cc: In member function 'virtual void WriteWorker::HandleOKCallback()':
../src/ftdi_device.cc:549:29: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
       callback->Call(1, argv);
                             ^
In file included from ../src/ftdi_device.h:9:0,
                 from ../src/ftdi_device.cc:11:
../../nan/nan.h:1674:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/ftdi_device.cc: In member function 'virtual void CloseWorker::HandleOKCallback()':
../src/ftdi_device.cc:648:29: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
       callback->Call(1, argv);
                             ^
In file included from ../src/ftdi_device.h:9:0,
                 from ../src/ftdi_device.cc:11:
../../nan/nan.h:1674:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/ftdi_device.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE ftdi_device::FtdiDevice::Close(Nan::NAN_METHOD_ARGS_TYPE)':
../src/ftdi_device.cc:678:29: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
       callback->Call(1, argv);
                             ^
In file included from ../src/ftdi_device.h:9:0,
                 from ../src/ftdi_device.cc:11:
../../nan/nan.h:1674:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/ftdi_device.cc: In member function 'void ftdi_device::FtdiDevice::ExtractDeviceSettings(v8::Local<v8::Object>)':
../src/ftdi_device.cc:770:61: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
     deviceParams.baudRate = options->Get(baudrate)->ToInt32()->Int32Value();
                                                             ^
In file included from /home/pi/.cache/node-gyp/8.11.1/include/node/node.h:63:0,
                 from /home/pi/.cache/node-gyp/8.11.1/include/node/node_buffer.h:25,
                 from ../src/ftdi_device.cc:8:
/home/pi/.cache/node-gyp/8.11.1/include/node/v8.h:9796:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
../src/ftdi_device.cc:774:77: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
     deviceParams.wordLength = GetWordLength(options->Get(databits)->ToInt32()->Int32Value());
                                                                             ^
In file included from /home/pi/.cache/node-gyp/8.11.1/include/node/node.h:63:0,
                 from /home/pi/.cache/node-gyp/8.11.1/include/node/node_buffer.h:25,
                 from ../src/ftdi_device.cc:8:
/home/pi/.cache/node-gyp/8.11.1/include/node/v8.h:9796:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
../src/ftdi_device.cc:778:73: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
     deviceParams.stopBits = GetStopBits(options->Get(stopbits)->ToInt32()->Int32Value());
                                                                         ^
In file included from /home/pi/.cache/node-gyp/8.11.1/include/node/node.h:63:0,
                 from /home/pi/.cache/node-gyp/8.11.1/include/node/node_buffer.h:25,
                 from ../src/ftdi_device.cc:8:
/home/pi/.cache/node-gyp/8.11.1/include/node/v8.h:9796:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
../src/ftdi_device.cc:793:61: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       deviceParams.bitMode = options->Get(bitmode)->ToInt32()->Int32Value();
                                                             ^
In file included from /home/pi/.cache/node-gyp/8.11.1/include/node/node.h:63:0,
                 from /home/pi/.cache/node-gyp/8.11.1/include/node/node_buffer.h:25,
                 from ../src/ftdi_device.cc:8:
/home/pi/.cache/node-gyp/8.11.1/include/node/v8.h:9796:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
../src/ftdi_device.cc:801:61: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       deviceParams.bitMask = options->Get(bitmask)->ToInt32()->Int32Value();
                                                             ^
In file included from /home/pi/.cache/node-gyp/8.11.1/include/node/node.h:63:0,
                 from /home/pi/.cache/node-gyp/8.11.1/include/node/node_buffer.h:25,
                 from ../src/ftdi_device.cc:8:
/home/pi/.cache/node-gyp/8.11.1/include/node/v8.h:9796:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
  CXX(target) Release/obj.target/ftdi/src/ftdi_driver.o
../src/ftdi_driver.cc: In member function 'virtual void FindAllWorker::HandleOKCallback()':
../src/ftdi_driver.cc:187:27: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
     callback->Call(2, argv);
                           ^
In file included from ../src/ftdi_driver.h:8:0,
                 from ../src/ftdi_driver.cc:6:
../../nan/nan.h:1674:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
  SOLINK_MODULE(target) Release/obj.target/ftdi.node
//usr/local/lib/libftd2xx.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
ftdi.target.mk:135: recipe for target 'Release/obj.target/ftdi.node' failed
make: *** [Release/obj.target/ftdi.node] Error 1
make: Leaving directory '/home/pi/web/node_modules/ftdi/build'

Not sure what goes wrong here. Seems soort of the same thing as my previous #36 ticket.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions