ppp icon indicating copy to clipboard operation
ppp copied to clipboard

How to run via CLI?

Open b-des opened this issue 6 years ago • 6 comments

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

b-des avatar Jan 27 '20 15:01 b-des

@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)

thucnc avatar Mar 18 '20 07:03 thucnc

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.

dpar39 avatar May 15 '20 16:05 dpar39

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.

bradleyhodges avatar Feb 09 '22 13:02 bradleyhodges

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

marcin1990 avatar Dec 23 '22 14:12 marcin1990

I also hit the segfault but managed to get it to run by building from 1bdd1b59a4a6104a9cca3107d0b2c3e459f7389b 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.

xaverdh avatar Aug 05 '23 06:08 xaverdh

If you have the nix package manager available, you can run nix-build -A photo-id-creator on this branch (respectively https://github.com/NixOS/nixpkgs/commit/9a853aa0dfbf55d372af4fe597a961cb049020d7 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 [...]

xaverdh avatar Aug 05 '23 13:08 xaverdh