Git Product home page Git Product logo

Comments (4)

mpbraendli avatar mpbraendli commented on June 23, 2024

Huh, maybe a cygwin-specific thing... @LarsHaack are you able to look into that?

from odr-dabmod.

LarsHaack avatar LarsHaack commented on June 23, 2024

Command line argument parsing has a general issue in the cygwin build.
The call to getopt() does not detect any valid arguments if you start the command line with the input filename.
cygwin's getopt() implementation stops parsing after the first 'non-option' argument. From what I read this seemed to be the standard behavior of getopt() in all initial implementations.
To allow non-option arguments not only at the and of the arguments is an extension that is available in Linux but not in cygwin.

For the current cygwin build it means you have to give the input filename as the last command line argument.

$ ./odr-dabmod.exe -f /dev/null test.eti
Works for me.

   Input
 Type: file
 Source: test.eti
Output
 Name: /dev/null
 Sampling rate: 2.0480 MHz
Configuration parsed. Starting up version v2.4.1-3-gb977837
ERROR Could not set priority for modulator:134
     Setting up timestamp decoder with 0 offset
     Input file format: raw, length: 30720000, nb frames: 5000
     End of file reached.
     modulator stopped.

Unfortunately I have no idea how to get the expected behavior into the cygwin world.

from odr-dabmod.

mpbraendli avatar mpbraendli commented on June 23, 2024

Thanks for your insight! Maybe the variant we use is a GNU variant, different from POSIX.
We could "fix" this by updating the help screen and documentation, I don't think it's worth investing a lot of time into this.

from odr-dabmod.

andimik avatar andimik commented on June 23, 2024

I've successfully switched to Windows Subsystem for Linux, so I close this issue as I'm no more interested in Cygwin.

It works like a charm in WSL2. I can create RAW-files from ETI-Files and do not need to reboot to Linux.

from odr-dabmod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.