Sample Header Ad - 728x90

Using checkinstall in place of sudo cmake?

1 vote
1 answer
873 views
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 correct 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.
Asked by pbhj (443 rep)
Jan 1, 2022, 10:51 PM
Last activity: Jul 25, 2024, 01:39 PM