Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Building Code::Blocks Plugin Wizard w/MSW
rickg22:
I recall wxWidgets 2.6.1 needing a patch...
Pecan:
Mandrav, thanks for the reply
A *new* test project generated by the wizard works fine.
That's not the problem. The problem is re-compiling the
wizards, such as the pluginwizard, distributed from source
with RC2+SDK. It crashes C::B. No problem with RC1.1
If you mean that you want to see the compiler/linker settings
used to compile the wizards, I'll cut and paste 'em to
this forum shortly. I have to feed the dog first.
thanks
Pecan
mandrav:
--- Quote ---The problem is re-compiling the
wizards, such as the pluginwizard, distributed from source
with RC2+SDK. It crashes C::B. No problem with RC1.1
--- End quote ---
In that case, check the flags (mainly #defines) used in codeblocks*.cbp for PluginWizard. The PluginWizard-generated wizards *don't* have the same flags, IIRC.
Pecan:
Thanks mandrav
Here are the settings used by the project to re-compile the pluginwizard
(same for ClassWizard). I used absolute paths in an attempt to get
control of the problem (and to simplify).
--- Code: ---[Project PluginWizard]
sources
enterinfodlg.cpp
pluginwizard.cpp
pluginwizarddlg.cp
Headers
enterinfodlg.h
pluginwizard.h
pluginwizarddlg.h
[Selected Compiler
GNU GCC Compiler
[Compiler]
Policy: blank
Compiler Flags
Enable all compiler warnings(overrides...)
Other options
blank
#defines
__GNUWIN32__
WXUSINGDLL
BUILDING_PLUGIN
[Linker]
Link libraries:
C:\Usr\CodeBlocks\codeblocks.dll
C:\Usr\CodeBlocks\wxscintilla.dll
C:\Usr\CodeBlocks\exchndl.dll
C:\Usr\CodeBlocks\wxmsw26_gcc_cb.dll
[Directories]
Compiler
C:\Usr\CodeBlocks\codeblocks-1.0rc2-sdk\include
C:\Usr\codeblocks\codeblocks-1.0rc2-sdk\include\wxscintilla\include
C:\Usr\Proj\wxWidgets261\include <--wx/wxprec.h
C:\Usr\Proj\wxWidgets261\lib\gcc_dll\msw <--wx/setup.h
Linker
blank
Resource Compiler
blank
Commands
blank
Custom variables
blank
--- End code ---
Thanks, Pecan
Pecan:
Ok, I cut this out of codeblocks.cbp from the rc2 src file.
Note that it was linked with 2.4.2. Is this what we should do?
I'm willing, I'm able. I'll do it if that's what it takes. BUT....
--- Code: ---</Target>
<Target title="plugin_PluginsWizard">
<Option output="devel\share\CodeBlocks\plugins\pluginwizard.dll"/>
<Option working_dir="."/>
<Option object_output=".objs"/>
<Option deps_output=".deps"/>
<Option external_deps=""/>
<Option type="3"/>
<Option compiler="0"/>
<Option projectLinkerOptionsRelation="1"/>
<Option projectIncludeDirsRelation="2"/>
<Option projectLibDirsRelation="2"/>
<Compiler>
<Add option="-DBUILDING_PLUGIN"/>
<Add option="-D_WINDLL"/>
<Add directory="sdk"/>
</Compiler>
<Linker>
<Add option="-Wl,--enable-auto-image-base"/>
<Add option="-Wl,--add-stdcall-alias"/>
<Add library="libcodeblocks.a"/>
<Add library="libwxscintilla.a"/>
<Add library="libwxxrc.a"/>
<Add library="wxmsw242"/>
<Add directory="devel"/>
</Linker>
</Target>
--- End code ---
thanks, Pecan
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version