Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build on raspberry CM3+, electron. #123

Closed
AshwinDeTaeye opened this issue Dec 8, 2021 · 1 comment
Closed

Cannot build on raspberry CM3+, electron. #123

AshwinDeTaeye opened this issue Dec 8, 2021 · 1 comment

Comments

@AshwinDeTaeye
Copy link

AshwinDeTaeye commented Dec 8, 2021

It's fine to build for Linux x86_64, then i can use the library.
When trying to build on raspberry CM3+ i get get following error :

 g++: error: unrecognized command line option '-m64'
make: *** [pcsclite.target.mk:135: Release/obj.target/pcsclite/src/addon.o] Fout 1

I searched the makefile, but don't understand if i should change this (line 135) to something else then -m64.

Local depencies are installed. When i do pcsc_scan in shell i can see the card's on the ACR125.

gyp info using [email protected]
gyp info using [email protected] | linux | arm
gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3"
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args   '/usr/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/pi/git/project/src/node_modules/@pokusew/pcsclite/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/pi/.electron-gyp/14.2.1/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/pi/.electron-gyp/14.2.1',
gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/pi/.electron-gyp/14.2.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/pi/git/project/src/node_modules/@pokusew/pcsclite',
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' ]
g++: error: unrecognized command line option '-m64'
make: *** [pcsclite.target.mk:135: Release/obj.target/pcsclite/src/addon.o] Fout 1
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:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Linux 4.19.75-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/git/project/src/node_modules/@pokusew/pcsclite
gyp ERR! node -v v16.13.1
gyp ERR! node-gyp -v v8.3.0
gyp ERR! not ok 

error Command failed with exit code 1.

@AshwinDeTaeye
Copy link
Author

For anyone who is interested, I couldn't get it to build on CM3+.
I have built it on RPI4 and then used the binary to run on RPI3+ / CM3+.

This luckily worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant