Author Topic: include dir's in generated plug-ing cbp incorrect ?  (Read 3075 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5144
include dir's in generated plug-ing cbp incorrect ?
« on: October 25, 2005, 09:02:30 pm »

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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: include dir's in generated plug-ing cbp incorrect ?
« Reply #1 on: October 25, 2005, 09:24:32 pm »
These are bugs we missed  :(
Your solution circumvents the problem though.
Be patient!
This bug will be fixed soon...

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5144
Re: include dir's in generated plug-ing cbp incorrect ?
« Reply #2 on: October 25, 2005, 10:10:38 pm »
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