From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5557 invoked by alias); 12 May 2014 18:47:33 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 5538 invoked by uid 89); 12 May 2014 18:47:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: vms173025pub.verizon.net Received: from vms173025pub.verizon.net (HELO vms173025pub.verizon.net) (206.46.173.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 12 May 2014 18:47:29 +0000 Received: from [192.168.1.231] ([unknown] [74.104.179.122]) by vms173025.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0N5H000PE5IZZEK0@vms173025.mailsrvcs.net> for cygwin@cygwin.com; Mon, 12 May 2014 13:47:28 -0500 (CDT) Message-id: <5371173B.9080509@cygwin.com> Date: Mon, 12 May 2014 19:39:00 -0000 From: "Larry Hall (Cygwin)" Reply-to: cygwin@cygwin.com User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-version: 1.0 To: cygwin@cygwin.com Subject: Re: How do start a cygwin shell session from a script ? References: In-reply-to: Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-SW-Source: 2014-05/txt/msg00234.txt.bz2 On 05/12/2014 06:12 AM, Timothy Madden wrote: > Hello > > I have a CMake build script for my application, that among other > things tries to build libvpx (open-source video codec, see > webmproject.org). > > libvpx library v1.3.0 compiles fine by hand when I open a cygwin > terminal from the Windows start menu and type in the needed > `configure`; `make` and `make install` commands. > > But when I try to invoke the cygwin shell from my build script, to run > the same 3 commands with the -lc option to sh.exe (same command line), > something happens and the build commands no longer work like in the > real mintty terminal. Then my build fails. > > I believe there is something in the cygwin shell session or > environment that I do not know how to set right when invoking > $(CYGWIN_DIR)/bin/sh from my CMake script. > > Is there a way for me to start a cygwin shell session from the build > script, that is identical to the one that opens in the mintty terminal > from the start menu, and run some commands there ? > > I checked the environment variables and umask in the mintty terminal > and in a /bin/sh session that I launch, they are the same in both > cases. I tried using /bin/sh, /bin/bash, /bin/dash, with both --login > and -c options. But the automated build always fails, and the manual > build works. What's the error and from where? I think you are on the right track to look at environment differences. If you're sure there are no longer any differences between the sessions invoked through CMake and manually, I'd suspect something surrounding CMake. Do you have the same problem using Cygwin's CMake? -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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