slyfox1186 / ffmpeg-build-script

The FFmpeg build script build's the most up to date version of FFmpeg by using API calls to download the latest source code available.
GNU General Public License v3.0
45 stars 9 forks source link

ninja build fails due to cmake missing #32

Closed rharmonson closed 3 months ago

rharmonson commented 3 months ago

After a clean Debian 12 installation and installing git and build-essential, the build script fails at "Building ninja - version 1.12.1" due to cmake missing. I installed the cmake package and was able to build ninja.

Question: I noted cmake is built five steps or so after ninja. Is it the intent to build cmake then ninja using the built cmake? Not my area of expertise so may be a dumb question.

Thank you for the amazing script!

slyfox1186 commented 3 months ago

Yes.

Regarding your specific question about the events of ninja and cmake: Step 1 - Build the latest release version of cmake available. Step 2 - Build the latest release version of ninja with the latest version of cmake you just installed. This is due to how the PATH variable has been assigned. The higher directories take priority over lower directories. "$workspace/bin" in positioned very high up for this reason.

Some of these repositories are SO fresh that you need the latest cmake or you can run into issues with some of them when building and installing.

rharmonson commented 3 months ago

Understood and thank you for the explaination.

My first time using your script and building ffmpeg. I will go build it again and if I get stuck, I will open a new issue.

Hope you are recovered. Best wishes!