Author Topic: Is there an instruction list to setup wxWidgets for compiling plugins?  (Read 141 times)

Offline MichaelAgarkov

  • Single posting newcomer
  • *
  • Posts: 6
  • Highly sensitive programmer and graphic designer.
    • My Creative Avenue
Hello, wonderful people behind Code::Blocks. I searched the wiki, but didn't find any information on how to compile wxWidgets to be able to make plugins for Code::Blocks. As I understand, it needs to be built as a monolithic unicode dll, but what version is supported? It also mentioned CodeBlocks.cbp, do I need to download the Code::Blocks source code to do it? Is there any ready precompiled setup available?
Thanks for help.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1421
You must compile the plugin with the same compiler used to compile C::B and link with the same wxWidgets used to compile C::B (shared/monolithic). This is because different compilers generate incompatible C++ DLL.

If you use the same compiler that created the release (or nightly, see compiler info in the last nightly post) you do not need to compile C::B and your plugin can be deployed in binary form.

Offline MichaelAgarkov

  • Single posting newcomer
  • *
  • Posts: 6
  • Highly sensitive programmer and graphic designer.
    • My Creative Avenue
I see, thank you for help. I would also like to know if there is a ready and precompiled environment for compiling plugins for the latest stable release (20.03) available for download anywhere, since this seems to be what people would commonly want to do.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2621
I see, thank you for help. I would also like to know if there is a ready and precompiled environment for compiling plugins for the latest stable release (20.03) available for download anywhere, since this seems to be what people would commonly want to do.

A new stable release will be out soon, so you might want to code for that.

See: https://forums.codeblocks.org/index.php/topic,25516.msg173682.html#msg173682 for the latest Nightly build.

There you can download a compiled CodeBlocks, wxWidgets and the compiler that builds both.
« Last Edit: Today at 07:56:05 pm by Pecan »

Offline MichaelAgarkov

  • Single posting newcomer
  • *
  • Posts: 6
  • Highly sensitive programmer and graphic designer.
    • My Creative Avenue
Alright, thanks a lot for the help! I wish Code::Blocks will become more recognised one day, it's a really good IDE, even if it lacks some small things.