#79565 - Jau - Fri Apr 14, 2006 10:56 am
Hello, in the Krawall Developers Handbook it says I have to use a conversion tool that converts my .s3m file into this files: samples.s, samples.h, instruments.s, instruments.h, modules.h and a *.s for each module.
But I use the conversion tool that comes with Krawall ("converter.exe") and I only get one file: a .s with the same name as the .s3m.
How can I get all the files?
Thanks
#79589 - tepples - Fri Apr 14, 2006 12:53 pm
(guess) All the files may be present only if you convert more than one .s3m file, as there's no incentive to make a unified sample bank.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#79867 - gauauu - Sun Apr 16, 2006 4:46 pm
tepples wrote: |
(guess) All the files may be present only if you convert more than one .s3m file, as there's no incentive to make a unified sample bank. |
Nope, it still generates the headers if you only have 1 s3m. The header files give you names for all your samples and modules.....
The other files should be appering. A few things to check:
1. are you running converter.exe from a different directory than where your s3m's are sitting? if so, see if it spat anything into that directory
2. Make sure all your s3m files can be handled by krawall...that they are proper s3m's and use only 8 bit samples.
3. check the generated .s file for the s3m.....so we can see if it generated correctly. Does it seem to have data in it? Does it define a global variable named after your s3m at the beginning of the file?
#79877 - sumiguchi - Sun Apr 16, 2006 6:39 pm
What is the output of the converter?
#79882 - Jau - Sun Apr 16, 2006 7:18 pm
#79912 - gauauu - Mon Apr 17, 2006 1:58 am
Looks like you have path issues....if you open the secondpm.s and look at the global name for your mod, you will see that it's got that whole path in there.
Where is your s3m located relative to your converter.exe, and from what directory and using what command line do you run it?
#79952 - Jau - Mon Apr 17, 2006 4:59 pm
Thanks, I have solved the problem by calling converter.exe from the cmd command line instead of doing it directly by Windows.
But now the problem is, when i try to compile this is the output i get:
HAM Krawall subsystem: found NO input files (.s3m or .xm), not linking the library.
-----------------------------
...
main.o(.text+0x7bc): In function `main':
: undefined reference to `kragInit'
main.o(.text+0x7c4): In function `main':
: undefined reference to `krapPlay'
#80012 - gauauu - Tue Apr 18, 2006 2:16 am
At which point in the compiling/linking do you get this?
(i.e when you compile the assembly files produced by converter.exe? )
#80086 - Jau - Tue Apr 18, 2006 6:50 pm
I'm not sure, this is what i get when i try to compile the entire project:
e:/Documents/Jaume/ham/gcc-arm/bin/arm-thumb-elf-gcc.exe -I e:/Documents/Jaume/ham/gcc-arm/include -I e:/Documents/Jaume/ham/gcc-arm/arm-thumb-elf/include -I e:/Documents/Jaume/ham/include -I e:/Documents/Jaume/ham/system -c -DHAM_HAM -DHAM_MULTIBOOT -DHAM_ENABLE_MBV2LIB -O2 -DHAM_WITH_LIBHAM -mthumb-interwork -mlong-calls -Wall -save-temps -fverbose-asm -nostartfiles main.c -o main.o
main.c:42: warning: type defaults to `int' in declaration of `bola_y'
main.c:42: warning: data definition has no type or storage class
main.c:65: warning: return type defaults to `int'
main.c: In function `init_mapa_bricks':
main.c:80: warning: control reaches end of non-void function
main.c: In function `main':
main.c:216: warning: suggest parentheses around + or - inside shift
main.c:217: warning: suggest parentheses around + or - inside shift
-----------------------------
HAM Krawall subsystem: found NO input files (.s3m or .xm), not linking the library.
-----------------------------
e:/Documents/Jaume/ham/gcc-arm/bin/arm-thumb-elf-ld.exe -L e:/Documents/Jaume/ham/gcc-arm/lib/gcc-lib/arm-thumb-elf/3.3.2/interwork -L e:/Documents/Jaume/ham/gcc-arm/lib/gcc-lib/arm-thumb-elf/3.3.2 -L e:/Documents/Jaume/ham/gcc-arm/arm-thumb-elf/lib/interwork -L e:/Documents/Jaume/ham/gcc-arm/arm-thumb-elf/lib -L e:/Documents/Jaume/ham/gcc-arm/lib --script e:/Documents/Jaume/ham/system/lnkscript-krawall -o breakout3d2.elf crt0.o main.o secondpm.o -lham -lm -lstdc++ -lsupc++ -lgcc -lc -lgcc
main.o(.text+0x7bc): In function `main':
: undefined reference to `kragInit'
main.o(.text+0x7c4): In function `main':
: undefined reference to `krapPlay'
make: *** [breakout3d2.elf] Error 1
#80090 - thegamefreak0134 - Tue Apr 18, 2006 7:23 pm
Wow.
What's your e-mail address? I can send you a demo package I used to get my Krawall working. It's pretty easy to sub your own code in in place of his. Course, I still use DevKitAdv, so you may have to mod the makefile a little if you use something else.
_________________
What if the hokey-pokey really is what it's all about?
[url=http:/www.darknovagames.com/index.php?action=recruit&clanid=1]Support Zeta on DarkNova![/url]
#80097 - Jau - Tue Apr 18, 2006 7:52 pm
Thanks, my adress is jaume_f@wanadoo.es, although I'm no good understanding how makefiles work, but i'll try anyway. By the way, i use ham and visual ham instead of dev kit advance.
#87935 - Jau - Fri Jun 16, 2006 4:33 pm
any ideas of a solution? Thanks
#87946 - thegamefreak0134 - Fri Jun 16, 2006 5:43 pm
Not really, now that you throw ham into the mix. I hear tell that ham isn't the best in the world. Easy for starters, but a little bug laden and limiting, no? (someone yell if I'm wrong) Perhaps switching your project to DevKit (still using ham includes) would be your best bet.
_________________
What if the hokey-pokey really is what it's all about?
[url=http:/www.darknovagames.com/index.php?action=recruit&clanid=1]Support Zeta on DarkNova![/url]