Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Patches to compile and link C::B against wxWidgets 2.8.0
nottin:
Build error on Ubuntu 6.10 (Edgy Eft) with wxWidgets 2.8.1 and all of the most recent patches applied:
--- Quote ---g++ -DHAVE_CONFIG_H -I. -I../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems -I../../../../../../src/sdk -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../../../../../../../src/sdk -I../../../../../../../src/sdk/wxFlatNotebook/include -I../../../../../../../src/sdk/wxscintilla/include -I../../../../../../../src/sdk/wxFlatNotebook -I../../../../../../../src/sdk/propgrid/include -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT wxsdatepickerctrl.lo -MD -MP -MF .deps/wxsdatepickerctrl.Tpo -c ../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./wxsdatepickerctrl.cpp -fPIC -DPIC -o .libs/wxsdatepickerctrl.o
../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./../wxsevents.h:114: error: 'wxArrayString' does not name a type
../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./../wxsevents.h: In member function 'const wxString& wxsEvents::GetHandler(int)':
../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./../wxsevents.h:80: error: 'm_Functions' was not declared in this scope
../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./../wxsevents.h: In member function 'void wxsEvents::SetHandler(int, const wxString&)':
../../../../../../../src/plugins/contrib/New_wxSmith/wxwidgets/defitems/./../wxsevents.h:83: error: 'm_Functions' was not declared in this scope
make[2]: *** [wxsdatepickerctrl.lo] Error 1
make[2]: Leaving directory `/home/bjorn/dev/apps/codeblocks/build/src/plugins/contrib/New_wxSmith/wxwidgets/defitems'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bjorn/dev/apps/codeblocks/build/src/plugins/contrib/New_wxSmith/wxwidgets'
make: *** [all-recursive] Error 1
--- End quote ---
Oh, and I'm using the new wxSmith (probably obvious by reading the error output).
Thanks :)
stahta01:
I am retesting my patch under windows and seeing if it works still.
I am having problems compiling under windows linking against wxWidgets 2.8.1.
Will work on a fix and post more info when I find cause/solution.
Tim S
stahta01:
nottin:
Did you apply the patch #1766
[ Patch #1766 ] NEW (experimental) wxSmith patch for wxWidgets 2.8 Submitted By: stahta01
https://developer.berlios.de/patch/?func=detailpatch&patch_id=1766&group_id=5358
How to get the new wxSmith is here
http://forums.codeblocks.org/index.php?topic=3765.msg33855#msg33855
Tim S
Edit: From the errors you got I suggest trying this patch; I have updated my patch with the code show below.
--- Code: ---Index: wxwidgets/defitems/wxsnotebook.cpp
===================================================================
--- wxwidgets/defitems/wxsnotebook.cpp (revision 3483)
+++ wxwidgets/defitems/wxsnotebook.cpp (working copy)
@@ -21,6 +21,10 @@
* $HeadURL$
*/
+#ifndef CB_PRECOMP
+ #include <wx/notebook.h>
+#endif
+
#include "wxsnotebook.h"
#include "../../wxsadvqppchild.h"
Index: wxwidgets/wxsevents.h
===================================================================
--- wxwidgets/wxsevents.h (revision 3483)
+++ wxwidgets/wxsevents.h (working copy)
@@ -1,6 +1,10 @@
#ifndef WXSEVENTS_H
#define WXSEVENTS_H
+#ifndef WX_PRECOMP
+ #include <wx/arrstr.h>
+#endif
+
#include <tinyxml/tinyxml.h>
#include "../wxscodinglang.h"
Index: wxwidgets/wxsstyle.h
===================================================================
--- wxwidgets/wxsstyle.h (revision 3483)
+++ wxwidgets/wxsstyle.h (working copy)
@@ -1,6 +1,10 @@
#ifndef __WXSSTYLE_H
#define __WXSSTYLE_H
+#ifndef WX_PRECOMP
+ #include <wx/arrstr.h>
+#endif
+
#include "../wxscodinglang.h"
#include <wx/dynarray.h>
--- End code ---
nottin:
Builds now.
Thanks for your help :)
stahta01:
I have started a new thread to start work on wxWidgets 2.9 patches
Tim S
Patches to compile and link C::B against wxWidgets 2.9
http://forums.codeblocks.org/index.php?topic=4982.msg39004#msg39004
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version