[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUnet-developers] GNUNET_PROGRAM* option evaluation does not work

From: Hartmut Goebel
Subject: Re: [GNUnet-developers] GNUNET_PROGRAM* option evaluation does not work as expected
Date: Wed, 13 Mar 2019 18:25:33 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

Hi Martin,

Am 03.03.19 um 11:33 schrieb Schanzenbach, Martin:
The first thing you should do it use GNUNET_PROGRAM*.

I followed this advice, adding options --verbose, -s/--silent and -d/--device. Here is the resulting help output, which look s good::

 src/util/gnunet-qr --help
Scan a QR code using a video device and import the uri read
Arguments mandatory for long options are also mandatory for short options.
      --verbose              be verbose
  -c, --config=FILENAME      use configuration file FILENAME
  -d, --device=DEVICE        use video-device DEVICE (default: /dev/video0
  -h, --help                 print this help
  -L, --log=LOGLEVEL         configure logging to use LOGLEVEL
  -l, --logfile=FILENAME     configure logging to write logs to FILENAME
  -s, --silent               do not show preview windows
  -v, --version              print the version number
Report bugs to address@hidden.
GNUnet home page:
General help using GNU software:

But the resulting program does not work as expected:

  1. gnunet-qr -c src/my/test_my.conf
    -> invalid option -- c
Curiously gnunet-ecc accepts this option.
  1. gnunet-qr --config ./src/my/test_my.conf
    fails with "`stat' failed on file `/opt/gnunet/share/gnunet/config.d' [...]error: Datei oder Verzeichnis nicht gefunden"

Why does the program try to access this directory when I passed an config-file?

"/opt/gnunet" is the prefix I configured, thus the directory name makes sense.  gnunet-ecc has the same issue.

I just pushed the code to branch gnunet-qt-c-2 (force-pushing to the prior branch was denied)

Hartmut Goebel

| Hartmut Goebel          | address@hidden               |
| | compilers which you thought are impossible |

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]