LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 04-20-2009, 01:29 PM   #1
linuxisgreat
Member
 
Registered: Nov 2008
Posts: 53

Rep: Reputation: 16
Compiler for windows


Hi all

I would like to know if there is a compiler for windows vista that could make a linux kernal.

I've searched around google and these forums and I can't find a specific answer or any suggested programs that could be used.

Please help and if anybody knows what programs could be used please let me know.
 
Old 04-20-2009, 02:16 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 04-20-2009, 02:16 PM   #3
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
There is no such thing. Use a linux virtual machine in vista and you can do this, otherwise install linux and compile your kernel.
 
Old 04-20-2009, 03:14 PM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
As far as I am aware, Linux just needs gcc to compile the kernel. Windows ports of GCC are available, including cross-compilers.
You may have some difficulty in configuring it, since the configure scripts rely on proper terminal control or X — and you may also have problems installing it (and you probably the rest of an operating system before you could use it).

You can solve most of these problems using Cygwin, which provides a roughly POSIX environment for Windows.

This may help, although it doesn't mention the kernel: http://metamod-p.sourceforge.net/cro...for.linux.html

Hope that helps, and good luck!

—Robert J Lee
 
Old 04-20-2009, 03:14 PM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
gcc can be used as a cross-compiler, and it does run on Windows. I don't know the details of compiling linux from windows, but I do compile windows from linux using gcc.

You have to build the gnu toolset correctly. I *think* that you would compile the gnu source in Windows using gcc for windows, and specify a compile time option that the suite you were compiling was to generate Linux executables.

While I do believe this is possible, I also believe that you would find it to be a fairly formidable task to build a working environment for that. Maybe cygwin would provide some help with that part of it.

Last edited by jiml8; 04-20-2009 at 03:15 PM.
 
Old 04-20-2009, 03:58 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
MinGW works well on Windows but i have NEVER tried to build a *nix kernel in mingw
i use bash on xp more than cmd.exe
 
Old 04-21-2009, 01:40 AM   #7
linuxisgreat
Member
 
Registered: Nov 2008
Posts: 53

Original Poster
Rep: Reputation: 16
Thanks for all the help I'll try gcc and see what happens.
 
Old 04-21-2009, 07:43 AM   #8
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
Ok sure you can put gcc on windows and try it but even if you were to get it working the effort involved would be 10x setting up a linux distro to do this.
 
Old 04-21-2009, 12:02 PM   #9
linuxisgreat
Member
 
Registered: Nov 2008
Posts: 53

Original Poster
Rep: Reputation: 16
Well it's really the only choice i've got right now I really don't want to put linux on my vista laptop yet.
 
Old 04-21-2009, 01:12 PM   #10
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,290
Blog Entries: 61

Rep: Reputation: Disabled
If you want something a bit nearer to Linux than Cygwin, but don't want to partition your drive and dual-boot, check out these:

http://wubi-installer.org/

http://portableubuntu.demonccc.cloudius.com.ar/

http://colinux.wikia.com/wiki/Main_Page
 
Old 04-21-2009, 04:17 PM   #11
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
linuxisgreat,

Do please let us know how you get on. You have me intrigued…
 
Old 04-28-2009, 01:03 AM   #12
farmerdave
Member
 
Registered: Mar 2008
Location: Adelaide, Australia
Distribution: Arch, Slackware 14.2, Fedora 27
Posts: 111
Blog Entries: 1

Rep: Reputation: 16
Would it be possible to just use a live cd or usb bootable distro to compile, or would it run too slowly?
 
Old 05-04-2009, 04:48 AM   #13
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Rep: Reputation: 129Reputation: 129
If you have a fairly recent machine, why don't
you use a live linux system from a cd or a usb stick.
There are plenty of good ones

slax (http://www.slax.org/)
grml (http://grml.org/)

to name just a few

On my stick, both boot much faster than vista. I usually
work in RAM and when I want to save things I mount
the partition where I want to save my changes
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
X Windows and compiler library issues fiveball02 *BSD 2 10-27-2005 07:41 PM
windows to linux cross-compiler back2morrie Linux - General 8 07-13-2005 03:15 AM
compiler in windows for Linux ???? DTKG Programming 1 05-05-2005 06:27 PM
Free C/C++ Compiler for Windows? testforechozero Programming 6 08-19-2004 09:29 PM
c compiler windows/linux Jalalabee Programming 2 01-08-2004 01:18 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 06:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration