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-22-2016, 01:59 PM   #1
mviljamaa
Human being with feelings
 
Join Date: Jun 2015
Posts: 348
Default What compiler to use with CodeBlocks and WDL-OL?

What compiler should I use to use WDL-OL with CodeBlocks?
mviljamaa is offline   Reply With Quote
Old 04-22-2016, 02:03 PM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Why would you even want to use CodeBlocks?
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 04-22-2016, 03:32 PM   #3
mviljamaa
Human being with feelings
 
Join Date: Jun 2015
Posts: 348
Default

Examples for OpenFrameworks seem to be using it, rather than Visual Studio.

I was toying with the idea of using some ofx stuff in conjunction with WDL-OL.
mviljamaa is offline   Reply With Quote
Old 04-23-2016, 01:01 AM   #4
Tale
Human being with feelings
 
Tale's Avatar
 
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,150
Default

MinGW/GCC? Some time ago I have successfully compiled the IPlugEffect example with this.

But IMHO Code::Blocks is not really an option; no x64, for starters. Then again, that was some time ago, so maybe things have changed now.
Tale is offline   Reply With Quote
Old 11-03-2020, 03:16 PM   #5
Lex248
Human being with feelings
 
Join Date: Apr 2017
Location: Russia
Posts: 21
Default

I tried recently building IplugEffect (IPlug1) using CodeBlocks 20.03 with TDM64-GCC-5.1.0. Despite the 32 bit setup in the project, the plugin built 64 bit.

But I had to make changes to the function:

Code:
// File wdl-ol-master\WDL\IPlug\IGraphicsWin.cpp

void IGraphicsWin::PromptForFile(WDL_String* pFilename, EFileAction action, WDL_String* pDir, char* extensions)
{
...
  if (rc)
  {
    char drive[_MAX_DRIVE];
    //#ifndef __MINGW_H // TODO: alternative for gcc
    #ifdef _MSC_VER // MS Visual Studio
    if(_splitpath_s(ofn.lpstrFile, drive, sizeof(drive), dirCStr, sizeof(dirCStr), NULL, 0, NULL, 0) == 0)
    {
      pDir->SetFormatted(MAX_PATH_LEN, "%s%s", drive, dirCStr);
    }
    #endif
    pFilename->Set(ofn.lpstrFile);
  }
  else
  {
    pFilename->Set("");
  }
}
By the way, no one has a CBP project for IPlug2?
__________________
Sorry, I bad speak english.
---
My plug-ins http://nalexsoft.blogspot.ru

Last edited by Lex248; 11-04-2020 at 04:14 AM. Reason: correction
Lex248 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 02:42 PM.


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