Open kadubsb opened 3 months ago
Here the same problem. Lubuntu 23.10
Any idea?
Changing build_libopus to this fixed it for me:
build_libopus() {
do_git_checkout https://github.com/xiph/opus.git opus_git origin/main
cd opus_git
generic_configure "--disable-doc --disable-extra-programs --disable-stack-protector"
do_make_and_make_install
cd ..
}
I came to this after finding my own solution, and agree that lansa9's solution above works too.
The change I made locally was within "do_git_checkout()" where I check for the git branches available, for either "origin/master" or "origin/main" (as found in libopus).
So
if [[ -z $desired_branch ]]; then
desired_branch="origin/master"
fi
becomes
if [[ -z $desired_branch ]]; then
# Check for either "origin/main" or "origin/master".
if [ $(git show-ref | grep -e origin\/main$ -c) = 1 ]; then
desired_branch="origin/main"
elif [ $(git show-ref | grep -e origin\/master$ -c) = 1 ]; then
desired_branch="origin/master"
else
echo "No valid git branch!"
exit 1
fi
fi
echo "doing git checkout $desired_branch"
Hello, I'm having difficulty finalizing the ffmpeg compilation because it shows an error in the pathspec 'origin/master' as shown in the attached screen, could anyone help me in this case?