dpar39/ppp

How to run via CLI?

Opened this issue · 6 comments

b-des commented

Hi! Thanks for your work. Tell me please, how to run this tool via CLI?

@dpar39 please help. I ran ./ppp_app -b /root/ppp/images/k.jpg -o /root/ppp/images/k.jpg -i /root/ppp/images/1.jpg and got Segmentation fault (core dumped)

You'll need to upload the image to debug it and figure out what's going on. Here I see you are using the same image file path for badge output and normal output.

Hi! Thanks for your work. Tell me please, how to run this tool via CLI?

@dpar39 Are you able to provide further information on how to use the CLI? I've tried using the parameters provided by ppp_app.exe --help. The command runs without error, but does not produce an output.

Seems like I'm not the only one having this issue.

Same here, I'm trying to run this tool using attached image.
I'm wondering why there is outBadgePath parameter required.

`ubuntu@ubuntu-VM:~$ cd ppp/

ubuntu@ubuntu-VM:~/ppp$ cd install_linux_release_x64/

ubuntu@ubuntu-VM:~/ppp/install_linux_release_x64$ ./ppp_app -b manbadge.png -o mainmage.png -i personthatnotexists.jpeg

Segmentation fault (core dumped)

ubuntu@ubuntu-VM:~/ppp/install_linux_release_x64$
`

personthatnotexists

I also hit the segfault but managed to get it to run by building from 1bdd1b5 and specifying the path to config.bundle.json with --config on the cli.
So it looks like the newer commits that attempt to get rid of config.bundle.json don't quite work for the cli.

If you have the nix package manager available, you can run nix-build -A photo-id-creator on this branch (respectively NixOS/nixpkgs@9a853aa for a stable reference) of my nixpkgs clone. That should put a result symlink in the directory and allow you to run

./result/bin/ppp_app --config ./result/share/config.bundle.json -i [...] -b [...] -o [...]