I've been trying to compile digikam and as part of that process needed to compile jasper. Jasper developers use cmake
, I wanted to make a .deb package -- in fact was trying to learn how to make a package to share -- and so tried to do this (which errors as below):
sudo checkinstall -D "sudo cmake --build '/home/username/Downloads/jasper/buildlocal' --target install"
Checkinstall run with sudo returns a "not found" error (end of 4th line) despite the command being passed to it working successfully:
Installing with sudo cmake --build '/home/username/Downloads/jasper/buildlocal' --target install...
========================= Installation results ===========================
/var/tmp/tmp.miGWYgiNzT/installscript.sh: 4: sudo cmake --build '/home/username/Downloads/jasper/buildlocal' --target install: not found
**** Installation failed. Aborting package creation.
Cleaning up...OK
Bye.
To repeat, the command
sudo cmake --build '/home/username/Downloads/jasper/buildlocal' --target install
was successful, but neither sudo checkinstall
, nor sudo cmake
with plain checkinstall, nor using sudo for both, worked.
How can I pass the write invocation to checkinstall to make a package here. More details of all commands run at my blog, but I feel this is enough to answer the question.
sudo checkinstall -D cmake --build '/home/username/Downloads/jasper/buildlocal' --target install