OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Apr 27, 2024 12:57 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: how to compile from source code??
PostPosted: Sat May 03, 2008 3:14 pm 
Offline

Joined: Sat May 03, 2008 3:05 pm
Posts: 9
can i know the methods to compile an operating system from its source code??

how do make file runs?


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 03, 2008 3:16 pm 
Offline
Member
Member
User avatar

Joined: Tue Jul 10, 2007 5:27 am
Posts: 2935
Location: York, United Kingdom
Look at the README file.

_________________
Horizon - a framework and language for SAS-OS development
Project 'Pedigree'
Practical x86 OSDev tutorials


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 03, 2008 3:21 pm 
Offline

Joined: Sat May 03, 2008 3:05 pm
Posts: 9
if it doesnot contain the readme file then....??? :x


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 03, 2008 3:45 pm 
Offline
Member
Member
User avatar

Joined: Tue Jul 10, 2007 5:27 am
Posts: 2935
Location: York, United Kingdom
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?

_________________
Horizon - a framework and language for SAS-OS development
Project 'Pedigree'
Practical x86 OSDev tutorials


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 03, 2008 4:08 pm 
Offline

Joined: Sat May 03, 2008 3:05 pm
Posts: 9
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?


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 03, 2008 4:58 pm 
Offline
Member
Member

Joined: Thu Nov 09, 2006 6:23 pm
Posts: 269
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 03, 2008 7:14 pm 
Offline
Member
Member
User avatar

Joined: Thu Dec 21, 2006 3:03 am
Posts: 1029
Location: Hobart, Australia
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.

_________________
My Personal Blog | My Software Company - Loop Foundry | My Github Page


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 04, 2008 1:06 am 
Offline
Member
Member

Joined: Wed Jul 25, 2007 8:45 am
Posts: 391
Location: London, UK
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.

_________________
http://alex-smith.me.uk


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 04, 2008 1:08 am 
Offline
Member
Member
User avatar

Joined: Thu Dec 21, 2006 3:03 am
Posts: 1029
Location: Hobart, Australia
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.

_________________
My Personal Blog | My Software Company - Loop Foundry | My Github Page


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 04, 2008 4:51 am 
Offline
Member
Member
User avatar

Joined: Tue Jul 10, 2007 5:27 am
Posts: 2935
Location: York, United Kingdom
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!)

_________________
Horizon - a framework and language for SAS-OS development
Project 'Pedigree'
Practical x86 OSDev tutorials


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 25, 2008 12:50 am 
Offline
Member
Member

Joined: Tue Sep 04, 2007 4:18 am
Posts: 61
Location: the world wide web
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.

_________________
.................................. um what should i put here .............................?..........................................
..... :D................


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group