Compiling FAAC Fails due to Line Endings

I was trying to build ffmpeg with h264 and faac tonight and had a fair amount of trouble, encountering issues with configure until I realized that several of the files in the faac distribution had DOS line endings.

I was seeing output like this:

.infig.status: error: cannot find input file:

I solved it with find, xargs, dos2unix and a pipe:

(from the extracted directory)

find -type f | xargs -n1 dos2unix

Hope it helps someone else with similar problems in the future.

2 Responses to “Compiling FAAC Fails due to Line Endings”

  1. Ben Durbin Says:

    Thanks for posting this workaround. Ran into this exact issue today.

  2. rollertux Says:

    Thanks from me also, ran into it as well.

Leave a Reply