#151658 - Alphanoob - Sun Mar 02, 2008 1:07 am
Ok, so I am learning how to put .bmp files into my programs, and I am trying to compile a demo that the guide supplied. when I go into bash and tell it to make the file, it prints: "No rule to make target 'Thumbs.db.o'". Anybody know what I do to fix it? I think it is one of those environment variable things, but I don't know where i am supposed to tell it to go.
#151659 - tepples - Sun Mar 02, 2008 1:21 am
Alphanoob wrote: |
Ok, so I am learning how to put .bmp files into my programs, and I am trying to compile a demo that the guide supplied. when I go into bash and tell it to make the file, it prints: "No rule to make target 'Thumbs.db.o'". Anybody know what I do to fix it? |
The "Thumbs.db" file is an invisible file that Windows creates when you view a folder as thumbnails. To fix it, first turn off thumbnail view in your project folder. Then open a command prompt, cd into the folder containing your project, then del /s /a thumbs.db
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#151773 - Alphanoob - Tue Mar 04, 2008 9:40 pm
Thanks, that worked and the program ran. As usual though, I ran into another problem, and I really hope that this one is as easy to fix as that last one. So, I ran it and it displayed its pic... and then I tried to insert my own bitmap file. Well, I put the thing into the data folder, and changed beerguy_bmp or whatever to smiley_bmp and ran it. I had just whipped up a yellow smiley face on a blue background in paint... and the whole screen turned blue... no smiley face!!! It is a sad thing that my DS cant smile, and I am wondering how to remedy this problem.
#151774 - tepples - Tue Mar 04, 2008 9:41 pm
Alphanoob wrote: |
and then I tried to insert my own bitmap file. Well, I put the thing into the data folder, and changed beerguy_bmp or whatever to smiley_bmp and ran it. I had just whipped up a yellow smiley face on a blue background in paint... and the whole screen turned blue... no smiley face!!! |
Do you know how many bits per pixel (1, 4, 8, or 24) are in each of the bitmaps you mentioned?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#151775 - Alphanoob - Tue Mar 04, 2008 9:46 pm
The original one had a bit depth of 8. Mine was 24. Is that my problem?
#151802 - dantheman - Wed Mar 05, 2008 1:52 am
From my limited experience with GBA programming, it probably is a problem. Try opening it up in the free IrFanView program and changing the depth with the appropriate option in the Image menu. Don't use dithering unless you want the effect.
#151808 - Alphanoob - Wed Mar 05, 2008 4:03 am
Never heard of that one, where can I find it, and is it a very big program?
#151810 - dantheman - Wed Mar 05, 2008 4:36 am
http://www.irfanview.com/
Relatively small download, but it seems to be available only in installer packages, despite the fact that it can run uninstalled (from a USB thumb drive for instance).
#151811 - Alphanoob - Wed Mar 05, 2008 4:42 am
thanks dude, this is gonna help a lot (I hope)
#151849 - Alphanoob - Wed Mar 05, 2008 11:32 pm
it worked like a charm =).