gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > clear tail lights

#71952 - iut - Wed Feb 15, 2006 4:19 pm

Thanks for all the interesting information on Doug's films--23? Hours? Leave does seem like one of the more important items in his canon and I hope it turns up complete some day The AFI catalogue rep
what would happen if I just ran dbupdater again I ran it again on Thursday after figuring out the internet went bad and then did the auto-threads again but it didnt seem to fix anything Was i too
A certain currently-red-head-for-the-holiday-season cackled oh so meancingly as she stood a few feet in front of the tree Silly boys, she cooed, I never had much of a grip on sanity
Tried on Sat from 10am -2:30pm...really, really slow Drifted several places south of JFK...nothing Finally fished the west side of ICW and got 8 dink trout and one small pinfish between the two of


Last edited by iut on Tue Sep 07, 2010 3:26 pm; edited 2 times in total

#71954 - Cearn - Wed Feb 15, 2006 4:48 pm

An elf file is the result of linking all the object files together.

The build process looks something like this
  • compile: converts .c/.cpp to .o
  • link: grabs all the .o and .a (libraries) and creates a .elf
  • translate: removes all non-essential parts from a .elf and creates a .gba that can actually be run on a GBA .... at least, after you ...
  • fix the header: which, well, fixes the header of the .gba file.
Somehow '../projet' seems more like a directory, not a filename. The makefile is looking for filenames. Can't point to an exact cause for this as I don't know the particulars of your project, but my guess is that you didn't enter the source files (.c or .cpp) correctly. Look at some of the samples that came with VHAM and see what you're doing differently.

#72121 - iut - Thu Feb 16, 2006 3:48 pm

We convert .c to .o but we don't have .a

When we created our project , we can create and compile a new project but the project tetris can't be compilated.
We don't understand why.

We use to visualham, is what the problem comes from there.

#72125 - Cearn - Thu Feb 16, 2006 4:01 pm

iut wrote:
We convert .c to .o but we don't have .a

Yes you do have .a, they're just part of the toolchain itself and linked automatically.

iut wrote:
When we created our project , we can create and compile a new project but the project tetris can't be compilated.
We don't understand why.

We use to visualham, is what the problem comes from there.

Without knowing more about the project itself, there's little we can do to help you. Something is missing from your project but unless you tell use what the project's files are we're flying blind. We need to see the makefile, and maybe the list of files that you are using (which should be in the makefile). The error-message mentions '../projet'. What is that? Directory? File? Plane? Train? Automobile? Figuring out why it's looking for it might bring you one step closer.

#72126 - iut - Thu Feb 16, 2006 4:23 pm

We have download sources into this website
In gba/c/c++

We have download 4 or 5 sources on tetris and all have the same mistake.
He need .elf
We are beginners in programmation in gba and we want create a tetris on the subject of mario.
But before we want to understand how that functions

#72133 - Cearn - Thu Feb 16, 2006 4:59 pm

You mean you grabbed tetris sources from gbadev.org? Is that what you meant by gba/c/c++. OK, misunderstood that. Mind you, I don't think those use HAM directly, but that shouldn't matter.

*tests*
I just created a VHAM project with the first tetris source I could find (by Choopan (which you shouldn't use to learn tetris from as it uses the bitmap modes for it instead of tile modes). Compiles and runs just fine. You made a mistake in your VHAM configuration somewhere and it has something to do with '../projet'. Find out where it crops up in the makefile and in your project and mention that here.

Here's what I did to get a working compile:
  • Create a new VHAM project (File/New Project) in the tetris directory. An empty project.
  • Add sources. Add the source files from tetris to the project (right-click on the workspace window, use 'Add Files'). If VHAM made a 'main.c' for you too, you have to remove it from the project (Menu:Project/Makefile/General/Files to Compile).
  • Compile. You'll get a bunch fo warnings but it should compile just fine.
It occurs to me that you might have a space in the path and that maybe why it's wrong. You can't have something like 'c:/blah/project foo.c'. Spaces in paths are evil. Yes, Microsoft uses them often as well in their default paths, but that only proves my point.

There's nothing wrong with the sources themselves. Well there is, but not in terms of compilability. The trouble is something with how you've set up the project and unless you give us some details on that, we can't help you.

Consider moving away from VHAM, grab a tutorial and learn a few things about how to set up your own build scripts and the basics of GBA programming. If you're interested in learning how tetris works, also consider TOD, which is probably the best version you'll come across.

#72141 - deltree - Thu Feb 16, 2006 5:20 pm

a question to IUT: (in french)
de quel IUT est tu ?
s'agit il d'un projet d'?tude ?

translate:
----------
what IUT are you from ?
is that a school project ?

#72307 - iut - Fri Feb 17, 2006 2:51 pm

je suis de l'iut informatique d'amiens
C'est effectivement pour un projet.

I'm from the informatic iut of amiens
It's for a school projet

#72314 - Voelker - Fri Feb 17, 2006 4:48 pm

Salut je suis en ?cole d'ing? a Nantes, et je bosse sur un projet ? base de Game Boy, si tu veux que je t'aide contacte moi par Message Priv?, je te filerai mon MSN.
Ca fait du bien de voir des fran?ais sur les forums.



TRANSATION:

Hi, i'am studying IT in Nantes, and i' working on a GBA based project. If you need any help, contact me by private message.
It's good to see some french on the forum

#72422 - iut - Sat Feb 18, 2006 1:29 pm

Voelker tu peux me contacter a newjojo@hotmail.fr
J'aurais bien besoin d'un ptit coup de main
surtout pour la compilation merci

Voelker you can contact me on newjojo@hotmail.fr
I need help for the compilation
thanks

#72626 - deltree - Mon Feb 20, 2006 4:42 pm

Good to see that.
I did a IUT in computer science, (progamming) but unfortunatly, I failed to pass the exam.
Actually, I was more interested in programming games than programming what I was told to program (boring program with Cobol, or other), and nothing I worked on at the IUT was related to game or even graphics or sound.

For now, I would like to try a new IUT , maybe SRC (network communication science), or new studies related to it, where I could learn new game programming tech, and be more confident about it.

#72762 - iut - Tue Feb 21, 2006 2:48 pm

If you want a iut i propose you iut "imagerie num?rique"
if you are interested in programming games this iut is for you
the first year you learn many languages
and the second years you do lot of things
that Network, php-mysql, matlab etc....

It's very interssant