QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Need some help.

This is a discussion on Need some help. within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Could someone please compile this version of luaplayer for me? I want to see if my mp3 implamentation to luaplayer ...

Reply
 
LinkBack Thread Tools
Old 05-24-2006, 06:54 PM   #1

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default Need some help.

Could someone please compile this version of luaplayer for me? I want to see if my mp3 implamentation to luaplayer works, yet my cygwin is on the fritz for some reason. If someone can compile it, could you post the compiled stuff here please.
Attached Files
File Type: rar LuaPlayer.rar‎ (980.4 KB, 3 views)
__________________

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!

Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -

Last edited by alatnet; 05-24-2006 at 07:05 PM..
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-24-2006, 07:06 PM   #2

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

...3 things wrong with this...

1. You need to cough up X amount of $ to do something like this...
2. Who ever DOES post it here will probably be fined or something that amount of money since there publically distributing it
3. Cygwin cant be on the fritz... The toolchain can how ever...
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-24-2006, 07:09 PM   #3

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default

Well when i try to compile it, it gives me alot of errors pertaining to undefined functions like fseek and fopen. I don't know what's wrong, and i'm trying to get luaplayer the much needed mp3 functions that hasn't been implamented in a long time.
__________________

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!

Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-24-2006, 07:10 PM   #4
 
Yeldarb's Avatar
 
Join Date: Jul 2005
Posts: 984
Trader Feedback: 0
Default

It wouldn't compile for me either; I'd guess the problem isn't with the toolchain
__________________
[url=http://www.barbdwyer.com/footer.php][img]http://www.barbdwyer.com/8Ball.jpg[/img][/url]
[FONT=Verdana][SIZE=1]
[b]PSP Developer Resource Site:[/b] [url=http://www.psp-programming.com]PSP-Programming.com[/url]

[b]Other:[/b] [url=http://wake-boarding.org]Wakeboarding[/url], [url=http://water-skiing.org]Waterskiing[/url], [url=http://wake-surfing.org]Wake Surfing[/url], [url=http://www.guitarhero-4.com]Guitar Hero IV[/url][/SIZE][/FONT]
Yeldarb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-24-2006, 07:14 PM   #5

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default

Seems that i can't post the errors that i have but here's a few from the list that i have gotten:

src/graphics.o: In function `isJpegFile':
src/graphics.cpp:64: undefined reference to `strcasecmp'
src/graphics.cpp:64: undefined reference to `strcasecmp'
src/graphics.o: In function `loadPngImage(char const*)':
src/graphics.cpp:87: undefined reference to `malloc'
src/graphics.cpp:90: undefined reference to `fopen'
src/graphics.cpp:91: undefined reference to `png_create_read_struct'
src/graphics.cpp:93: undefined reference to `free'
src/graphics.cpp:94: undefined reference to `fclose'
src/graphics.cpp:97: undefined reference to `png_set_error_fn'
src/graphics.cpp:98: undefined reference to `png_create_info_struct'
src/graphics.cpp:100: undefined reference to `free'
src/graphics.cpp:101: undefined reference to `fclose'
src/graphics.cpp:102: undefined reference to `png_destroy_read_struct'
src/graphics.cpp:105: undefined reference to `png_init_io'
src/graphics.cpp:106: undefined reference to `png_set_sig_bytes'
src/graphics.cpp:107: undefined reference to `png_read_info'
src/graphics.cpp:108: undefined reference to `png_get_IHDR'
src/graphics.cpp:110: undefined reference to `free'
src/graphics.cpp:111: undefined reference to `fclose'
src/graphics.cpp:112: undefined reference to `png_destroy_read_struct'
src/graphics.cpp:119: undefined reference to `png_set_strip_16'
src/graphics.cpp:120: undefined reference to `png_set_packing'
src/graphics.cpp:121: undefined reference to `png_set_palette_to_rgb'
src/graphics.cpp:122: undefined reference to `png_set_gray_1_2_4_to_8'
src/graphics.cpp:123: undefined reference to `png_get_valid'
src/graphics.cpp:123: undefined reference to `png_set_tRNS_to_alpha'
src/graphics.cpp:124: undefined reference to `png_set_filler'
src/graphics.cpp:125: undefined reference to `memalign'
src/graphics.cpp:127: undefined reference to `free'
src/graphics.cpp:128: undefined reference to `fclose'
src/graphics.cpp:129: undefined reference to `png_destroy_read_struct'
src/graphics.cpp:132: undefined reference to `malloc'
src/graphics.cpp:134: undefined reference to `free'
src/graphics.cpp:135: undefined reference to `free'
src/graphics.cpp:136: undefined reference to `fclose'
src/graphics.cpp:137: undefined reference to `png_destroy_read_struct'
src/graphics.cpp:141: undefined reference to `png_read_row'
src/graphics.cpp:147: undefined reference to `free'
src/graphics.cpp:148: undefined reference to `png_read_end'
src/graphics.cpp:149: undefined reference to `png_destroy_read_struct'
src/graphics.cpp:150: undefined reference to `fclose'
src/graphics.o: In function `loadJpegImage(char const*)':
src/graphics.cpp:158: undefined reference to `jpeg_std_error'
src/graphics.cpp:159: undefined reference to `jpeg_CreateDecompress'
src/graphics.cpp:160: undefined reference to `fopen'
src/graphics.cpp:162: undefined reference to `jpeg_destroy_decompress'
src/graphics.cpp:165: undefined reference to `jpeg_stdio_src'
src/graphics.cpp:166: undefined reference to `jpeg_read_header'
src/graphics.cpp:169: undefined reference to `jpeg_start_decompress'
src/graphics.cpp:170: undefined reference to `malloc'
src/graphics.cpp:172: undefined reference to `jpeg_destroy_decompress'
src/graphics.cpp:173: undefined reference to `fclose'
src/graphics.cpp:180: undefined reference to `memalign'
src/graphics.cpp:181: undefined reference to `malloc'
src/graphics.cpp:183: undefined reference to `jpeg_destroy_decompress'
src/graphics.cpp:184: undefined reference to `fclose'
src/graphics.cpp:190: undefined reference to `jpeg_read_scanlines'
src/graphics.cpp:199: undefined reference to `jpeg_read_scanlines'
src/graphics.cpp:209: undefined reference to `jpeg_finish_decompress'
src/graphics.cpp:210: undefined reference to `jpeg_destroy_decompress'
src/graphics.cpp:211: undefined reference to `free'
src/graphics.cpp:212: undefined reference to `fclose'
src/graphics.o: In function `createImage(int, int)':
src/graphics.cpp:293: undefined reference to `malloc'
src/graphics.cpp:299: undefined reference to `memalign'
src/graphics.o: In function `freeImage(Image*)':
src/graphics.cpp:307: undefined reference to `free'
src/graphics.cpp:308: undefined reference to `free'
src/graphics.o: In function `savePngImage(char const*, unsigned int*, int, int, int, int)':


Are these some of the errors you have been getting?
__________________

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!

Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-24-2006, 07:59 PM   #6
 
Yeldarb's Avatar
 
Join Date: Jul 2005
Posts: 984
Trader Feedback: 0
Default

Quote:
$ make
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -g -G0 -Wall -O0 -fno-strict-ali
asing -mno-explicit-relocs -I/usr/include/freetype2 -I. -I/usr/local/pspdev/psp
/sdk/include -g -G0 -Wall -O0 -fno-strict-aliasing -mno-explicit-relocs -I/usr/
include/freetype2 -fno-exceptions -fno-rtti -c -o src/luasystem.o src/luasyste
m.cpp
src/luasystem.cpp: In function 'int lua_usbDeactivate(lua_Sta te*)':
/usr/local/pspdev/psp/sdk/include/pspusb.h:62: error: too many arguments to func
tion 'int sceUsbDeactivate()'
src/luasystem.cpp:226: error: at this point in file
make: *** [src/luasystem.o] Error 1
I got more the first time. But this is all I get now.
__________________
[url=http://www.barbdwyer.com/footer.php][img]http://www.barbdwyer.com/8Ball.jpg[/img][/url]
[FONT=Verdana][SIZE=1]
[b]PSP Developer Resource Site:[/b] [url=http://www.psp-programming.com]PSP-Programming.com[/url]

[b]Other:[/b] [url=http://wake-boarding.org]Wakeboarding[/url], [url=http://water-skiing.org]Waterskiing[/url], [url=http://wake-surfing.org]Wake Surfing[/url], [url=http://www.guitarhero-4.com]Guitar Hero IV[/url][/SIZE][/FONT]
Yeldarb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-24-2006, 08:06 PM   #7

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

I have already tried about a month ago. The errors you are getting is because of missing libraries. Also, yeldarb, the error you are getting is because of the usb oolchain changing. You need to add the usbactivate param to the usbdeactivate command.

Again, I have tried this, and I cannot get libmad working. I tried it on .19
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth

Last edited by youresam; 05-25-2006 at 07:38 AM..
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-24-2006, 08:17 PM   #8

Developer
 
Join Date: Mar 2006
Posts: 1,026
Trader Feedback: 0
Default

Compiled your source for you mate (release15 option).

http://www.psp-programming.com/animate/LuaPlayerMP3.rar
Insert_Witty_Name is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 04:38 AM   #9

Rock Star
 

 
Join Date: Aug 2005
Location: CT| FW: 4.01 M33-2
Posts: 11,844
Trader Feedback: 0
Default

Well then he seems to have gotten it. Im at school and it can't test it, but if it actually works, thats awesome, Ill definately be using it.
__________________

TeamOverload is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 04:43 AM   #10

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default

Quote:
Originally Posted by Insomniac197
Compiled your source for you mate (release15 option).

http://www.psp-programming.com/animate/LuaPlayerMP3.rar
Great! Now, im gona have to downgrade(in a good way)...
__________________

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!

Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 07:37 AM   #11

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

Does it work? I remember I got mine compiled, but the commands didnt do anything.
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 08:37 AM   #12

Developer
 
Join Date: Mar 2006
Posts: 1,026
Trader Feedback: 0
Default

Sorry I didn't test it, just compiled it.

If you give me a run down of the commands, or maybe a short sample script, I'd be more than happy to give it a go.
Insert_Witty_Name is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 10:48 AM   #13

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

Quote:
Originally Posted by Insomniac197
Sorry I didn't test it, just compiled it.

If you give me a run down of the commands, or maybe a short sample script, I'd be more than happy to give it a go.
put this in a lua file and put mp3.mp3 in the same folder.


MP3.init()
MP3.load("mp3.mp3")
MP3.play()

When I made MP3 into luaplayer, the commands did nothing. I could run them, but they did nothing.
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 10:56 AM   #14

Psp Dev
 
MikePiP's Avatar
 
Join Date: Jun 2005
Location: Nebraska
Posts: 228
Trader Feedback: 0
Default

I tried it and I got MP3 is a nil vaule.
__________________


http://www.myspace.com/mikee_mo
MikePiP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 11:24 AM   #15

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

Quote:
Originally Posted by MikePiP
I tried it and I got MP3 is a nil vaule.
Well, I thought it was MP3 because it had MP3_Functions[]

Sound? Music? I dont know. When I did mine, I put it in System since my mp3.cpp was giving me errors.
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 11:31 AM   #16

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default

Ok, back from school with a freshly downgraded psp!
gona open up ttlde and see if the mp3 functions are their.
__________________

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!

Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 11:49 AM   #17

Developer
 
Join Date: Mar 2006
Posts: 1,026
Trader Feedback: 0
Default

Keep us informed alatnet, keeping a close eye on this thread.

If you need anymore help compiling stuff, just give me a shout.
Insert_Witty_Name is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 11:52 AM   #18

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default

It seems that it doesn't show up and work. Looks like im gona have to do some more searching on c\c++ lua implamentation methods.
__________________

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!

Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 11:58 AM   #19

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default

I think i may have fixed it.
Try compiling it using this luasound.cpp file instead of the first one.
Hopefully this will fix the MP3 is nil thing.

also, pass a 1 to the init mp3 function.
Attached Files
File Type: rar luasound.rar‎ (1.8 KB, 2 views)
__________________

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!

Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -

Last edited by alatnet; 05-25-2006 at 12:01 PM..
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 12:12 PM   #20

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default

Quote:
Originally Posted by Insomniac197
Sorry I didn't test it, just compiled it.

If you give me a run down of the commands, or maybe a short sample script, I'd be more than happy to give it a go.
static const luaL_reg MP3_functions[] = {
{"init", MP3_init_cus},
{"play", MP3_play_cus},
{"stop", MP3_stop_cus},
{"pause", MP3_pause_cus},
{"end", MP3_end_cus},
{"freetune", MP3_freetune_cus},
{"load", MP3_load_cus},
{"time", MP3_gettimestring_cus},
{"endofstream", MP3_endofstream_cus},
{0, 0}
};


These are the functions i have implamented. The "end" mp3 function, i have no idea what it does.
__________________

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!

Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 12:26 PM   #21

Developer
 
Join Date: Mar 2006
Posts: 1,026
Trader Feedback: 0
Default

Errors:

src/luasound.cpp: In function 'int MP3_gettimestring_cus(lua _State*)':
src/luasound.cpp:80: warning: control reaches end of non-void function
src/luasound.o: In function `MP3_init_cus':
src/luasound.cpp:17: undefined reference to `MP3_Init'
src/luasound.o: In function `MP3_play_cus':
src/luasound.cpp:25: undefined reference to `MP3_Play'
src/luasound.o: In function `MP3_pause_cus':
src/luasound.cpp:32: undefined reference to `MP3_Pause'
src/luasound.o: In function `MP3_stop_cus':
src/luasound.cpp:39: undefined reference to `MP3_Stop'
src/luasound.o: In function `MP3_end_cus':
src/luasound.cpp:46: undefined reference to `MP3_End'
src/luasound.o: In function `MP3_freetune_cus':
src/luasound.cpp:53: undefined reference to `MP3_FreeTune'
src/luasound.o: In function `MP3_load_cus':
src/luasound.cpp:69: undefined reference to `MP3_Load'
src/luasound.o: In function `MP3_gettimestring_cus':
src/luasound.cpp:78: undefined reference to `MP3_GetTimeString'
src/luasound.o: In function `MP3_endofstream_cus':
src/luasound.cpp:86: undefined reference to `MP3_EndOfStream'
collect2: ld returned 1 exit status
make: *** [luaplayer.elf] Error 1
rm src/exports.c

Dev@blp-216000732fc ~/projects/luaplayermp3/luaplayer
$
Insert_Witty_Name is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 12:37 PM   #22

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

Those errors mean that mp3player.h was not included in the headers, right?
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 12:38 PM   #23

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default

Here another slight fix, i guess i forgot to add "return 0;" at the end of the gettime function and forgot to add "mp3player.o" to the makefile.psp.common.

Also, it seems that the "newtoolchain" perl script is not leting me reinstall the pspsdk. Gona try the other script.
Attached Files
File Type: rar luamp3fix2.rar‎ (2.5 KB, 1 views)
__________________

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!

Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 12:42 PM   #24

Developer
 
Join Date: Mar 2006
Posts: 1,026
Trader Feedback: 0
Default

Quote:
Originally Posted by youresam
Those errors mean that mp3player.h was not included in the headers, right?
I tried that first, wasn't that.

[EDIT] Trying it alatnet...
Insert_Witty_Name is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 12:56 PM   #25

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default

b4 you compile it, change "return 0;" to "return 1;" in the MP3_gettimestring_cus function.
__________________

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!

Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 01:05 PM   #26

Developer
 
Join Date: Mar 2006
Posts: 1,026
Trader Feedback: 0
Default

src/mp3player.o: In function `MP3Callback':
src/mp3player.c:327: undefined reference to `mad_stream_buffer'
src/mp3player.c:359: undefined reference to `mad_frame_decode'
src/mp3player.c:367: undefined reference to `mad_stream_errorstr'
src/mp3player.c:375: undefined reference to `mad_stream_errorstr'
src/mp3player.c:402: undefined reference to `mad_timer_add'
src/mp3player.c:415: undefined reference to `mad_synth_frame'
src/mp3player.o: In function `MP3_Init':
src/mp3player.c:476: undefined reference to `mad_stream_init'
src/mp3player.c:477: undefined reference to `mad_frame_init'
src/mp3player.c:478: undefined reference to `mad_synth_init'
src/mp3player.c:479: undefined reference to `mad_timer_zero'
src/mp3player.c:479: undefined reference to `mad_timer_zero'
src/mp3player.c:479: undefined reference to `mad_timer_zero'
src/mp3player.c:479: undefined reference to `mad_timer_zero'
src/mp3player.o: In function `MP3_FreeTune':
src/mp3player.c:498: undefined reference to `mad_frame_finish'
src/mp3player.c:499: undefined reference to `mad_stream_finish'
src/mp3player.c:536: undefined reference to `mad_timer_string'
src/mp3player.o: In function `MP3_GetTimeString':
src/mp3player.c:624: undefined reference to `mad_timer_string'
collect2: ld returned 1 exit status
make: *** [luaplayer.elf] Error 1
rm src/exports.c

Dev@blp-216000732fc ~/projects/luaplayermp3/luaplayer
$

They're part of libmad right?

Last edited by Insomniac197; 05-25-2006 at 01:20 PM..
Insert_Witty_Name is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 01:25 PM   #27

Developer
 
Join Date: Mar 2006
Posts: 1,026
Trader Feedback: 0
Default

Had an idea, back in two secs....
Insert_Witty_Name is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 01:26 PM   #28

PSP Developer
 
alatnet's Avatar
 
Join Date: Oct 2005
Real First Name: Alex
Location: ~* Confidential *~
Just Played: N/A
Posts: 839
Trader Feedback: 0
Default

CRAP! Give me a few minutes to sort that.

[EDIT]
Quote:
Originally Posted by Insomniac197
src/mp3player.o: In function `MP3Callback':
src/mp3player.c:327: undefined reference to `mad_stream_buffer'
src/mp3player.c:359: undefined reference to `mad_frame_decode'
src/mp3player.c:367: undefined reference to `mad_stream_errorstr'
src/mp3player.c:375: undefined reference to `mad_stream_errorstr'
src/mp3player.c:402: undefined reference to `mad_timer_add'
src/mp3player.c:415: undefined reference to `mad_synth_frame'
src/mp3player.o: In function `MP3_Init':
src/mp3player.c:476: undefined reference to `mad_stream_init'
src/mp3player.c:477: undefined reference to `mad_frame_init'
src/mp3player.c:478: undefined reference to `mad_synth_init'
src/mp3player.c:479: undefined reference to `mad_timer_zero'
src/mp3player.c:479: undefined reference to `mad_timer_zero'
src/mp3player.c:479: undefined reference to `mad_timer_zero'
src/mp3player.c:479: undefined reference to `mad_timer_zero'
src/mp3player.o: In function `MP3_FreeTune':
src/mp3player.c:498: undefined reference to `mad_frame_finish'
src/mp3player.c:499: undefined reference to `mad_stream_finish'
src/mp3player.c:536: undefined reference to `mad_timer_string'
src/mp3player.o: In function `MP3_GetTimeString':
src/mp3player.c:624: undefined reference to `mad_timer_string'
collect2: ld returned 1 exit status
make: *** [luaplayer.elf] Error 1
rm src/exports.c

Dev@blp-216000732fc ~/projects/luaplayermp3/luaplayer
$

They're part of libmad right?
yea, i think.

Quote:
Originally Posted by Insomniac197
Had an idea, back in two secs....
What's the idea?
__________________

"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!

Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -

Last edited by alatnet; 05-25-2006 at 01:30 PM..
alatnet is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 01:30 PM   #29

Developer
 
Join Date: Mar 2006
Posts: 1,026
Trader Feedback: 0
Default

got it to compile by adding -lmad to makefile.psp.common

LIBS= -llua -llualib -lpng -ljpeg -lz -lpspgum -lm -lmikmod -lmmio $(shell freetype-config --libs) \
-lmad -lpspaudiolib -lpspaudio -lpspusb -lpspusbstor -lpsppower \
-lpspwlan -lpspgu -lpspdebug -lpsphprm_driver


However it crashed my PSP when I loaded it (Lua Player crashed, never even got to test the script!)
Insert_Witty_Name is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-25-2006, 01:35 PM   #30
Yummy Apple's
 
Dan!'s Avatar
 
Join Date: Jan 2006
Location: Chatham, Ontario
Posts: 1,026
Trader Feedback: 0
Default

lol i would try but i dont no a thing what ur trying 2 do! sorry,
__________________
[CENTER][IMG]http://img1.imageshack.us/img1/5719/dansigon9.png[/IMG]
[/CENTER]
[COLOR="Gray"][CENTER]MOD EDIT: sorry homie, no large advertising around these parts...[/CENTER][/COLOR]
Dan! is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 08:40 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us