----- Original Message ----- From: "Michael Noisternig" <michael.noisternig@xxxxxxxxx> To: <openbeos@xxxxxxxxxxxxx> Sent: Monday, March 31, 2003 4:23 PM Subject: [openbeos] Re: cross building > 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. Buiding from cygwin probably is not more easy than building from DJGPP. I do have Cygwin BTW. It is pretty usefull at times (when you need a decent telnet, or a decent cvs), but its libraries are a mess. No other program gives me 'Library X not found' errors that often. My cvs stopped working when I recently updated it. > 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. No, Gcc outputs assembler, Only binutils needs to be recompiled. Recompiling gcc is pretty bad (ever tried to compile gcc3.2.x with gcc2.7.3.4? its impossible) binutils is a lot easier fortunately. > 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. That's 2 minutes of work. > 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. There is only one way to find that out.... I think I'll try it. You'll hear the results as soon as I fixed my cvs........ > 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 > > > >