build sws extensions - redefinition errors, Other question.
Advertising
Message
Author
I'm looking for an introduction to using the Reaper SDK, and as recommended, I'm looking at the SWS extensions as an example. It looks like the sws extensions want the WDL source folder to live one level up from the sws-extensions folder, so I downloaded it and placed it appropriately. When I try to build the sws extensions in VS 2008 Express I get the following errors: Code:
------------------------------ ...speed is not about going fast, but living to tell about it....
RE: build sws extensions - redefinition errors, Other question.
I know it's more than a year late but I just went through your same issue. The redefinitions happen when you generate the reaper_plugins_functions.h while you already have reaper_sws.dll installed. You must first remove that DLL from the reaper plugins directory...THEN generate the API header. Otherwise it's putting references in reaper_plugins_functions.h to the same functions you are trying to build in the SWS project.
RE: build sws extensions - redefinition errors, Other question.
Guys, make sure you have read the Building wiki: Everything is detailed there. On a sidenote, I disagree with Xenakios, I find the SWS dead easy to setup/compil. [EDIT].. but I agree this is not the best code to get started. Personnaly, I also started with the "random ninjam loop" example which is provided with the REAPER SDK[/EDIT] Also, what rekliner says is totally right, tbut he OP's issue had nothing to do that (nor with afxres.h/winres.h issues) but with some WDL/LICE funcs redefinitions that we have fixed a long time ago. (BTW, I remember this thread and why I did not reply at the time: we can read "[...]\wdl\sws-extension\reaper[...]" in the compil errors, which is a very weird dev directory structure.. Probable pitfalls when you have not read the wiki: not needed anymore since REAPER v4.72+: On Win/OSX: as rekliner said, make sure you have uninstalled the sws extension before generating the API (i.e. before you run the action "[developer] Write C++ API functions header") not needed anymore with the last WDL: On OSX: you have to SVN patch Cockos' WDL as explained, the extension will compile fine but will be totally buggy otherwise On Win: make sure to define REAPER_DIR (and/or REAPER64_DIR) env var On Win: if you have any compil issue with "winres.h", get in touch (PM) BTW, we need more contributors in the open source, you're welcome!
RE: build sws extensions - redefinition errors, Other question.
ah no, you do not need anything from the REAPER SDK since the only file you need (reaper_plugin.h) is included in the SWS source tree, with permission. It's also newer than the SDK one. I've updated some outdated stuff in my above post, just updated the wiki too, and its URL BTW (we've moved to github in the meantime...) =>
RE: build sws extensions - redefinition errors, Other question.
Hi, It is increasingly impossible to maintain both Xcode 3.x and 5.1 on the same Mac OS any more. When I attempt to compile SWS extension with 5.1, I naturally get a lot of errors. What are the major differences here to prevent SWS from compiling in Xcode 5.1? Thanks, V
RE: build sws extensions - redefinition errors, Other question.
Got it going. Wasn't that hard actually. The Perl error went away when having Perl installed (obviously). I think PHP I only need installed when exporting SWS functions to ReaScript, is that correct ? So probably no need for now. Looking forward to contributing to SWS extensions (maybe, we'll see). :)