Thread: Build linux on windows

  1. #1
    Registered User
    Join Date
    Feb 2008
    Location
    ottawa
    Posts
    4

    Build linux on windows

    I'm new to the linux world.
    Squished into it by a nifty little green and white computer known to some as the OLPC.
    I'm a slightly seasoned c++ guy though mostly for Palm and PPC. Some windows desk code too.
    The OLPC is a slow little thing not well equipted for compiling much less a serious sdk.
    So what I'm looking to do is code for it with my desktop. The sticking point is that I don't have linux on my desktop, so I want to be able to target a linux box with code I write and compile on a windows box.

    *****************************************
    You know you're a geek when 65536 and 256 seem like nice round numbers.
    (not my words but so funny I had to use them as a sig)
    *****************************************

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    What sort of code do you intend to write, and would it not be easier to either dual boot or run some virtualization engine (or get another PC?) to get Linux running on the machine?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Feb 2008
    Location
    ottawa
    Posts
    4
    I intend to write the cleanest tightest code that's ever been entered into a computer.

    Ok..
    I've considered the dual boot option though I'm not excited about the idea.
    As to type of program.
    I'd like to create a PIM for the little green laptop as it seems to be lacking one. This would be simular to the palm desktop for the windows because lets face it they really owned that one. So high level gui type stuff built for kids.
    This is of couse an eventual kinda thing. Right now I'd be happy with a hello world at the consol level.

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Here's a start for windows hosted, cross compilation for a linux target.

    http://code.google.com/p/win32linuxdev/

    Looks like it can also be done under Cygwin, but couldn't find any clear documetation on how.

    A linux virtual machine may be easier - both VMWare and Virtual PC are free.

    gg

  5. #5
    Registered User
    Join Date
    Feb 2008
    Location
    ottawa
    Posts
    4
    VM ware seems to be the way to go. I was really hoping to be able to leverage Visual studios but I'll have to bite the bullet. I just didn't want to have to tackle both Linux and a new sdk at the same time.

  6. #6
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Squished into it by a nifty little green and white computer known to some as the OLPC.
    Actually, the project is the OLPC; the laptop is the XO. How is it? I've been wanting to try one of those for some time . . . .

    As for your question; maybe a quick search will help: http://www.google.ca/search?hl=en&q=...e+Search&meta=

    This way round isn't much of a problem -- just run Linux! It's the other way around that can be a pain . . .
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  7. #7
    Registered User
    Join Date
    Feb 2008
    Location
    ottawa
    Posts
    4
    the xo is quite cool. it has some bugs and really needs some more QA but it's moving along. They are hard core open source and more specifically python. I don't agree with that goal and don't really understand how you'd write the gui portion of an os in a lang you can't step through.

    I don't for a second feel I was ripped off in any way. Glad I got it. now however I want to build for it, without learning a lang with virtually no ROI

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. windows .dll vs. linux .so - global static objects
    By pheres in forum C++ Programming
    Replies: 11
    Last Post: 11-23-2010, 01:29 PM
  2. Script errors - bool unrecognized and struct issues
    By ulillillia in forum Windows Programming
    Replies: 10
    Last Post: 12-18-2006, 04:44 AM
  3. Why Linux, for the average user?
    By Hunter2 in forum A Brief History of Cprogramming.com
    Replies: 32
    Last Post: 07-07-2006, 02:36 PM
  4. Why can't Windows run Linux binary executables?
    By Kleid-0 in forum Tech Board
    Replies: 30
    Last Post: 12-04-2005, 11:44 PM
  5. Linux and Windows Duel Boot
    By The15th in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-26-2002, 04:59 AM