delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/12/03/16:25:47

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 <Stromeko AT nexgo DOT de>, cygwin AT cygwin DOT com
References: <DBBPR03MB7116FECFBA323D95B70A8BC39B6A9 AT DBBPR03MB7116 DOT eurprd03 DOT prod DOT outlook DOT com>
<87bl1xmmpe DOT fsf AT Rainer DOT invalid>
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Message-ID: <ef4fcd80-40e9-e92b-8009-fe1119f0f279@cs.umass.edu>
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>
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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: moss AT cs DOT umass DOT edu
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019