realmckoy01 / audioscout

Automatically exported from code.google.com/p/audioscout
GNU General Public License v3.0
0 stars 0 forks source link

How should i deal with mpg123 sndfile samplerate and zmp? #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

   I am trying to build audioscout on mingw , but I have got some problem dealing the mpg123 sndfile samplerate and zmp components.
   I have build all these components and get the .h file and libxxx.dll.Then where should I place these file?As I have got the following problems:

Linking C shared library libAudioData.dll
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot fi
d -lsndfile
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot fi
d -lmpg123
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot fi
d -lsamplerate
c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot fi
d -lzmq
collect2: ld returned 1 exit status
make[2]: *** [libs/libAudioData.dll] Error 1
make[1]: *** [libs/CMakeFiles/AudioData.dir/all] Error 2
make: *** [all] Error 2

Original issue reported on code.google.com by 379764...@qq.com on 19 Mar 2013 at 9:11

GoogleCodeExporter commented 9 years ago
I think I have solved the problem by adding these libs to usr/lib.

Original comment by 379764...@qq.com on 19 Mar 2013 at 9:27

GoogleCodeExporter commented 9 years ago
I put them in the regular mingw/bin directory.  When compiling them, be sure to 
use

./configure --prefix=/mingw
make
make install

I don't think the linker will pick them up in /usr/lib.  

Original comment by starkd88@gmail.com on 19 Mar 2013 at 2:50

GoogleCodeExporter commented 9 years ago
   Now,I got another prolem.
   Linking C shared library libAudioData.dll
Creating library file: libAudioData.dll.a
CMakeFiles/AudioData.dir/audiodata.c.obj:audiodata.c:(.text+0xec5): undefined re
ference to `Decoder_Interface_init'
CMakeFiles/AudioData.dir/audiodata.c.obj:audiodata.c:(.text+0xf5d): undefined re
ference to `Decoder_Interface_Decode'
CMakeFiles/AudioData.dir/audiodata.c.obj:audiodata.c:(.text+0xfd2): undefined re
ference to `Decoder_Interface_exit'
collect2: ld returned 1 exit status
make[2]: *** [libs/libAudioData.dll] Error 1
make[1]: *** [libs/CMakeFiles/AudioData.dir/all] Error 2
make: *** [all] Error 2

  I have checked that these functions are all declared in interf_dec.h .But since I have build opencore-amrnb and got this header and a library named libopencore-amrnb.a,this problem above was still happening. 

Original comment by 379764...@qq.com on 20 Mar 2013 at 1:37