Go to the FreeLists Home Page Home Signup Help Login
 



Browse haiku: This Month's ArchiveMain Archive PageRelated postsPrevious by DateNext by Date

[openbeos] Re: cross building

  • From: Michael Noisternig <michael.noisternig@xxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Mon, 31 Mar 2003 16:23:49 +0200
Building the kernel from Linux/Unix should not be too hard. Building the kernel from Windows can be a lot trickier, dependent on which way you go.
The first step is to install an environment for cross-compilation from Windows -> Linux. There the easy way is to install Cygwin, a complete Unix environment for Windows, and build everything from there.
The harder way is the DJGPP way, in which case you must first compile GCC as a cross-compiler from DJGPP -> Linux/ELF yourself, including BinUtils for ELF output. This is really tricky because the DJGPP build is broken, so you must fix this yourself. Once you have managed this, you need to download the various unix shell tools from the djgpp site and you're ready to compile. Make sure you have the necessary environment variables (e.g. HOSTTYPE) set before.
The second step is to get Jam working. The problem there is the command line length limit of Windows. I'm not sure if it is long enough in the NT series but it definitely is not in Windows 95/98. One solution for this is to modify the Jam sources so the input doesn't get fed to command.com or cmd.exe but to the Unix shell tool sh.exe.
One last problem left to mention... there are some file name clashes in Windows, so you must also fix these, e.g. by renaming/removing the conflicting files in headers/os/support.


Hope that helps,
Michael Noisternig

Leon Timmermans wrote:
From which OS's, other than BeOS can we build?
Linux? *BSD?
Are modifications to gcc/ld required for that?
Has anyone tried to build from Windows?
DJGPP can make ELF I'm told, but I never tried this.
Leon Timmermans


Other related posts:

  • [openbeos] cross building
  • [openbeos] Re: cross building
  • [openbeos] Re: cross building
  • [openbeos] Re: cross building
  • [openbeos] Re: cross building
  • [openbeos] Re: cross building
  • [openbeos] Re: cross building
  • [openbeos] Re: cross building
  • [openbeos] Re: cross building




  • [ Home | Signup | Help | Login | Archives | Lists ]

    All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
    Everything else ©2008 Avenir Technologies, LLC.