Hi all, for numerous reasons I am now trying to build Opus with Windows / Visual C++ Express. So far I have been using Linux/OSX/MinGW only. The normal Opus build works out fine but I wonder how I can enable the Opus-custom-mode with Visual C++ Express. Can anyone help ? Thanks in advance, best Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20140215/b754c465/attachment.htm
Hi Alexander, On 15/02/14 05:11 PM, Alexander Car?t wrote:> for numerous reasons I am now trying to build Opus with Windows / Visual > C++ Express.I'm sorry to hear that ;-)> So far I have been using Linux/OSX/MinGW only. The normal > Opus build works out fine but I wonder how I can enable the > Opus-custom-mode with Visual C++ Express. Can anyone help ?Normally, it should just be a matter of adding #define CUSTOM_MODES to the Windows config.h file. Cheers, Jean-Marc
>On 15/02/14 05:11 PM, Alexander Car?t wrote: >> for numerous reasons I am now trying to build Opus with Windows / Visual >> C++ Express. > >I'm sorry to hear that ;-)You're the man ;-)> >> So far I have been using Linux/OSX/MinGW only. The normal >> Opus build works out fine but I wonder how I can enable the >> Opus-custom-mode with Visual C++ Express. Can anyone help ? > >Normally, it should just be a matter of adding >#define CUSTOM_MODES >to the Windows config.h file.Ha ! I just forgot the "S" and typed CUSTOM_MODE -- well, that should be it. Thanks a lot, best Alex
>>Normally, it should just be a matter of adding >>#define CUSTOM_MODES >>to the Windows config.h file.>Ha ! I just forgot the "S" and typed CUSTOM_MODE -- well, that should be >it.I think I was too quick: Today I compiled the whole project and I get these unresolved symbols: error LNK2001: Nicht aufgel?stes externes Symbol "_opus_custom_decode". error LNK2001: Nicht aufgel?stes externes Symbol "_opus_custom_mode_create". error LNK2001: Nicht aufgel?stes externes Symbol "_opus_custom_encoder_destroy". error LNK2001: Nicht aufgel?stes externes Symbol "_opus_strerror". error LNK2001: Nicht aufgel?stes externes Symbol "_opus_custom_encoder_create". error LNK2001: Nicht aufgel?stes externes Symbol "_opus_custom_encode". error LNK2001: Nicht aufgel?stes externes Symbol "_opus_custom_mode_destroy". Not sure what I might be doing wrong - I included #define CUSTOM_MODES into config.h, compiled the project into a static lib with MSVC Express 2012 and and integrated it into my project. Please let me know if you have any idea. Thanks Alex
Hi again, I addition to the linker problem in custom mode (see below - it seems that custom symbols are not built into the lib) I also tried it with older version 1.0.1 and 1.0.3. Here it confuses me that VS only offers to build celt.lib and silk.lib but not opus.lib. Not sure if this is just a VS-newbie problem ?! Thanks in advance Alex>>>Normally, it should just be a matter of adding >>>#define CUSTOM_MODES >>>to the Windows config.h file. > >>Ha ! I just forgot the "S" and typed CUSTOM_MODE -- well, that should be >>it. > >I think I was too quick: Today I compiled the whole project and I get >these unresolved symbols: > >error LNK2001: Nicht aufgel?stes externes Symbol >"_opus_custom_decode". > >error LNK2001: Nicht aufgel?stes externes Symbol >"_opus_custom_mode_create". > >error LNK2001: Nicht aufgel?stes externes Symbol >"_opus_custom_encoder_destroy". > >error LNK2001: Nicht aufgel?stes externes Symbol "_opus_strerror". > >error LNK2001: Nicht aufgel?stes externes Symbol >"_opus_custom_encoder_create". > >error LNK2001: Nicht aufgel?stes externes Symbol >"_opus_custom_encode". > >error LNK2001: Nicht aufgel?stes externes Symbol >"_opus_custom_mode_destroy". > >Not sure what I might be doing wrong - I included > >#define CUSTOM_MODES into config.h, compiled the project into a static lib >with MSVC Express 2012 and and integrated it into my project. > >Please let me know if you have any idea. > >Thanks > >Alex
On 2014-02-16 1:16 PM, Alexander Car?t wrote:> I think I was too quick: Today I compiled the whole project and I get > these unresolved symbols: > > error LNK2001: Nicht aufgel?stes externes Symbol > "_opus_custom_decode".This is defined in celt_decoder.c inside an #ifdef CUSTOM_MODES block. So either your project file didn't recompile these after the header change, or your header isn't getting included when it's compiled. Similarly for celt_encoder.c, etc. Try a clean build. HTH, -r