Trouble compiling Mp3test
- RyoDC
- Mental DCEmu
- Posts: 366
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Wed Mar 30, 2011 12:13 pm
- Has thanked: 2 times
- Been thanked: 0
Trouble compiling Mp3test
While compiling get these warnings:
"implicit declaration of mp3_init, mp3_start, mp3_shutdown."
how to get rid of them?
and the example don't run, of course.
"implicit declaration of mp3_init, mp3_start, mp3_shutdown."
how to get rid of them?
and the example don't run, of course.
How do I try to build a Dreamcast toolchain:
- PH3NOM
- DC Developer
- Posts: 576
- Joined: Fri Jun 18, 2010 9:29 pm
- Has thanked: 0
- Been thanked: 5 times
Re: Trouble compiling Mp3test
Assuming you only have those warnings when compiled, the example should still run fine, otherwise it probably wouldn't even compile.
Have you placed a "test.mp3" into the /romdisk/ folder when you compile?
Code: Select all
mp3_start("/rd/test.mp3",0);
- RyoDC
- Mental DCEmu
- Posts: 366
- Joined: Wed Mar 30, 2011 12:13 pm
- Has thanked: 2 times
- Been thanked: 0
Re: Trouble compiling Mp3test
Yes of course. It was a shortened sample of Madonna 'Everybody' mp3. (i cut in audacity).
How do I try to build a Dreamcast toolchain:
- PH3NOM
- DC Developer
- Posts: 576
- Joined: Fri Jun 18, 2010 9:29 pm
- Has thanked: 0
- Been thanked: 5 times
Re: Trouble compiling Mp3test
Hmm, Its hard to say what is wrong with what little information you have provided.
Run in NullDC, and look at the command line window to see what is going on, maybe you can print screen so we can look at it.
This is an example of what I mean:
Just because nothing happens on-screen, does not mean nothing is happening, at all.
Also, you might want to try the K:OS oggvorbis example to see if that works for you.
Or, you could even try compiling the stand-alone FLAC decoder I released a little while back:
http://www.megaupload.com/?d=FSQ9CWO0
Run in NullDC, and look at the command line window to see what is going on, maybe you can print screen so we can look at it.
This is an example of what I mean:
Just because nothing happens on-screen, does not mean nothing is happening, at all.
Also, you might want to try the K:OS oggvorbis example to see if that works for you.
Or, you could even try compiling the stand-alone FLAC decoder I released a little while back:
http://www.megaupload.com/?d=FSQ9CWO0
- RyoDC
- Mental DCEmu
- Posts: 366
- Joined: Wed Mar 30, 2011 12:13 pm
- Has thanked: 2 times
- Been thanked: 0
Re: Trouble compiling Mp3test
Yes, I understand this.Just because nothing happens on-screen, does not mean nothing is happening, at all.
Anyway, this is what i get:
How do I try to build a Dreamcast toolchain:
-
- DC Developer
- Posts: 142
- Joined: Thu Apr 03, 2008 7:01 am
- Has thanked: 0
- Been thanked: 4 times
- Contact:
Re: Trouble compiling Mp3test
It is pretty clear to me. The header is not recognized, maybe because audacity did not re-create a valid header when you cut your song.
- RyoDC
- Mental DCEmu
- Posts: 366
- Joined: Wed Mar 30, 2011 12:13 pm
- Has thanked: 2 times
- Been thanked: 0
Re: Trouble compiling Mp3test
So how then other supposed players played it? File is easily played by other players (all, if being exactly).
And, by the way, I've this problem during the compilation of Zelda ROTH:
And, by the way, I've this problem during the compilation of Zelda ROTH:
How do I try to build a Dreamcast toolchain:
- BlueCrab
- The Crabby Overlord
- Posts: 5666
- Joined: Mon May 27, 2002 11:31 am
- Location: Sailing the Skies of Arcadia
- Has thanked: 9 times
- Been thanked: 69 times
- Contact:
Re: Trouble compiling Mp3test
Because a lot of players will accept junk and actually attempt to play it. Your file is not able to be read properly so its most likely corrupted. That is your problem.RyoDC wrote:So how then other supposed players played it? File is easily played by other players (all, if being exactly).
You're missing the library its talking about. That's not one that comes with KOS, so you have to find it and get it compiled yourself.
- RyoDC
- Mental DCEmu
- Posts: 366
- Joined: Wed Mar 30, 2011 12:13 pm
- Has thanked: 2 times
- Been thanked: 0
Re: Trouble compiling Mp3test
SDL not comes with the KOS? From which times?
How do I try to build a Dreamcast toolchain:
Re: Trouble compiling Mp3test
SDL comes in kos-ports, but not SDL_image and SDL_mixer (which are separate libraries). You can get the last version of them at the SVN of emuforge:SDL not comes with the KOS? From which times?
Code: Select all
svn://emuforge.com/kosports
Last edited by Indiket on Sat Oct 01, 2011 12:32 pm, edited 1 time in total.
-
- DC Developer
- Posts: 142
- Joined: Thu Apr 03, 2008 7:01 am
- Has thanked: 0
- Been thanked: 4 times
- Contact:
Re: Trouble compiling Mp3test
I do have kos/addons/lib/dreamcast/libSDL_image_124.a here.
But maybe I added it manually, it's been a while...
But maybe I added it manually, it's been a while...
- RyoDC
- Mental DCEmu
- Posts: 366
- Joined: Wed Mar 30, 2011 12:13 pm
- Has thanked: 2 times
- Been thanked: 0
Re: Trouble compiling Mp3test
SDL comes in kos-ports, but not SDL_image and SDL_mixer (which are separate libraries). You can get the last version of them at the SVN of emuforge:
Thank you guys, thank you guys a lot. I didn't know that.I do have kos/addons/lib/dreamcast/libSDL_image_124.a here.
Hope that helps anyway.
How do I try to build a Dreamcast toolchain:
- RyoDC
- Mental DCEmu
- Posts: 366
- Joined: Wed Mar 30, 2011 12:13 pm
- Has thanked: 2 times
- Been thanked: 0
Re: Trouble compiling Mp3test
Well, the solution was fairly simple... I've just renamed my libraries in the lib folder, gave them a correct names, and all started to compile.. but, after I made the cd, nothing did wanted to run on emulator. funny. i think it's a good idea to forget about a dreamcast programming to the end of my days, or maybe 'till the time a better emulator would be released.
How do I try to build a Dreamcast toolchain:
Re: Trouble compiling Mp3test
Instead of renaming libraries (awful), it's better to change the libraries in the Makefile.
Did you check that the rest of the files are in the CDI when you do the cd? Maybe it's just that the binary can't find them.
Did you check that the rest of the files are in the CDI when you do the cd? Maybe it's just that the binary can't find them.
Last edited by Indiket on Tue Oct 04, 2011 6:59 am, edited 1 time in total.