X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type; q=dns; s=default; b=TaQi4 rX65s9aVwh+HG9ncbiFkcMUg7VG+X4VRJMhWY6i0ZnyIXmPf1HAtICEaPpMIGftp 62fSSVY1PuyZ6PW5Bln9qoPuK42W1oydiQYU2nw7xxLu2HV/7Z80P3mqFOvj2s8N T+BI//8BcnG6a4zIDIQFmxFuv8L+71/JSQmdvU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type; s=default; bh=FohOxOApCia gXm9KfpIzn8zSpWo=; b=x3YJxlfcsnuuRTsSpiAKakntJw5e4gGXPCIzKBAV/vn xNnHCepLNR9vHNNaL0NjvUmvoUEK5OpUAra8+ZmAA0mdtJOjhT/oqg9lwHwc/Qd7 4b1YCfxxBYH0Pxyrj5YPBym1JnjWt0Km2/9UgbjtkZ66MB14mZB963/LLTLRsSis = Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: vsmx012.vodafonemail.xion.oxcs.net From: Achim Gratz To: cygwin AT cygwin DOT com Subject: Re: Fatal errors when compiling x264 from source while Avisynth is enabled References: Date: Tue, 05 Mar 2019 20:40:28 +0100 In-Reply-To: (Hashim Aziz's message of "Tue, 5 Mar 2019 02:05:40 +0000") Message-ID: <871s3l85zn.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Hashim Aziz writes: > I'm trying to follow the FFmpeg wiki's guide here to build FFmpeg from > source with the most superior codecs it can make use of, like > libfdk-aac and libopus: > > https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu > > I've sorted many of the dependencies to get it to work on Cygwin, and > thankfully I didn't need to build most of the packages in that guide > from source because they were included in the Cygwin repository, but > there are 2 or 3 that are not, including x264 and x265. > > So I'm now trying to build x624 from source with the following command: > > cd /ffmpeg_sources && git -C x264 pull 2> /dev/null || git clone > --depth 1 https://git.videolan.org/git/x264 && cd x264 && > PATH="/usr/local/bin:$PATH" > PKG_CONFIG_PATH="/ffmpeg_build/lib/pkgconfig" ./configure > --prefix="/ffmpeg_build" --bindir="/usr/local/bin" --enable-static > --enable-pic && PATH="usr/local/bin:$PATH" make -j4 && make install That doesn't look like anything you'd want to do on Cygwin. > But at the configure stage of this command, I get a few errors and > lots of warnings, but the final error is this one: > > [Makefile:272: input/avs.o] Error 1 > > I believe this is a Cygwin error based on the fact that the error > immediately before the one above is the HMODULE error here: > > https://stackoverflow.com/questions/45181102/ffmpeg-on-cygwin-failed-to-compile-libx264-error-unknown-type-name-hmodule > > And in that question the OP and another answer are trying to follow > the very same guide while using Cygwin on the same 64-bit Windows 7. > > What's the problem here and how can I solve it? The errors go away and > the compilation works when I include --disable-avs, but I don't want > the version of FFmpeg that I build to come without AVS/Avisynth > support. The problem is most likely that the configury tries to treat Cygwin as some sort of MS Windows and/or MSys, based on an incomplete evaluation of the system properties. If you really want to compile for Cygwin, you'll need to check each decision in the configury for not entering into Windows-specific branches. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf rackAttack: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple