Page 2 of 2
Posted: Thu Mar 04, 2010 5:26 pm
by Chilly Willy
Look over the examples in the devkit, then read through the Genesis docs, then ask questions when you run into something you don't understand after reading the docs.
Think of it like reading a book where you need a dictionary to understand some of the words - if you HAVE a dictionary on hand, people get pissed off if you keep asking what words mean instead of using the dictionary FIRST.

Posted: Fri Mar 05, 2010 7:11 am
by Alex Khan
Chilly I promise I have spent one week trying to get the Stef Kit to copulate with my IDE.
I even e-mailed Stef personally.
I have spent night and day trying to get it to work.
Then I came to these forums and started firing questions.

Posted: Fri Mar 05, 2010 7:24 am
by Shiru
Why you so depends on IDE? You don't really need it, you could develop large project without using IDE at all. The only thing you need, to make the work more comfortable, is programming-oriented text editor - with syntax highlight, and optionally with feature for running external programs by hotkey.
Posted: Fri Mar 05, 2010 6:13 pm
by Chilly Willy
I pointed out Geany, which is a nice editor. As far as the devkit goes, as long as the makefile tells the compiler where to find the includes and object files you use with the program, you're fine. I always put my stuff in a location relative to the toolchain to make it easy to find. Then cut and past common lines from one makefile to the next. Like
Code: Select all
INCS = -I$(GENDEV)/m68k/include -I$(GENDEV)/m68k/sdk/include -I.
FLAGS = $(OPTION) -m68000 -Wall -O1 -c -fomit-frame-pointer $(INCS)
LIBS = -L$(GENDEV)/m68k/lib -L$(GENDEV)/m68k/sdk/lib -lmd -lgcc
Remember that -I<path> tells gcc what path to look along for includes, and -L<path> tells the linker the path to look along for libraries.
Posted: Sun Mar 07, 2010 8:02 pm
by Alex Khan
Shiru wrote:Why you so depends on IDE? You don't really need it, you could develop large project without using IDE at all. The only thing you need, to make the work more comfortable, is programming-oriented text editor - with syntax highlight, and optionally with feature for running external programs by hotkey.
Yes Shiru I just found this out ... Chilly recommended geany to me.
Chilly,
I have geany installed this is exciting news, you mean I don't have to use all these IDE's?
Okay I've been studying BEX and the Basic language for two months now so ... I have to make this game with BEX I can't switch gears and jump into C I've invested too much time in this.
So Stef Kit is out for now.
Chilly can you please advise me on how to get geany to work with allegro?
The stuff people are doing with Allegro is fantastic. I was going to do windows games with VB but I spent a few months studying C.
So ... yeah Chilly please give me a few pointers on how to integrate geany and allegro?
Man ... if John Carmack can make games without a degree maybe I can pull something off.

Posted: Sun Mar 07, 2010 11:10 pm
by Chilly Willy
You don't integrate an IDE with libraries. Libraries are what a programmer uses to make his code simpler. When writing a program, you use calls to the libraries instead of writing large amounts of code to do something similar. So using allegro has to do with how you write code, not what you use to edit said code.
If you wish to use allegro, you need to read the docs that come with allegro. By the way, there's currently no port of allegro for the Genesis. There is for the Dreamcast. So Genesis programs cannot use allegro at all.
Remember, Geany is basically just a text editor with some extra features. It is up to the programmer to actually write the programs. No IDE will write a program for you.
Posted: Wed Mar 10, 2010 3:44 pm
by Alex Khan
Chilly!
Hmmmm ... I understand Library is for calls to functions on the Library mkaing a programmer's life easier [Understood]
Chilly, I am wanting to use Geany with allegro like so ....
http://wiki.allegro.cc/index.php?title=Geany
Not for Genesis stuff but Windows game programming.
What do you think of the above link?
Posted: Wed Mar 10, 2010 6:43 pm
by Chilly Willy
That's just telling you how to build the Allegro libraries from within Geany. You could also do the same thing from the mingw shell, or just get prebuilt Allegro libraries.
Posted: Fri Mar 12, 2010 3:55 pm
by Alex Khan
I took your advice downloaded Dev C++ and installed it's dev pack allegro library.
Darn easy to use!
I tried Geany ... how ever I am having this error when I execute a build
Example:
#include <iostream>
using namespace std;
void main()
{
cout << "Hello World!" << endl; cout << "Welcome to C++ Programming" << endl; }
Error in Dos Window:
'"./hello"' is not recognized as an internal or external command.
Yeah I included the .cpp file in the project.
What gives?
By the way Chilly if put pascal source code or even basic source code into Geany it would still compile right?
Posted: Fri Mar 12, 2010 5:42 pm
by Chilly Willy
"./" is the current directory in unix style, and "hello" is the name of the app you compiled. Windows doesn't like unix style paths. You need to use a Windows style path, or change to a mingw/cygwin shell which DOES understand unix style paths.
For Pascal or BASIC, you need a Pascal or BASIC compiler. Geany is just an editor - it doesn't compile anything itself. In the prefs, you can set external apps for things like building.
Posted: Thu Apr 01, 2010 8:14 pm
by Stef
I finally fixed the images as my site gone back :
viewtopic.php?p=2718
Posted: Mon Apr 05, 2010 6:20 pm
by Alex Khan
Very Nice Stef!
Thank You!
