Hello,
I am trying to compile C::B on Ubuntu 64 bit with all the contrib plugins. When i compile without the plugins i have no problems.
I have used different options but none of them seems to work.
I have done some tests with different revisions, the last on R4771.
When i compile with
"./configure --with-contrib-plugins=al", then i get some compiler errors:
/bin/bash ../../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../../../../src/include -I../../../../src/include/wxFlatNotebook/include -I../../../../src/include/wxscintilla/include -I../../../../src/plugins/contrib/wxSmith/propgrid/contrib/include -DWXMAKINGLIB_PROPGRID -Ulinux -Uunix -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT wxscoder.lo -MD -MP -MF .deps/wxscoder.Tpo -c -o wxscoder.lo `test -f './wxscoder.cpp' || echo './'`./wxscoder.cpp
g++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../../../../src/include -I../../../../src/include/wxFlatNotebook/include -I../../../../src/include/wxscintilla/include -I../../../../src/plugins/contrib/wxSmith/propgrid/contrib/include -DWXMAKINGLIB_PROPGRID -Ulinux -Uunix -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT wxscoder.lo -MD -MP -MF .deps/wxscoder.Tpo -c ./wxscoder.cpp -fPIC -DPIC -o .libs/wxscoder.o
./wxscoder.cpp: In member function 'bool wxsCoder::ApplyChangesEditor(cbEditor*, const wxString&, const wxString&, wxString&, bool, bool, wxString&)':
./wxscoder.cpp:379: error: no matching function for call to 'wxsCoder::RebuildCode(wxString&, const wxChar*, int, wxString&)'
./wxscoder.h:152: note: candidates are: wxString wxsCoder::RebuildCode(wxString&, const wchar_t*, int, wxString&)
./wxscoder.cpp: In member function 'bool wxsCoder::ApplyChangesString(wxString&, const wxString&, const wxString&, wxString&, bool, bool, bool&, wxString&)':
./wxscoder.cpp:467: error: no matching function for call to 'wxsCoder::RebuildCode(wxString&, const wxChar*, size_t, wxString&)'
./wxscoder.h:152: note: candidates are: wxString wxsCoder::RebuildCode(wxString&, const wchar_t*, int, wxString&)
make[5]: *** [wxscoder.lo] Error 1
make[5]: Leaving directory `/home/dries/CodeBlocks/trunk/src/plugins/contrib/wxSmith'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/dries/CodeBlocks/trunk/src/plugins/contrib/wxSmith'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/dries/CodeBlocks/trunk/src/plugins/contrib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/dries/CodeBlocks/trunk/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dries/CodeBlocks/trunk/src'
When i manually add a cast to that function, everything compiles fine. But when I start C::B I get the message that the wxSmith plugin can't be loaded.
When i compile with the folowing:
"./configure --enable-monolithic --enable-plugins --enable-shared=no --enable-debug=no --disable-compat26 --enable-datetime --enable-wxfile --enable-wxlonglong --enable-std_iostreams --enable-std_string --enable-textfile --enable-timer --enable-unicode --enable-threads --enable-control" , then everyting compiles fine. But when i startup the plugins can't be loaded, I get:
Scanning for lexers in /usr/local/share/codeblocks/lexers/...
Found 32 lexers
Loading lexer_cg
Loading lexer_make
Loading lexer_fortran
Loading lexer_OgreCompositor
Loading lexer_matlab
Loading lexer_lua
Loading lexer_verilog
Loading lexer_python
Loading lexer_cpp
Loading lexer_hitasm
Loading lexer_perl
Loading lexer_glsl
Loading lexer_d
Loading lexer_gm
Loading lexer_html
Loading lexer_diff
Loading lexer_angelscript
Loading lexer_squirrel
Loading lexer_nsis
Loading lexer_css
Loading lexer_masm
Loading lexer_vbscript
Loading lexer_f77
Loading lexer_rc
Loading lexer_bash
Loading lexer_vhdl
Loading lexer_batch
Loading lexer_latex
Loading lexer_prg
Loading lexer_properties
Loading lexer_OgreMaterial
Loading lexer_xml
Scanning for plugins in /home/dries/.codeblocks/share/codeblocks/plugins
Loaded 0 plugins
Scanning for plugins in /usr/local/share/codeblocks/plugins
/usr/local/share/codeblocks/plugins/libRegExTestbed.so: not loaded (missing symbols?)
/usr/local/share/codeblocks/plugins/libhelp_plugin.so: not loaded (missing symbols?)
/usr/local/share/codeblocks/plugins/libexporter.so: not loaded (missing symbols?)
/usr/local/share/codeblocks/plugins/libwxsmith.so: not loaded (missing symbols?)
/usr/local/share/codeblocks/plugins/libProfiler.so: not loaded (missing symbols?)
/usr/local/share/codeblocks/plugins/libcb_koders.so: not loaded (missing symbols?)
/usr/local/share/codeblocks/plugins/libdragscroll.so: not loaded (missing symbols?)
/usr/local/share/codeblocks/plugins/libAutoVersioning.so: not loaded (missing symbols?)
/usr/local/share/codeblocks/plugins/libwxsmithcontribitems.so: not loaded (missing symbols?)
/usr/local/share/codeblocks/plugins/libcodestat.so: not loaded (missing symbols?)
/usr/local/share/codeblocks/plugins/liblib_finder.so: not loaded (missing symbols?)
/usr/local/share/codeblocks/plugins/libcodesnippets.so: not loaded (missing symbols?)
/usr/local/share/codeblocks/plugins/libkeybinder.so: not loaded (missing symbols?)
/usr/local/share/codeblocks/plugins/libbyogames.so: not loaded (missing symbols?)
/usr/local/share/codeblocks/plugins/libSymTab.so: not loaded (missing symbols?)
/usr/local/share/codeblocks/plugins/libenvvars.so: not loaded (missing symbols?)
Loaded 0 plugins
Running startup script
Script/function 'edit_startup_script.script' registered under menu '&Settings/-Edit startup script'
Can anybody provide me the right options to pass to ./configure to get it work.
Thanks in advance