From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Hanchrow Newsgroups: gmane.emacs.help Subject: Re: compiling emacs using cygwin Date: Sun, 27 May 2007 06:23:42 -0700 Message-ID: <87wsyue6xt.fsf@offby1.atm01.sea.blarg.net> References: <46585cfc$1_4@mk-nntp-2.news.uk.tiscali.com> <46596fd9_4@mk-nntp-2.news.uk.tiscali.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1180273136 18947 80.91.229.12 (27 May 2007 13:38:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 27 May 2007 13:38:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 27 15:38:54 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HsIxS-00020H-7S for geh-help-gnu-emacs@m.gmane.org; Sun, 27 May 2007 15:38:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HsIxR-0005Py-J4 for geh-help-gnu-emacs@m.gmane.org; Sun, 27 May 2007 09:38:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HsIxC-0005M4-VG for help-gnu-emacs@gnu.org; Sun, 27 May 2007 09:38:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HsIxA-0005HV-52 for help-gnu-emacs@gnu.org; Sun, 27 May 2007 09:38:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HsIxA-0005HI-1G for help-gnu-emacs@gnu.org; Sun, 27 May 2007 09:38:36 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HsIx9-0007DO-Hj for help-gnu-emacs@gnu.org; Sun, 27 May 2007 09:38:35 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HsIww-0006F8-Uy for help-gnu-emacs@gnu.org; Sun, 27 May 2007 15:38:22 +0200 Original-Received: from q-static-138-125.avvanta.com ([206.124.138.125]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 May 2007 15:38:22 +0200 Original-Received: from offby1 by q-static-138-125.avvanta.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 May 2007 15:38:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 83 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: q-static-138-125.avvanta.com User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (gnu/linux) Cancel-Lock: sha1:CYVd5WwRjytcUFlnBLeAOgqo9wQ= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:44480 Archived-At: Eric Hanchrow wrote: > You seem to be trying to build a "native Windows" binary, as opposed > to a Cygwin binary. Is that right? I am not quite sure. Well, that would be a good thing to know :-) The native Windows binary and the Cygwin binary are significantly different -- for one thing, the Cygwin binary runs as an X11 client; the native Windows binary doesn't. They treat file names differently, too, and there are lots of other differences. I was attempting to use cygwin to compile it and I presumed that this will produce a native windows binary. You can build both flavors with Cygwin; not surprisingly, the steps you go through differ depending on which flavor you want. I have used MingW will reasonable success. It produces an emacs from the nt version which runs on win XP but its appearance looks a bit shoddy, as thought it only uses 16 colours. I've never seen that; the version that I build from MinGW looks fine to me (although I must admit I'm color-blind :-). I presume that this is because I did not included any image support stuff like the link you mentioned does suggest. I doubt that's relevant. I think "Image support stuff" allows Emacs to display, e.g., jpeg images when you visit the .jpeg file, rather than simply displaying the bytes in the file. I doubt it has anything to do with, say, the colors of the background, or fonts, or menus. > If you want to build a Cygwin binary, install gcc 4 from source (yes, > that's a pain, but it works "out of the box") and then build Emacs > with the usual Unix-style "./configure; make" (i.e., use ./configure > instead of nt/configure.bat). This is a bit of a problem to install gcc4 from source because the setup utility only goes up to version 3.4.4 I think you misunderstood me. I didn't mean "run the Cygwin setup program and ask it to install the source for version 4 of gcc"; I instead meant "Download 'gcc-core-4.1.2.tar.bz2' from savannah.gnu.org, and unpack it with 'tar jxvf'". I have a few questions 1. How do I discover the version of my gcc without going to the setup utility? Type "gcc --version". The --version switch works for many programs, not just gcc. 2. Is there anywhere on the net which gives me a "hold your hand" guide to compiling gcc from source on cygwin. Not specifically for Cygwin, that I know of, but the source includes a directory named INSTALL full of instructions. Here's my summary: * create an empty directory and 'cd' to it * run the 'configure' script from the source directory * type 'make bootstrap' * get coffee * type 'make install' I have found for linux but not unixy shells. I can't guess what you meant by that. 3. I have looked for a good introduction to unix via cygwin but have not found any useful stuff for the beginner. Any suggestions? Nope. Cygwin is quirky, and using it well pretty much requires that you have the Unix basics down. If you don't mind spending lots of time experimenting and learning, then keep on with your goal of building Emacs from source. But if you're in a hurry, I suggest you use the binaries at ntemacs.sf.net; they're ready to run. -- Keaton, Chaplin, Garbo - let them now make room for Gromit. A. O. Scott, in The New York Times