Comments (1)
The libnfc wrapper uses cgo to access the libnfc. By default, cgo is disabled for cross-compilations, leading to the error you observe. If you want to cross compile the nfc wrapper, you need to provide a C cross-compiler and a compiled copy of the libnfc and set CC_FOR_TARGET
as outlined in this document.
I recommend you to compile the libnfc and this wrapper on your Raspberry Pi instead of trying to cross-compile it.
from nfc.
Related Issues (11)
- Explicitly check ranges in Target.Marshall() implementations HOT 1
- nfc_initiator_deselect_target() is not wrapped
- Does not compile with go 1.3 (so you said) HOT 7
- ISO14443aTarget marshalling problem? HOT 6
- Initiator Target Selection? HOT 3
- Device.InitiatorSelectPassiveTarget does not work HOT 4
- Device.InitiatorSelectPassiveTarget panic when InfiniteSelect == false and no tag was found HOT 3
- undefined: context HOT 7
- thread safety? HOT 4
- github.com\clausecker\nfc\[email protected]\nfc.go:208:17: undefined: context HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nfc.