Trouble compiling Mp3test

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
User avatar
RyoDC
Mental DCEmu
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

Post by RyoDC »

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.
How do I try to build a Dreamcast toolchain:
Image
User avatar
PH3NOM
DC Developer
DC Developer
Posts: 576
Joined: Fri Jun 18, 2010 9:29 pm
Has thanked: 0
Been thanked: 5 times

Re: Trouble compiling Mp3test

Post by PH3NOM »

Assuming you only have those warnings when compiled, the example should still run fine, otherwise it probably wouldn't even compile.

Code: Select all

mp3_start("/rd/test.mp3",0);
Have you placed a "test.mp3" into the /romdisk/ folder when you compile?
User avatar
RyoDC
Mental DCEmu
Mental DCEmu
Posts: 366
Joined: Wed Mar 30, 2011 12:13 pm
Has thanked: 2 times
Been thanked: 0

Re: Trouble compiling Mp3test

Post by RyoDC »

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:
Image
User avatar
PH3NOM
DC Developer
DC Developer
Posts: 576
Joined: Fri Jun 18, 2010 9:29 pm
Has thanked: 0
Been thanked: 5 times

Re: Trouble compiling Mp3test

Post by PH3NOM »

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:
Image

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
User avatar
RyoDC
Mental DCEmu
Mental DCEmu
Posts: 366
Joined: Wed Mar 30, 2011 12:13 pm
Has thanked: 2 times
Been thanked: 0

Re: Trouble compiling Mp3test

Post by RyoDC »

Just because nothing happens on-screen, does not mean nothing is happening, at all.
Yes, I understand this.
Anyway, this is what i get:
Image
How do I try to build a Dreamcast toolchain:
Image
Ayla
DC Developer
DC Developer
Posts: 142
Joined: Thu Apr 03, 2008 7:01 am
Has thanked: 0
Been thanked: 4 times
Contact:

Re: Trouble compiling Mp3test

Post by Ayla »

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.
User avatar
RyoDC
Mental DCEmu
Mental DCEmu
Posts: 366
Joined: Wed Mar 30, 2011 12:13 pm
Has thanked: 2 times
Been thanked: 0

Re: Trouble compiling Mp3test

Post by RyoDC »

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:
Image
How do I try to build a Dreamcast toolchain:
Image
User avatar
BlueCrab
The Crabby Overlord
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

Post by BlueCrab »

RyoDC wrote:So how then other supposed players played it? File is easily played by other players (all, if being exactly).
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.
And, by the way, I've this problem during the compilation of Zelda ROTH:
Image
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.
User avatar
RyoDC
Mental DCEmu
Mental DCEmu
Posts: 366
Joined: Wed Mar 30, 2011 12:13 pm
Has thanked: 2 times
Been thanked: 0

Re: Trouble compiling Mp3test

Post by RyoDC »

SDL not comes with the KOS? From which times?
How do I try to build a Dreamcast toolchain:
Image
User avatar
Indiket
DC Developer
DC Developer
Posts: 99
Joined: Sun Sep 05, 2010 5:44 am
Has thanked: 0
Been thanked: 0

Re: Trouble compiling Mp3test

Post by Indiket »

SDL not comes with the KOS? From which times?
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:

Code: Select all

svn://emuforge.com/kosports
Last edited by Indiket on Sat Oct 01, 2011 12:32 pm, edited 1 time in total.
Ayla
DC Developer
DC Developer
Posts: 142
Joined: Thu Apr 03, 2008 7:01 am
Has thanked: 0
Been thanked: 4 times
Contact:

Re: Trouble compiling Mp3test

Post by Ayla »

I do have kos/addons/lib/dreamcast/libSDL_image_124.a here.
But maybe I added it manually, it's been a while...
User avatar
RyoDC
Mental DCEmu
Mental DCEmu
Posts: 366
Joined: Wed Mar 30, 2011 12:13 pm
Has thanked: 2 times
Been thanked: 0

Re: Trouble compiling Mp3test

Post by RyoDC »

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:
I do have kos/addons/lib/dreamcast/libSDL_image_124.a here.
Thank you guys, thank you guys a lot. I didn't know that.
Hope that helps anyway.
How do I try to build a Dreamcast toolchain:
Image
User avatar
RyoDC
Mental DCEmu
Mental DCEmu
Posts: 366
Joined: Wed Mar 30, 2011 12:13 pm
Has thanked: 2 times
Been thanked: 0

Re: Trouble compiling Mp3test

Post by RyoDC »

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:
Image
User avatar
Indiket
DC Developer
DC Developer
Posts: 99
Joined: Sun Sep 05, 2010 5:44 am
Has thanked: 0
Been thanked: 0

Re: Trouble compiling Mp3test

Post by Indiket »

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.
Last edited by Indiket on Tue Oct 04, 2011 6:59 am, edited 1 time in total.
User avatar
RyoDC
Mental DCEmu
Mental DCEmu
Posts: 366
Joined: Wed Mar 30, 2011 12:13 pm
Has thanked: 2 times
Been thanked: 0

Re: Trouble compiling Mp3test

Post by RyoDC »

Binary files? you mean 1st_read.bin?
How do I try to build a Dreamcast toolchain:
Image
Post Reply