Help building a plugin with MinGW's gcc

Anonymous
2012-10-14
2012-11-14

  • Anonymous
    2012-10-14

    I decided to take a look at Notepad++'s plugin development so I downloaded the NppPluginTemplate and found that it only comes with a project file for Visual Studio. I wonder if it's possible to build the plugins using MinGW and gcc/g++ and how.

    Any help appreciated. Thanks.

     

  • Anonymous
    2012-10-18

    I was able to build the demo plugin with MinGW. I'm posting how I did it in case it's useful for someone else.

    1. First I had to convert the Visual Studio .vcproj project file to the old Visual Studio .dsp format using the prjconverter.exe linked in this page.
    2. I followed the rest of the instructions in that page to generate a makefile from the .dsp project.
    3. Once the makefile was generated, it was ready to build the plugin with minor tweaking. By default it will generate an ANSI plugin no longer compatible with current versions on Notepad++, so you have to change the CFG target.