c++ - Linking error with 3rd party library in Qt Creator -
i need decode pcm data opus format. therefore want include opus source project, can't link files. downloaded source file opus-1.1.tar.gz here. in qt creator, added files pro-file:
includepath += \ $$pwd/opus/opus/celt \ $$pwd/opus/opus/celt/arm \ $$pwd/opus/opus/celt/tests \ $$pwd/opus/opus/celt/x86 \ $$pwd/opus/opus/silk \ $$pwd/opus/opus/silk/arm \ $$pwd/opus/opus/silk/fixed \ $$pwd/opus/opus/silk/float \ $$pwd/opus/opus/include \ $$pwd/opus/opus/win32 // , here come abnormous listing of c- , h-files of opus: sources += ... headers += ... at compile time, warning stack_alloc.h
#if (!defined (var_arrays) && !defined (use_alloca) && !defined (nonthreadsafe_pseudostack)) #error "opus requires 1 of var_arrays, use_alloca, or nonthreadsafe_pseudostack defined select temporary allocation mode." #endif for example, use_alloca defined in config.h in opus/win32. i've seen, file config.h gets included this:
#ifdef have_config_h #include "config.h" #endif but in none of files shipped source can find #define have_config_h. moreover, in file config.h there #include "version.h". file not delivered source. don't know how can use opus-lib. can't hard, not find running minimal example @ all.
i using windows 8, mingw, , c++ library c.
Comments
Post a Comment