Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: daniloz on April 27, 2012, 11:38:41 am

Title: SDK version mismatch when building IncrementalSearch from r7945
Post by: daniloz on April 27, 2012, 11:38:41 am
Hi All,

I'm lost here. I'm building the IncrementalSearch plugin from the latest trunk (r7945) and when I launch C::B I got this weird error:
Code
Scanning for plugins in C:\Work\codeblocks_trunk\src\devel/share/codeblocks/plugins
SDK version mismatch for IncrementalSearch (1.11.18). Expecting 1.13.1

I mean, the error itself it pretty self-explainable, but I don't get why I'm getting it at all. I've looked into my src files, and in [trunk]//include/cbplugin.h, I see
Code
// this is the plugins SDK version number
// it will change when the SDK interface breaks
#define PLUGIN_SDK_VERSION_MAJOR 1
#define PLUGIN_SDK_VERSION_MINOR 13
#define PLUGIN_SDK_VERSION_RELEASE 1

Shouldn't then the IncrementalSearch plugin compiled with this cbplugin.h return 1.13.1 and not 1.11.18...

I have no idea where the 1.11.18 comes from... Help!
Title: Re: SDK version mismatch when building IncrementalSearch from r7945
Post by: oBFusCATed on April 27, 2012, 11:53:15 am
I have no idea where the 1.11.18 comes from... Help!
Search your file system or do a full rebuild (probably a clean checkout is not a bad idea).
Title: Re: SDK version mismatch when building IncrementalSearch from r7945
Post by: daniloz on April 27, 2012, 11:58:32 am
Search your file system or do a full rebuild (probably a clean checkout is not a bad idea).
I already searched my file system and there only definition I found was the correct one.
Also already tried a full rebuild from both CodeBlocks and IncrementalSearch plugin -> same thing

I'll try a clean checkout...
Title: Re: SDK version mismatch when building IncrementalSearch from r7945
Post by: oBFusCATed on April 27, 2012, 12:12:19 pm
Another thing to try is to see if the dll for the incremental search plugin is newly built.
Title: Re: SDK version mismatch when building IncrementalSearch from r7945
Post by: daniloz on April 27, 2012, 12:16:28 pm
Another thing to try is to see if the dll for the incremental search plugin is newly built.
Unfortunately, it is, I've already checked it. Even deleted it and a new is generated, so... :-(
Title: Re: SDK version mismatch when building IncrementalSearch from r7945
Post by: oBFusCATed on April 27, 2012, 12:26:31 pm
You have a broken precompiled header (.gch) file I guess. Try to delete them all.
Title: Re: SDK version mismatch when building IncrementalSearch from r7945
Post by: daniloz on April 27, 2012, 12:51:49 pm
You have a broken precompiled header (.gch) file I guess. Try to delete them all.
That was the problem! Thanks!

The strange thing (I don't completely understand how this precompiled headers work) is that I had two copies of the precompiled headers, one at [trunk]/.objs/include, which was up-to-date, and another copy at [trunk]/src/include from february.

I assume that the IncrementalSearch plugin was using the old ones at [trunk]/src/include.

But why the core-plugins were using the right ones? Is the location of the precompiled header settable somewhere? Even if it is so, why is the IncrementalSearch plugin not complaining that it cannot found the files and is now searching in the right location? :-o
Title: Re: SDK version mismatch when building IncrementalSearch from r7945
Post by: oBFusCATed on April 27, 2012, 01:14:26 pm
There was a change of the location of the pchs recently, I think.
Title: Re: SDK version mismatch when building IncrementalSearch from r7945
Post by: daniloz on April 27, 2012, 01:50:52 pm
There was a change of the location of the pchs recently, I think.
That explains a lot...

Thanks!!!!
Title: Re: SDK version mismatch when building IncrementalSearch from r7945
Post by: killerbot on April 27, 2012, 02:06:27 pm
pch's   :'(