Page 1 of 1

how to compile from source code??

Posted: Sat May 03, 2008 3:14 pm
by shrikant
can i know the methods to compile an operating system from its source code??

how do make file runs?

Posted: Sat May 03, 2008 3:16 pm
by JamesM
Look at the README file.

Posted: Sat May 03, 2008 3:21 pm
by shrikant
if it doesnot contain the readme file then....??? :x

Posted: Sat May 03, 2008 3:45 pm
by JamesM
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?

Posted: Sat May 03, 2008 4:08 pm
by shrikant
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?

Posted: Sat May 03, 2008 4:58 pm
by iammisc
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.

Posted: Sat May 03, 2008 7:14 pm
by JackScott
General method for compiling pretty much everything:

Code: Select all

./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.

Posted: Sun May 04, 2008 1:06 am
by xyzzy
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.

Posted: Sun May 04, 2008 1:08 am
by JackScott
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.

Posted: Sun May 04, 2008 4:51 am
by JamesM
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!)

Posted: Sun May 25, 2008 12:50 am
by HJED
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.