all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Hanchrow <offby1@blarg.net>
To: help-gnu-emacs@gnu.org
Subject: Re: compiling emacs using cygwin
Date: Sun, 27 May 2007 06:23:42 -0700	[thread overview]
Message-ID: <87wsyue6xt.fsf@offby1.atm01.sea.blarg.net> (raw)
In-Reply-To: 46596fd9_4@mk-nntp-2.news.uk.tiscali.com


    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

  reply	other threads:[~2007-05-27 13:23 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-26 16:15 compiling emacs using cygwin David R
2007-05-26 20:35 ` Eric Hanchrow
2007-05-27  3:13 ` Eli Zaretskii
     [not found] ` <mailman.1306.1180211913.32220.help-gnu-emacs@gnu.org>
2007-05-27 11:47   ` David R
2007-05-27 13:23     ` Eric Hanchrow [this message]
2007-05-27 19:52     ` Eli Zaretskii
     [not found]     ` <mailman.1330.1180273121.32220.help-gnu-emacs@gnu.org>
2007-05-29 10:49       ` David R
2007-05-29 20:29         ` Eric Hanchrow
     [not found]         ` <mailman.1406.1180471209.32220.help-gnu-emacs@gnu.org>
2007-06-15 14:38           ` David R
2007-06-15 17:56             ` Eric Hanchrow
     [not found]             ` <mailman.2204.1181931525.32220.help-gnu-emacs@gnu.org>
2007-06-17 17:48               ` David R
     [not found]     ` <mailman.1336.1180295540.32220.help-gnu-emacs@gnu.org>
2007-05-29 10:52       ` David R
2007-05-29 19:34         ` Eli Zaretskii
     [not found]         ` <mailman.1400.1180467287.32220.help-gnu-emacs@gnu.org>
2007-06-15 22:08           ` David R
2007-06-16 10:50             ` Eli Zaretskii
2007-06-02  3:53 ` Kevin Rodgers
     [not found] ` <mailman.1488.1180756520.32220.help-gnu-emacs@gnu.org>
2007-06-17 23:41   ` David R

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wsyue6xt.fsf@offby1.atm01.sea.blarg.net \
    --to=offby1@blarg.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.