Creating a CodeLite plugin
Posted: Wed Oct 26, 2016 6:19 am
Hello All,
Today I decided to try my hand at making a CodeLite plugin. I pulled up the page describing creating a plugin (http://codelite.org/Developers/CreatePlugin) and used the wizard to create the skeleton of a plugin. I made the wizard create it under my CodeLite source directory as the web page said that was easier. I worked my way all the way through the wizard as I also followed along on that web page and got to the end where it describes adding the add_subdirectory statement to the top level CMakeLists.txt file. First issue here...it says to add it somewhere near the bottom. Does that mean AT the bottom? Within one of the sections above there that has other add_subdirectory statements? It really doesn't say so I tried putting it just below the last add_subdirectory statement in the file. Anywho. When I go to remake CodeLite it comes back with: /home/ciresnave/codelite/codelite-9.2/WizardTree/wizardtree.cpp:23:12: error: could not convert ‘& info’ from ‘PluginInfo*’ to ‘PluginInfo’
Now, that looks like it would be an easy fix. Someone might have typoed in when they created the wizard and had it return the address of a PlugInInfo instead of the PlugInInfo itself. Thinking that I went into my source and removed the &. It now compiles fine. However, now when I launch CodeLite it crashes with a SIGABRT in GetPluginInfo(). I'm guessing this is my error somehow but I've read through the web page again and looked at the code til my head is spinning. What am I missing?
- CireSnave
Today I decided to try my hand at making a CodeLite plugin. I pulled up the page describing creating a plugin (http://codelite.org/Developers/CreatePlugin) and used the wizard to create the skeleton of a plugin. I made the wizard create it under my CodeLite source directory as the web page said that was easier. I worked my way all the way through the wizard as I also followed along on that web page and got to the end where it describes adding the add_subdirectory statement to the top level CMakeLists.txt file. First issue here...it says to add it somewhere near the bottom. Does that mean AT the bottom? Within one of the sections above there that has other add_subdirectory statements? It really doesn't say so I tried putting it just below the last add_subdirectory statement in the file. Anywho. When I go to remake CodeLite it comes back with: /home/ciresnave/codelite/codelite-9.2/WizardTree/wizardtree.cpp:23:12: error: could not convert ‘& info’ from ‘PluginInfo*’ to ‘PluginInfo’
Now, that looks like it would be an easy fix. Someone might have typoed in when they created the wizard and had it return the address of a PlugInInfo instead of the PlugInInfo itself. Thinking that I went into my source and removed the &. It now compiles fine. However, now when I launch CodeLite it crashes with a SIGABRT in GetPluginInfo(). I'm guessing this is my error somehow but I've read through the web page again and looked at the code til my head is spinning. What am I missing?
- CireSnave