The problem is that, when following all instructions given at the Wiki, the compilation of Code::Blocks failed. But on my Windows XP SP2 system, it did work (with the same SVN build - 3795).
I'm using a Slackware 11 system. I have followed all instructions from the Wiki to install wxGTK and it installed successfully. I had to use the '--disable-pch' option for './configure' otherwise the command 'make' failed at some file called 'scriptbindings.XXX' with the error 'had to relocate PCH'.
However, I fixed the PCH error, and continued compiling using 'make', then it failed. It failed compiling the file 'infowindow.cpp', line 165. It says 'wxStaticBitmap' was undeclared.
I fixed the error adding the following line
after the following line:
I think it is reproducable. I'm using SVN build 3795. I actually haven't got any idea since which version this error occurred since I never before compiled Code::Blocks on a Linux system.
After adding the line I described above, the compilation got another error when compiling 'help_plugin.cpp', it got the following error:
help_plugin.cpp: In member function `void HelpPlugin::LaunchHelp(const wxString&, bool, const wxString&)':
help_plugin.cpp:373: error: invalid use of undefined type `struct MacrosManager'
../../../../src/include/manager.h:23: error: forward declaration of `struct MacrosManager'
EDIT: I configured Code::Blocks using './configure --enable-contrib --disable-pch', this might be needed to know, since the 'help_plugin' belongs to the plugins which are only build when '--enable-contrib' is specified (correct me if this isn't true).
Anyone has any idea why it's working on my Windows system but not on Linux?
In the Makefile.am for CodeSnippets make sure the following lines
are near the top
INCLUDES = $(WX_CXXFLAGS) \
$(WX_GTK2_CFLAGS) \
-I$(top_srcdir)/src/include \
-I$(top_srcdir)/src/include/wxscintilla/include \
-I$(top_srcdir)/src/include/wxFlatNotebook/include
This part:
between...
INCLUDES = $(WX_CXXFLAGS) \
...and...
-I$(top_srcdir)/src/include \
...was missing, why is it needed for codesnippets and not for other plugins?
By the way is it okay if I create a patch and submit it?
EDIT: The only other Makefile.am I found using WX_GTK2_CFLAGS is debuggergdb's one.