Hello Friends,
I am new to this project. I was researching for a mp3 decoder and happen to find mad project, I think this is the right one for me. Thanks for doing this great project, quite complex indeed!.
I downloaded the necessary files from sourceforge.net, like,... libid3tag-0.15.1b.tar.gz libmad-0.15.1b.tar.gz madplay-0.15.2b.tar.gz zlib123.zip And opened the project file, madplay.dsw, unfortunately it complained that could not find the zlib1.1.4 project files, so I separately dowloaded the latest zlib123 version from their website. From what I could infer so far is that, 1. zlib and libmad are independent projects with no dependency, zlib is created as Windows DLL project, and libmad as a Static Library project. 2. libid3tag depends upon zlib for compilation and compiles to a static library project. 3. Madplay, compiles to a Win32 Console project and depends upon the 2 static libraries, viz., libid3tag and libmad static libraries.
So in Visual Studio I have one solution contains 4 projects, namely libid3tag, libmad, zlib and madplay.
I did setup the project-properties with proper "additional include directories" and also added new references for both libid3tag (that depends upon zlib) and madplay (that depends upon libid3tag and libmad).
So far zlib, libid3tag and libmad projects compiled successfuly with zero errors, and I could see that their library files are present in their own ./Debug directories.
Now I tried to Build the madplay project, but I always get the following linker errors, 58 of them:
Build Log Build started: Project: madplay, Configuration: Debug|Win32 Command Lines Creating temporary file "d:\Profiles\sas040\My Documents\Year2006\my_univs\CmpE207_Fall2006\soundfiles\mad_project\madplay-0.15.2b\msvc++\Debug\RSP00000930923260.rsp" with contents [ /OUT:".\Debug/madplay.exe" /INCREMENTAL /LIBPATH:"D:\Profiles\sas040\My Documents\Year2006\my_univs\CmpE207_Fall2006\soundfiles\mad_project\libmad-0.15.1b" /LIBPATH:"D:\Profiles\sas040\My Documents\Year2006\my_univs\CmpE207_Fall2006\soundfiles\mad_project\libid3tag-0.15.1b" /MANIFEST /MANIFESTFILE:".\Debug\madplay.exe.intermediate.manifest" /DEBUG /PDB:".\Debug/madplay.pdb" /SUBSYSTEM:CONSOLE /MACHINE:X86 odbc32.lib odbccp32.lib winmm.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ".\Debug\audio.obj" ".\Debug\audio_aiff.obj" ".\Debug\audio_cdda.obj" ".\Debug\audio_hex.obj" ".\Debug\audio_null.obj" ".\Debug\audio_raw.obj" ".\Debug\audio_snd.obj" ".\Debug\audio_wave.obj" ".\Debug\audio_win32.obj" ".\Debug\crc.obj" ".\Debug\filter.obj" ".\Debug\getopt.obj" ".\Debug\getopt1.obj" ".\Debug\madplay.obj" ".\Debug\player.obj" ".\Debug\resample.obj" ".\Debug\rgain.obj" ".\Debug\strcasecmp.obj" ".\Debug\strncasecmp.obj" ".\Debug\tag.obj" ".\Debug\version.obj" ".\Debug\madplay.exe.embed.manifest.res" ] Creating command line "link.exe @"d:\Profiles\sas040\My Documents\Year2006\my_univs\CmpE207_Fall2006\soundfiles\mad_project\madplay-0.15.2b\msvc++\Debug\RSP00000930923260.rsp" /NOLOGO /ERRORREPORT:PROMPT" Output Window Linking... filter.obj : error LNK2019: unresolved external symbol _mad_timer_fraction referenced in function _fadein_filter player.obj : error LNK2001: unresolved external symbol _mad_timer_fraction filter.obj : error LNK2019: unresolved external symbol _mad_timer_set referenced in function _fadein_filter madplay.obj : error LNK2001: unresolved external symbol _mad_timer_set player.obj : error LNK2001: unresolved external symbol _mad_timer_set filter.obj : error LNK2019: unresolved external symbol _mad_timer_count referenced in function _fadein_filter player.obj : error LNK2001: unresolved external symbol _mad_timer_count filter.obj : error LNK2019: unresolved external symbol _mad_timer_negate referenced in function _fadein_filter madplay.obj : error LNK2001: unresolved external symbol _mad_timer_negate player.obj : error LNK2001: unresolved external symbol _mad_timer_negate filter.obj : error LNK2019: unresolved external symbol _mad_timer_add referenced in function _fadein_filter madplay.obj : error LNK2001: unresolved external symbol _mad_timer_add player.obj : error LNK2001: unresolved external symbol _mad_timer_add filter.obj : error LNK2019: unresolved external symbol _mad_timer_compare referenced in function _fadein_filter madplay.obj : error LNK2001: unresolved external symbol _mad_timer_compare player.obj : error LNK2001: unresolved external symbol _mad_timer_compare madplay.obj : error LNK2001: unresolved external symbol _mad_timer_zero player.obj : error LNK2001: unresolved external symbol _mad_timer_zero player.obj : error LNK2019: unresolved external symbol _mad_timer_abs referenced in function _player_run player.obj : error LNK2019: unresolved external symbol _mad_timer_string referenced in function _play_one player.obj : error LNK2019: unresolved external symbol _id3_file_close referenced in function _play_one player.obj : error LNK2019: unresolved external symbol _id3_file_tag referenced in function _play_one player.obj : error LNK2019: unresolved external symbol _id3_file_fdopen referenced in function _play_one player.obj : error LNK2019: unresolved external symbol _mad_bit_read referenced in function _process_id3 rgain.obj : error LNK2001: unresolved external symbol _mad_bit_read tag.obj : error LNK2001: unresolved external symbol _mad_bit_read player.obj : error LNK2019: unresolved external symbol _mad_bit_init referenced in function _process_id3 player.obj : error LNK2019: unresolved external symbol _id3_field_getbinarydata referenced in function _process_id3 player.obj : error LNK2019: unresolved external symbol _id3_field_getlatin1 referenced in function _process_id3 player.obj : error LNK2019: unresolved external symbol _id3_ucs4_latin1duplicate referenced in function _process_id3 player.obj : error LNK2019: unresolved external symbol _id3_field_getstrings referenced in function _process_id3 player.obj : error LNK2019: unresolved external symbol _id3_field_getnstrings referenced in function _process_id3 player.obj : error LNK2019: unresolved external symbol _id3_frame_field referenced in function _process_id3 player.obj : error LNK2019: unresolved external symbol _id3_tag_findframe referenced in function _process_id3 player.obj : error LNK2019: unresolved external symbol _id3_field_getfullstring referenced in function _show_id3 player.obj : error LNK2019: unresolved external symbol _id3_field_getstring referenced in function _show_id3 player.obj : error LNK2019: unresolved external symbol _id3_genre_name referenced in function _show_id3 player.obj : error LNK2019: unresolved external symbol _mad_decoder_finish referenced in function _decode player.obj : error LNK2019: unresolved external symbol _mad_decoder_run referenced in function _decode player.obj : error LNK2019: unresolved external symbol _mad_decoder_init referenced in function _decode player.obj : error LNK2019: unresolved external symbol _mad_stream_buffer referenced in function _decode_input_read player.obj : error LNK2019: unresolved external symbol _mad_timer_multiply referenced in function _decode_filter player.obj : error LNK2019: unresolved external symbol _mad_frame_mute referenced in function _decode_error player.obj : error LNK2019: unresolved external symbol _mad_stream_errorstr referenced in function _decode_error player.obj : error LNK2019: unresolved external symbol _mad_stream_skip referenced in function _decode_error player.obj : error LNK2019: unresolved external symbol _id3_tag_delete referenced in function _decode_error player.obj : error LNK2019: unresolved external symbol _id3_tag_query referenced in function _decode_error player.obj : error LNK2019: unresolved external symbol _id3_tag_parse referenced in function _get_id3 resample.obj : error LNK2019: unresolved external symbol _mad_f_div referenced in function _resample_init tag.obj : error LNK2019: unresolved external symbol _mad_bit_skip referenced in function _tag_parse tag.obj : error LNK2019: unresolved external symbol _mad_bit_nextbyte referenced in function _parse_lame version.obj : error LNK2001: unresolved external symbol _id3_build version.obj : error LNK2001: unresolved external symbol _id3_copyright version.obj : error LNK2001: unresolved external symbol _id3_version version.obj : error LNK2001: unresolved external symbol _mad_build version.obj : error LNK2001: unresolved external symbol _mad_copyright version.obj : error LNK2001: unresolved external symbol _mad_version .\Debug/madplay.exe : fatal error LNK1120: 44 unresolved externals Results Build log was saved at "file://d:\Profiles\sas040\My Documents\Year2006\my_univs\CmpE207_Fall2006\soundfiles\mad_project\madplay-0.15.2b\msvc++\Debug\BuildLog.htm" madplay - 58 error(s), 0 warning(s)
I don't know what I am doing wrong. Please help me to solve the problem. Your time and help is greatly appreciated.
If you like to see all the files, I can zip them up and send to you.
Thanks and Regards, S.Sridhar. Sunday, 29/Octobler/2006.
--------------------------------- Want to start your own business? Learn how on Yahoo! Small Business.