build sws extensions - redefinition errors, Other question. >>
Forum

Forum



SearchSearch   Users   Registration   Entrance
Today: 11.08.2025 - 21:23:45
Pages:  1  

build sws extensions - redefinition errors, Other question.

Advertising


MessageAuthor

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....

Brian

user forum




Statistics:
Messages: 25
Registration: 03.31.2001
10.11.21 - 08:10:36
Message # 1
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.

------------------------------
John

John@BPG

user forum




Statistics:
Messages: 626
Registration: 02.26.2001
10.11.21 - 08:18:28
Message # 2
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!

------------------------------
Nelson

ebm34

user forum




Statistics:
Messages: 166
Registration: 09.25.2001
10.11.21 - 08:23:43
Message # 3
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...) =>

------------------------------

M Roady

user forum




Statistics:
Messages: 4,671
Registration: 12.14.2003
10.11.21 - 08:32:45
Message # 4
RE: build sws extensions - redefinition errors, Other question.

Compiling SWS extension with Xcode 5.1 or higher 

------------------------------

r2edline

user forum




Statistics:
Messages: 147
Registration: 03.02.2003
10.11.21 - 08:44:23
Message # 5
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

------------------------------

U1arunit

user forum




Statistics:
Messages: 44
Registration: 01.12.2003
10.11.21 - 08:49:48
Message # 6
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). :)

------------------------------
Only in a JEEP

Evan e21

user forum




Statistics:
Messages: 90
Registration: 01.23.2003
10.11.21 - 09:01:13
Message # 7
RE: build sws extensions - redefinition errors, Other question.
analogue output cables for ux2 : Previous topicNext topic: OT: VST Firewire Drives
Pages:  1  

Message
Name
Message

Click on the dot next to the name to address the participant

           
   
The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants