X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 031853858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cs.umass.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.umass.edu Subject: Re: Generating Linux Compatible binaries To: Achim Gratz , cygwin AT cygwin DOT com References: <87bl1xmmpe DOT fsf AT Rainer DOT invalid> From: Eliot Moss Message-ID: Date: Fri, 3 Dec 2021 16:25:08 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <87bl1xmmpe.fsf@Rainer.invalid> Content-Language: en-US X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: moss AT cs DOT umass DOT edu Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On 12/3/2021 3:56 PM, Achim Gratz wrote: > Goswami-EXT, Himanshu writes: >> I want to generate the Linux compatible binaries on Windows System. > > If you are on a recent Windows version your easiest option is probably > to use WSL and use native compilation on Linux. second easiest is > likely to set up a VM to run Linux in (that might actually be easier > than WSL if you already have some virtualisation environment set up for > something else, but you said you were on Windows). > >> Cygwin is a cross compiler which offers POSIX environment. > > No, Cygwin is a user-space layer on top of Windows that provides a POSIX > environment for applications that target Cygwin (i.e. Cygwin > applications are neither Windows nor Linux applications). > >> But I could not find any Unix libraries to generate the Linux compatible binaries. >> Could you please advice any steps that I can follow? > > Just like you'd do on any other non-Linux system: set up a > cross-compilation toolchain and start compiling all dependencies until > you can finally compile whatever Linux application you wanted orginally. Following up my previous post and the two others I have seen ... Cross-compilation is a definite possibility. However, you can't test the result directly under Windows or Cygwin. If you want to test, then AFAIK a VM (or maybe qemu?) is your only option. Best wishes - Eliot Moss -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple