Third party library link error in Qt Creator

I need to decode pcm data to opus format. So I want to include the opus source in my project, but cannot link the files. I downloaded the source file opus-1.1.tar.gz

from here . In Qt Creator, I added all files to my 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

// and here would come an abnormous listing of all c- and h-files of opus:
SOURCES += ... 
HEADERS += ... 

      

At compile time, I get a warning from stack_alloc.h

#if (!defined (VAR_ARRAYS) && !defined (USE_ALLOCA) && !defined (NONTHREADSAFE_PSEUDOSTACK))
#error "Opus requires one of VAR_ARRAYS, USE_ALLOCA, or NONTHREADSAFE_PSEUDOSTACK be defined to select the temporary allocation mode."
#endif    

      

For example, USE_ALLOCA

defined in config.h

c opus/win32

. From what I've seen, the file config.h

is only included like this:

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

      

But in none of the files provided with the source I can find #define HAVE_CONFIG_H

. Also, the file config.h

has a #include "version.h"

. This file is also not supplied with the source. I really don't know how I can use Opus-lib. It might not be that hard, but I don't find a minimal minimal example.

I am using windows 8, mingw and c ++ but the c.

+3
c ++ c linker opus


source to share


No one has answered this question yet

Check out similar questions:

1399
What is undefined link / unresolved external symbol error and how to fix it?
430
Difference between static and shared libraries?
414
Why does the order in which libraries are linked sometimes cause errors in GCC?
371
Static linking and dynamic linking
300
How does the compilation / linking process work?
250
Difference between shared objects (.so), static libraries (.a) and DLL (.so)?
99
Linking static libraries with other static libraries
1
Remote debugging Qt creator gdb with debug helpers
1
Asio C ++ Library: asio / detail / config.hpp: no such file or directory
1
Link / use external library in QtCreator



All Articles
Loading...
X
Show
Funny
Dev
Pics