Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
include dir's in generated plug-ing cbp incorrect ?
(1/1)
killerbot:
this can be found in the generated .cbp
<Variable name="CB_SDK" value="C:\codeblocks-1.0rc2"/>
<Add directory="$(CB_SDK)\include"/>
<Add directory="$(CB_SDK)\sdk"/>
<Add directory="$(CB_SDK)\sdk\tinyxml"/>
<Add directory="$(CB_SDK)\sdk\wxscintilla\include"/>
Now if you download the sources (not cvs !!) : codeblocks-1.0rc2_sdk.tgz
Within the the zip file the 'root' path is : codeblock-1.0rc2-sdk
Which contains then as directories :
'root_path==?sdk?'
+--------------include
+--------------tinyxml
+--------------wxscintilla (and subdirs)
+--------------lib
So we can see there's no sdk directory next to include and lib !!!
It should be :
<Add directory="$(CB_SDK)\sdk\include"/>
And is <Add directory="$(CB_SDK)\include"/> needed ??
Something that worked on my system (windows : cb installed in program files\codeblocks, and sdk zip unzipped below this in the directory sdk) :
<Variable name="CB_SDK" value="C:\Program Files\CodeBlocks"/>
<Compiler> part :
<Add directory="$(CB_SDK)\include"/>
<Add directory="$(CB_SDK)\sdk\include"/>
<Add directory="$(CB_SDK)\sdk\include\tinyxml"/>
<Add directory="$(CB_SDK)\sdk\include\wxscintilla\include"/>
<Linker> part :
<Add directory="$(CB_SDK)\sdk\lib"/>
<Add directory="$(CB_SDK)\devel"/>
<Add directory="$(CB_SDK)\sdk\tinyxml"/>
<Add directory="$(CB_SDK)\sdk\wxscintilla\include"/>
And after I build wxWidgets (I used 2.6.2, did not find immed 2.6.1)
I copied the <WXDIR>\lib\gcc_dll to <WXDIR>\lib\gcc_dllNonUnicode, I hope this is correct ?
kind regards,
Lieven
mandrav:
These are bugs we missed :(
Your solution circumvents the problem though.
killerbot:
Some other questions :
- are all those added dir's needed ? There are a bunch more then for RC1 ?
- is it correct we should use now the wxscintilla.h and no longer the stc.h form wxWidgets ?
This is important because it requires sometimes a code change : eg. wxSTC_NOTFOUND -> WSI_NOTFOUND. For example I got my MatchinBrace plug-in working again, but I had to do that change, next to adjusting the cbp file. See other forum post, will release the new version tomorrow.
- in the added libs for the linker we can find :codeblocks, wxmwsw26; shouldn't wxscintilla be added then also ??
Would be nice to know the correct set, so that cbp files of plug-ins are more or less consitent, offcourse it also depends on what the plug-in should/could do ...
kind regards,
Lieven
Navigation
[0] Message Index
Go to full version