User forums > Help
Codeblocks compiled from source crashes with errors involving "GtkPizza"
zemlinc:
--- Quote from: stahta01 on November 16, 2010, 09:06:26 pm ---What does "wx-config --prefix" return?
Per
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux
Tim S.
--- End quote ---
wx-config --prefix returns:
/opt/wx/2.8
(This is the directory where I have the wx sources).
Christian
zemlinc:
--- Quote from: jens on November 16, 2010, 09:26:27 pm ---Why do you use a self-compiled wxWidgets ?
I suggest to use the packages provided by ubuntu and try it again.
--- End quote ---
I use self-compiled wxWidgets because I read in a tutorial
(http://wiki.codeblocks.org/index.php/Creating_a_simple_%22Hello_World%22_plugin)
that you have to compile your own wxWidgets from source in order to make a plugin. Do you think this is not true?
Jenna:
Yes it's not true (except on windows).
The top of the wiki-article tells you, that it is outfdated and needs to be updated.
On linux it is enough to install the development packages of wxWidgets and if you have C::B packages that work on your distro, you should be abale to use the development packages of C::B and wxSmith to create a plugin.
Ubuntu 10.10 includes C::B 10.05 as far as I know, and if they use the actual package layout, there should be dev-packages also.
codeblocks-dev and wxsmith-dev (and their dependencies) for C::B and libwxgtk2.8-dev (and it's dependencies) should be enough.
You can use pkg-config for codeblocks and wxsmith (if the dev packages are installed).
zemlinc:
--- Quote from: jens on November 16, 2010, 10:34:43 pm ---Yes it's not true (except on windows).
The top of the wiki-article tells you, that it is outfdated and needs to be updated.
On linux it is enough to install the development packages of wxWidgets and if you have C::B packages that work on your distro, you should be abale to use the development packages of C::B and wxSmith to create a plugin.
Ubuntu 10.10 includes C::B 10.05 as far as I know, and if they use the actual package layout, there should be dev-packages also.
codeblocks-dev and wxsmith-dev (and their dependencies) for C::B and libwxgtk2.8-dev (and it's dependencies) should be enough.
You can use pkg-config for codeblocks and wxsmith (if the dev packages are installed).
--- End quote ---
Thank you for your explanation.
I removed my self-compiled CodeBlocks and wxSmith and reinstalled them from the Ubuntu repositories, as you suggested.
I can now compile and install a minimal (empty) CodeBlocks plugin, following the instructions of the outdated webpage I quoted.
When I try, however, to make a new widget for wxsmith, following this tutorial,
http://wiki.codeblocks.org/index.php?title=Creating_a_plugin_which_adds_new_item_into_wxSmith
it compiles, but when I try to install it gives the error message:
One or more plugins were not loaded. This usually happens when a plugin is built for a different version of the Code::Blocks SDK. Check the application log for more info.
Any ideas what is going wrong now? Or where I can find the application log?
Thank you very much for your help,
Christian
Jenna:
Make sure that the name of the created library (without the ending) is the same as the name of the zip-file (without the ending) and the registered name.
And be aware that it is case sensitive !
Navigation
[0] Message Index
[*] Previous page
Go to full version