COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > Other Software Discussion > WDL users forum

Reply
 
Thread Tools Display Modes
Old 04-12-2017, 09:33 AM   #1
ConnorLRSS
Human being with feelings
 
ConnorLRSS's Avatar
 
Join Date: Mar 2017
Location: Halifax, NS, Canada
Posts: 11
Default Linker Errors when Building VST3 in Xcode 8

Hey WDL users,

I have been having issues building VST3 in Xcode 8 - nothing I do seems to fix anything. I get a bunch of linker errors saying "Undefined symbols for architecture x86_64". Also, trying to build just the 32-bit architecture gives me similar errors but for i386. I have tried just about every combination of base SDK and deployment target. I have tried using an older version of the VST3 SDK. I have tried manually deleting the object files. Nothing has worked thus far.

An example of a few of the errors:
Code:
  "ControlManager::HandleParamChange(int)", referenced from:
      LowMower::OnParamChange(int) in LowMower.o
  "ControlManager::ControlManager(IPlugBase*, IGraphics*, BassLimiter*, int)", referenced from:
      LowMower::LowMower(IPlugInstanceInfo) in LowMower.o
  "Steinberg::String::assign(char16_t const*, int, bool)", referenced from:
      Steinberg::Vst::XmlRepresentationHelper::startEndTitleDisplay(Steinberg::Vst::ParameterInfo&) in vstrepresentation.o
      Steinberg::String::operator=(char16_t const*) in vstsinglecomponenteffect.o
  "Steinberg::String::printf(char16_t const*, ...)", referenced from:
I have messed with commenting out this line, as it was causing me issues intially:
Code:
#ifdef VST3_API
  //#define _UINT32 // this is necessary to get VST3 to compile with the 10.6 SDK due to a conflict
#endif
I also tried adding this to my projects main header, but it just made things worse:
Code:
#include <stdint.h>
typedef uint32_t uint32;
The first option got rid of the uint32 issues that I and others have had, but it doesn't seem to have stopped the linker errors. I'm unsure if these additions are causing the linker errors.

I have heard that this may be a problem with Xcode 8, so I suppose next I'll try downgrading. Can anyone else here get VST3 to build in Xcode 8?

Also, I've tried this on both Oli and Earlevel's branch.

Thanks for any assistance that any of you can give!
ConnorLRSS is offline   Reply With Quote
Old 04-12-2017, 10:04 PM   #2
ConnorLRSS
Human being with feelings
 
ConnorLRSS's Avatar
 
Join Date: Mar 2017
Location: Halifax, NS, Canada
Posts: 11
Default RESOLVED

Okay, so I ended up manually adding every .cpp file in VST3_SDK/base/source in the "Compile Resources" list (in build phases for VST) for the exception of "fcriticalperformance.cpp", and also removing the libbase link.

Now it works.

I hope this helps someone in the future!

Last edited by ConnorLRSS; 04-12-2017 at 10:14 PM.
ConnorLRSS is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:30 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.