Comments (8)
Hey Fkooman,
Thanks for reporting. You're right Windows sucks, it doesn't support getopt. Do
you
know some similar functions in Windows world ?
Original comment by [email protected]
on 2 Sep 2009 at 3:55
- Added labels: Priority-High
- Removed labels: Priority-Medium
from libnfc.
Maybe this link can be helpful :
http://note.sonots.com/EngNote/CompLang/cpp/getopt.html
Original comment by [email protected]
on 2 Sep 2009 at 4:11
from libnfc.
Hey Fkooman,
I haven't any Windows platform here, could you try to fix it using previously
given
link ? or with another way ?
Thanks a lot.
Original comment by [email protected]
on 3 Sep 2009 at 3:30
from libnfc.
I was playing with this for a bit, but the getopt code you mentioned seems a bit
broken. I'll look into making something myself maybe, or using one of the other
available "replacements" like XGetopt
(http://www.codeproject.com/KB/cpp/xgetopt.aspx), but it seems to be in C++,
bleh
Any thoughts on that? I guess it is possible to only use XGetopt on Windows and
fall
back to getopt in Unix, I just hope non of the programs need to be changed...
Original comment by fkooman%[email protected]
on 4 Sep 2009 at 9:40
from libnfc.
Hi,
Maybe the solution could be to handle command line option "by hands" like
mftool (or
mfultool) does. Examples which are affected by this "bug" are: nfc-anticol,
nfc-emulate and nfc-relay. This "bug" have been introduce in r72.
What do you think about that, Fkooman ? (Roel? Adam? Anybody?)
Original comment by [email protected]
on 4 Sep 2009 at 1:33
from libnfc.
To me that seems like a good idea. Although Roel is the only one actually using
Windows? :P We can also use a big #ifdef to not have any command line option
stuff
available in Windows and just choose sensible defaults.
Was -DDEBUG not meant for printing all this stuff? Maybe it makes sense to print
nothing (or only the absolute necessary) when -DDEBUG is not specified.
Original comment by fkooman%[email protected]
on 4 Sep 2009 at 8:59
from libnfc.
> Roel is the only one actually using Windows?
AFAIK, Roel is more a OSX user than Windows one.. Windows support in libnfc is
only
for users convenience (and developers headaches).
> We can also use a big #ifdef
I have wrote some lines that could works under Windows and standard POSIX
systems.
> Was -DDEBUG not meant for printing all this stuff?
No. -DDEBUG is for development debugging purpose. Here (anticol, emulate and
relay)
use verbose output to be able to trace transmission, for hacking purpose for
example.
Thanks for your help Fkooman, this issue is fixed in r99.
Original comment by [email protected]
on 7 Sep 2009 at 10:21
- Changed state: Fixed
from libnfc.
Patch to:
- reenable the broken tools in Windows in cmake files
- add some more exports to bitutils to make compilation succeed.
I think you can consider removing everything from the win32 directory except the
stdint directory, unless a 64 bit Windows version is a current feature. This
requires
some more work on the CMake files to find the correct library 32/64 bit
libraries.
You also want to make a windows binary (installable) release in the future? That
should be no problem now with this CMake/MSVC/NSIS stuff.
Original comment by fkooman%[email protected]
on 7 Sep 2009 at 10:58
Attachments:
from libnfc.
Related Issues (20)
- SAK value problem HOT 1
- P2P using NDEP example fails on to DeSelect HOT 1
- No NFC device found on Intel Ultrabook HOT 6
- Support higher speeds for Type A tags HOT 1
- Add cmake config files HOT 1
- Timeout SCL3711 mfoc HOT 2
- list HOT 1
- error libnfc.chip.pn53x Unexpected PN53x reply!
- ./configure --with-drivers=pn532_uart --sysconfdir=/etc --prefix=/usr HOT 5
- Wrong open mode for file descriptor 4 in utils/nfc-relay-picc.c
- cmake soversion doesn't match autotools
- nfc-mfsetuid: Write complete Block0, instead of onle UID
- I am new to libnfc stuff , could anyone provide me with some links where I can learn more about implementing libnfc on raspberry pi? thank you in advance
- Invalid RDR_to_PC_DataBlock frame with ACR122U HOT 1
- Support for ACS ACR1251U Reader HOT 1
- udev rule is executed to early
- libnfc tries to access a smartcard reader HOT 2
- Patch for compilating under Cygwin HOT 1
- PN532 frame preamble parsing shortcoming
- libnfc is now officially on GitHub
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 libnfc.