OSDev.org
https://forum.osdev.org/

how to compile from source code??
https://forum.osdev.org/viewtopic.php?f=13&t=16934
Page 1 of 1

Author:  shrikant [ Sat May 03, 2008 3:14 pm ]
Post subject:  how to compile from source code??

can i know the methods to compile an operating system from its source code??

how do make file runs?

Author:  JamesM [ Sat May 03, 2008 3:16 pm ]
Post subject: 

Look at the README file.

Author:  shrikant [ Sat May 03, 2008 3:21 pm ]
Post subject: 

if it doesnot contain the readme file then....??? :x

Author:  JamesM [ Sat May 03, 2008 3:45 pm ]
Post subject: 

Well, the build system used by each OS will be different... :roll:

How are we supposed to know how to compile it without knowing what it is you want compiling?

Author:  shrikant [ Sat May 03, 2008 4:08 pm ]
Post subject: 

ya u r right sir......but their must be a basic method.
suppose i hv written the codes bt dnt knw how to compile n run.thn what i hv to do?

Author:  iammisc [ Sat May 03, 2008 4:58 pm ]
Post subject: 

If you're going to ask a question can you stop using abbrvtns :!: :roll:

Anyway, let me get this straight: you wrote an operating system but don't know how to compile it. If so, then you should really spend more time learning your programming language inside out rather than diving into os dev which is really advanced.

Author:  JackScott [ Sat May 03, 2008 7:14 pm ]
Post subject: 

General method for compiling pretty much everything:
Code:
./configure (can be optional)
make
make install


If that doesn't work, you're going to have to be more specific with what you are compiling.

Author:  xyzzy [ Sun May 04, 2008 1:06 am ]
Post subject: 

I don't think many hobby OSes will have an install target. Some also require you to run a configuration utility first, Linux and my OS need you do do make menuconfig/config/etc. to create a config file.

shrikant: If you've written code and don't know how to even compile it, I suggest you learn more about the language you are using and the basics of software development before even attempting to try OS dev.

Author:  JackScott [ Sun May 04, 2008 1:08 am ]
Post subject: 

In my makefile, I have a target redirection (not sure what the proper name is, dependency maybe) from make-image to install, just so it's UNIX-like. I don't have a ./configure, but I do have am inc/config.h.

Author:  JamesM [ Sun May 04, 2008 4:51 am ]
Post subject: 

The reason I didn't mention the standard autoconf/automake compile commands is that AFAIK most operating systems don't use autoconf, as (a) it is horrible and (b) was designed for compiling hosted apps, and levering it around to compile an OS is not an easy task (Been there, done that!)

Author:  HJED [ Sun May 25, 2008 12:50 am ]
Post subject: 

if it your code get a compiler and compile and link the code like you would normally do for any radome program.

if its somebody elses code ask them or browses the site you got the code from.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/