Hello, I have a plugin called DFVoice, which is a voice chat plugin for the Unity game engine. The latest version of Unity now allows for native DLLs in the free version (whereas previously it only allowed .NET DLLs), so I've been wanted to integrate Opus to replace NSpeex. That said, I've been running into issues with compiling Opus - that is, I can't seem to figure out how to compile Opus to a DLL (the included Visual Studio project doesn't seem to produce a DLL?). I don't know if I'm being stupid and missing an easy way to do this... Any help would be appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20150512/19e65a63/attachment.htm
On 12/05/15 10:50 PM, Masaaki Hosoi wrote:> That said, I've been running into issues with compiling Opus - that is, > I can't seem to figure out how to compile Opus to a DLL (the included > Visual Studio project doesn't seem to produce a DLL?).You're right. It looks like the included project files only produce a static library. You could try changing the Configuration Type to dll in the various project properties dialogs, but I'm not sure what else is involved. -r> I don't know if > I'm being stupid and missing an easy way to do this... Any help would be > appreciated. > > > _______________________________________________ > opus mailing list > opus at xiph.org > http://lists.xiph.org/mailman/listinfo/opus >
On 2015-05-13 11:26 AM, Masaaki Hosoi wrote:> I tried switching various projects in the solution over to DLL, but then > it started complaining about being unable to find certain files.That's what I got too. Perhaps there's some way to combine the various sub libraries into a dll in a separate project? I don't know much about visual studio. -r
On 5/13/2015 7:50 AM, Masaaki Hosoi wrote:> Hello, > I have a plugin called DFVoice, which is a voice chat plugin for the > Unity game engine. The latest version of Unity now allows for native > DLLs in the free version (whereas previously it only allowed .NET > DLLs), so I've been wanted to integrate Opus to replace NSpeex. > That said, I've been running into issues with compiling Opus - that > is, I can't seem to figure out how to compile Opus to a DLL (the > included Visual Studio project doesn't seem to produce a DLL?). I > don't know if I'm being stupid and missing an easy way to do this... > Any help would be appreciated. >In order to compile Opus as a dll one needs to: 1. Change the configuration type for Opus project from static library to dynamic link library 2. Add all dependent static libraries as dependencies (silk, silk_common, silk_float) I've attached a zip containing the VS2013 project configuration which does all the above Cheers, Cristian. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20150513/b742d329/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: opus_win32_vs2013.zip Type: application/x-zip-compressed Size: 25733 bytes Desc: not available Url : http://lists.xiph.org/pipermail/opus/attachments/20150513/b742d329/attachment-0001.bin