Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: rpirpag on April 06, 2011, 02:52:59 pm

Title: Installing Plugin fails
Post by: rpirpag on April 06, 2011, 02:52:59 pm
Hello,

I try to install the HelloWorld Plugin from the Wiki into C::B, but it fails with the error:
c:\codeblocks/share/codeblocks/plugins/HelloWorld.dll: not loaded (missing symbols?)

I downloaded C::B source and compiled it with C::B 10.05 to get the libraries needed.
wxWidget is is version 2.8 from wxPack_v2.8.8.04.
I searched the Wiki and Web, but did not found anything.

What do I wrong?

Thank you,
Reinhard

Title: Re: Installing Plugin fails
Post by: ollydbg on April 06, 2011, 03:08:31 pm
How did you do this?
Quote
c:\codeblocks/share/codeblocks/plugins/HelloWorld.dll: not loaded (missing symbols?)
where does this message log output?

Codeblocks' source code contains many plugins, so I think you can just look at one plugin.
cb_trunk\src\plugins
and contributed plugins were in:
cb_trunk\src\plugins\contrib

Title: Re: Installing Plugin fails
Post by: rpirpag on April 06, 2011, 03:45:19 pm
How did you do this?
Quote
c:\codeblocks/share/codeblocks/plugins/HelloWorld.dll: not loaded (missing symbols?)
where does this message log output?


it is shown in the Code::Blocks log in the IDE.

Title: Re: Installing Plugin fails
Post by: Jenna on April 06, 2011, 03:56:08 pm
The plugin can not be run with C::B 10.05, if it is compiled with source from trunk.

If you try to use it from the trunk sources and it still fails, you can change
Quote
    wxLog::EnableLogging(false);
to
Quote
     wxLog::EnableLogging(true);
at the beginning of OnInit() in src/app.cpp to get a more meaningful output.
Title: Re: Installing Plugin fails
Post by: rpirpag on April 07, 2011, 09:47:18 am
The plugin can not be run with C::B 10.05, if it is compiled with source from trunk.

If you try to use it from the trunk sources and it still fails, you can change
Quote
    wxLog::EnableLogging(false);
to
Quote
     wxLog::EnableLogging(true);
at the beginning of OnInit() in src/app.cpp to get a more meaningful output.

I am right that I have to compile downloaded C::B source first and use this to compile the plugins?

Thank you,
Reinhard
Title: Re: Installing Plugin fails
Post by: MortenMacFly on April 07, 2011, 02:24:56 pm
I am right that I have to compile downloaded C::B source first and use this to compile the plugins?
On Windows, just download a nightly and use the nightly to compile the C::B and the C::B contrib plugins workspace.
Then remove the nightly again (if you like).