[opus] Moving from Speex to Opus

Hermann Weber hermie.weber at gmx.de
Thu May 9 10:28:52 PDT 2013


Howdy Simon,

thank you!
I have tried #pragma comment once, and I could not run my application in 
Debug Mode from the VS2010 IDE anymore, and since them I am afraid of 
using #pragma comment.
Is it "simply like this" when using #pragma comment, or did I perhaps 
make a different mistake?

Greetings,
Hermie

Am 09.05.2013 19:14, schrieb Simon GD4ELI/HB9DRV:
> Howdy Hermie,
>
> I use VS2010, I compiled Opus from source generating 32-bit and 64-bit
> libraries which I then link into my project. I simply link to Opus.lib and
> include "\opus-1.0.1\include\opus.h" (or wherever you have the source).
>
> I link like this (from stdafx.h):
>
> //
> //	Opus.
> //
> #include "\opus-1.0.1\include\opus.h"
>
> #ifdef	_WIN64
> 	#ifdef _DEBUG
> 	#pragma comment(lib, "\\opus-1.0.1\\x64\\Debug\\Celt.lib")
> 	#pragma comment(lib, "\\opus-1.0.1\\x64\\Debug\\Opus.lib")
> 	#pragma comment(lib, "\\opus-1.0.1\\x64\\Debug\\Silk_common.lib")
> 	#pragma comment(lib, "\\opus-1.0.1\\x64\\Debug\\Silk_fixed.lib")
> 	#pragma comment(lib, "\\opus-1.0.1\\x64\\Debug\\Silk_float.lib")
> 	#else
> 	#pragma comment(lib, "\\opus-1.0.1\\x64\\Release\\Celt.lib")
> 	#pragma comment(lib, "\\opus-1.0.1\\x64\\Release\\Opus.lib")
> 	#pragma comment(lib, "\\opus-1.0.1\\x64\\Release\\Silk_common.lib")
> 	#pragma comment(lib, "\\opus-1.0.1\\x64\\Release\\Silk_fixed.lib")
> 	#pragma comment(lib, "\\opus-1.0.1\\x64\\Release\\Silk_float.lib")
> 	#endif
> #else
> 	#ifdef _DEBUG
> 	#pragma comment(lib, "\\opus-1.0.1\\Debug\\Celt.lib")
> 	#pragma comment(lib, "\\opus-1.0.1\\Debug\\Opus.lib")
> 	#pragma comment(lib, "\\opus-1.0.1\\Debug\\Silk_common.lib")
> 	#pragma comment(lib, "\\opus-1.0.1\\Debug\\Silk_fixed.lib")
> 	#pragma comment(lib, "\\opus-1.0.1\\Debug\\Silk_float.lib")
> 	#else
> 	#pragma comment(lib, "\\opus-1.0.1\\Release\\Celt.lib")
> 	#pragma comment(lib, "\\opus-1.0.1\\Release\\Opus.lib")
> 	#pragma comment(lib, "\\opus-1.0.1\\Release\\Silk_common.lib")
> 	#pragma comment(lib, "\\opus-1.0.1\\Release\\Silk_fixed.lib")
> 	#pragma comment(lib, "\\opus-1.0.1\\Release\\Silk_float.lib")
> 	#endif
> #endif
>
> The reason I did this 'my way' is I must be able to compile *everything*
> from source, also I prefer to do this anyway :)
>
> Simon GD4ELI/HB9DRV
> http://v2.sdr-radio.com/
>
>
> -----Original Message-----
> From: opus-bounces at xiph.org [mailto:opus-bounces at xiph.org] On Behalf Of
> Hermann Weber
> Sent: 09 May 2013 19:01
> To: opus at xiph.org
> Subject: [opus] Moving from Speex to Opus
>
> Hello!
>
> I have a solution in VS2010 in which I am using Speex 1.0.4.
> I would now like to move to Opus.
>
> In the old version I was using the following settings:
>
> #include "speex.h"
> "include dir": "..\..\speex-1.0.4\include"
> "additional libraries: " "..\..\speex-1.0.4\lib"
>
> Now with Opus it is a little more complicated, there are rather many
> directories the file opus-1.0.1-rc3, and I am not sure which ones I should
> choose.
>
> Could anybody perhaps lend a helping hand??
>
> Thank you.
> Hermie.
> _______________________________________________
> opus mailing list
> opus at xiph.org
> http://lists.xiph.org/mailman/listinfo/opus
>
> _______________________________________________
> opus mailing list
> opus at xiph.org
> http://lists.xiph.org/mailman/listinfo/opus
>



More information about the opus mailing list