finding dependencies from a compiled kde application

Hello :slight_smile:

I don’t know exactly what to ask :-(, so I will explain the case:

I have compiled digiKam for openSUSE 11.4 (Le wiki de jdd - Doc - Compiling DigiKam on openSUSE 11.4, both 2.0 version (stable) and 2.1 (git).

I didn’t find usable the OBS versions, because the one I tried wanted to update also kde and I have a past bad experience ith this. It was not that difficult to compile digikam.

But, for making my wiki page, I want to list the dependencies of the digikam source. I solved this by trial and error, with the cmake logs, but could only write down the library that where not already in my system (none, for example when I compiled the git vesion).

Is there a cmake or make command or target that I could use to list this?

I it possible to build a rpm that could allow me to switch easily from one version to the other? I have no knowledge of spec file nor time to learn it just now so it should have to be automatic from my install :frowning:

thanks
jdd

Well … If you would build the package either in OBS or locally with rpmbuild (rather than make and make install), you would get an rpm package and you could easily list the dependencies with:

rpm -q --requires digikam

(provided you called the package digikam).

I build this locally on my computer, but rpmbuild ask for a spec file and I don’t have any idea of how to make one. What I need is an utility (if it exists) that could do this automatically (after all, make install did the job)

thanks
jdd

The answer is “checkinstall”, that allows creating a rpm from the compilation directory (tracking the make install work). This makes the most work :slight_smile: