Page 1 of 4
[?]Help Making OS [?] (Linker Error)
Posted: Mon Jan 12, 2009 6:26 pm
by GeniusCobyWalker
I have read "Getting Started, Bare Bones" but still don't get it.
I would prefer to use C++, I don't have a ton of C++ experience so I might need help.
I already have MS Visual Studio installed (C++ configured for OpenGL and Glut)
"Getting Started" sounds like suggestions to me. Can someone help me out or Tell me what to do?
Also how do I set all this up? (You don't have to suggest something, tell me how to do one and I will)
I stopped about a year ago, so don't remember anything (Also couldn't find help a year ago)
Thanks
Re: [?]Help Starting OS [?] (OS ayuda para empezar)
Posted: Mon Jan 12, 2009 6:36 pm
by JamesM
GeniusCobyWalker wrote:I have read "Getting Started, Bare Bones" but still don't get it.
I would prefer to use C++, I don't have a ton of C++ experience so I might need help.
I already have MS Visual Studio installed (C++ configured for OpenGL and Glut)
"Getting Started" sounds like suggestions to me. Can someone help me out or Tell me what to do?
Also how do I set all this up? (You don't have to suggest something, tell me how to do one and I will)
I stopped about a year ago, so don't remember anything (Also couldn't find help a year ago)
Thanks
Describe what you don't get.
Be specific, and we will provide specific answers. You know from the fact that your last thread was locked that we ask people to do the required reading first - you've done some of it but there are many resources you missed. Go back and look at them again.
Re: [?]Help Starting OS [?]
Posted: Mon Jan 12, 2009 6:42 pm
by GeniusCobyWalker
"Getting Sarted"
"Choosing your development environment"
Visual Studio Express (C++)
How do I set it up with this?
I got CYGWIN before and could never Uninstall it (NEVER doing that again)
Re: [?]Help Starting OS [?] (OS ayuda para empezar)
Posted: Mon Jan 12, 2009 6:45 pm
by PatrickV
Hello
Good to see that you want to make your own operating system. Look like you are having trouble understanding what to do. C++ is the most difficult or requires much work. For you the best bet is c langauge. What Bare Bones is showing you how start of your kernel in a few ways and C++ is one of them. Although the code has comments, you still don'y understand. The best bet is get some c language skills under belt. Now how do you put together your os kernel. well we use compilers,assemblers and linkers. That is far as i can help at this stage unless you refine or be more specific to your questions. Just remember building your os is not like a walk in the park. I found out the hard way.
Just keep on looking at wiki and some operating system kernels for examples. Here is a link you can goto
http://www.osdever.net
Re: [?]Help Starting OS [?]
Posted: Mon Jan 12, 2009 7:21 pm
by Troy Martin
Or, here's another plan: grab a linux distro, a separate partition or drive, install it, and use it for developing. Ubuntu is real user-friendly.
Re: [?]Help Starting OS [?]
Posted: Mon Jan 12, 2009 7:31 pm
by neon
Someone should probably update what the getting started article says with regards to MSVC++. A configuation file is not required.
Anyways, I recommend going with the language that you have the most experience and in depth knowledge in as you will certainly need to know it. If you dont have much experience in C++, then I would go with C instead.
Whatever you choose, the first step is always the booting stage. Either decide to write your own or use an existing boot loader (GRUB is usually recommended for this.) Afterwords you can worry about using a higher level language for your OS and deciding the build environment and tool chain for your kernel or OS-specific loading program.
Re: [?]Help Starting OS [?]
Posted: Mon Jan 12, 2009 7:49 pm
by JohnnyTheDon
Or, here's another plan: grab a linux distro, a separate partition or drive, install it, and use it for developing. Ubuntu is real user-friendly.
Or, if you don't want to mess with partitions, run Ubuntu in a virtual machine (like VirtualBox).
Re: [?]Help Starting OS [?]
Posted: Mon Jan 12, 2009 8:37 pm
by Troy Martin
JohnnyTheDon wrote:Or, here's another plan: grab a linux distro, a separate partition or drive, install it, and use it for developing. Ubuntu is real user-friendly.
Or, if you don't want to mess with partitions, run Ubuntu in a virtual machine (like VirtualBox).
I run Ubuntu in Virtual PC (huuge mistake, should find a vhd to vdi converter.
)
Re: [?]Help Starting OS [?]
Posted: Tue Jan 13, 2009 3:23 pm
by GeniusCobyWalker
Sorry Guess I forgot to mention I have a
Vista,
Xp,
Ubuntu Triple boot.
Would it be easier to develop on
Ubuntu?
Or are more tools available for
Ubuntu?
I'm familiar with it too. But no programming tools on my
Ubuntu.
(Would actually prefer to use
Ubuntu)
(Why didn't I think of that before?)
Tell me what
Ubuntu programs to get.
Thanks
Re: [?]Help Starting OS [?]
Posted: Tue Jan 13, 2009 3:30 pm
by JohnnyTheDon
What you need for Ubuntu OS Dev:
Compiler/Linker:
gcc, ld, etc. - build-essential package
binutils - binutils package
Editor:
gedit - already installed
Emulator:
bochs - bochs package
OR
qemu - qemu package
Download these packages (either with Synaptic or 'sudo apt-get install' ) and you should be good to go.
Learn how to use makefiles, as they will make building very easy.
Re: [?]Help Starting OS [?]
Posted: Tue Jan 13, 2009 3:54 pm
by Love4Boobies
Well, they are pretty much the same. I recommend GCC, NASM (well, that's me), Bochs.
Re: [?]Help Starting OS [?]
Posted: Tue Jan 13, 2009 4:02 pm
by JohnnyTheDon
Oh yeah forgot about the assembler *facepalm*
Get nasm or yasm. There is only really a difference when developing 64-bit OSes. Last time I checked, nasm won't create 64-bit ELFs (though this may have changed).
Re: [?]Help Starting OS [?]
Posted: Tue Jan 13, 2009 4:06 pm
by Love4Boobies
Hmm... I didn't see that someone replied before I did so half (yeah, I know, don't start counting) the things I suggested were already there... /facepalm
Re: [?]Help Starting OS [?]
Posted: Tue Jan 13, 2009 5:11 pm
by Troy Martin
I use as from binutils for loader.s from the barebones kernel (well, techinically could be done in C) since it's AT&T syntax, like the inline asm (but I prefer Intel syntax since it's more readable imho!)
Re: [?]Help Starting OS [?]
Posted: Tue Jan 13, 2009 5:23 pm
by Love4Boobies
You do realise that you can use Intel syntax with as as well, right?