News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Patches to compile and link C::B against wxWidgets 2.8.0

Started by stahta01, November 19, 2006, 05:37:06 AM

Previous topic - Next topic

killerbot

wxPropertyGrid update would be nice, as far as I have seen, only wxSmith uses this one. We should check with Byo if he's up to it. He will be back somewhere coming week I think.

stahta01

I have uploaded my first patch to reduce warning when compiling Code::Blocks with wxWidgets 2.8.0

Please look at it and OK the use of the global typedef name of cbItemCount so I can work on the later patches that will use it.
Thank you
Tim S

[ Patch #1788 ] SDK patch to reduce warning for wxWidgets 2.8
  https://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=1788&group_id=5358
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

#107
Quote from: killerbot on January 01, 2007, 10:54:23 AM
wxPropertyGrid update would be nice, as far as I have seen, only wxSmith uses this one. We should check with Byo if he's up to it. He will be back somewhere coming week I think.

Here's the thread I am working on the patch to upgrade wxPropertyGrid to version 1.2.6.
http://forums.next.codeblocks.org/index.php?topic=4638.0

Note: The patch will be about 2.6 megs or more in size is this a problem on the Berlios Server end?

It was a problem when I tried to upload it last time, but it was an issue on my end, that I think I have fixed.
Note, Firefox was having issues uploading a file that large, but IE7 had no issue to a different server.
(I am on a dialup connection which is causing a time out issue.)

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

SolidNuts

What patches should I use to compile C::B under Linux with New_wxSmith ?

stahta01

Have you been able to compile the NEW wxSmith using wxWidgets 2.6?
If not, please try that first.

After you can compile the NEW wxSmith using wxWidgets 2.6.
Apply patch [ Patch #1766 ] NEW (experimental) wxSmith patch for wxWidgets 2.8
https://developer.berlios.de/patch/?func=detailpatch&patch_id=1766&group_id=5358
Then compile the patched NEW wxSmith using wxWidgets 2.6.

After that works, compile the patched NEW wxSmith using wxWidgets 2.8.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

SolidNuts

#110
g++ -DHAVE_CONFIG_H -I. -I../../../../../src/sdk -I/usr/lib/wx/include/gtk2-unicode-release-2.8
-I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
-pthread -I../../../../../src/sdk -I../../../../../src/sdk/wxscintilla/include -I../../../../../src/sdk/propgrid/include -O2
-ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT wxsarraystringeditordlg.lo
-MD -MP -MF .deps/wxsarraystringeditordlg.Tpo -c
./wxsarraystringeditordlg.cpp  -fPIC -DPIC -o .libs/wxsarraystringeditordlg.o
./wxsarraystringeditordlg.h:31: error: extra qualification 'wxsArrayStringEditorDlg::' on member 'OnCancel'



That's the problem =/.. almost working.. =D
However, it's already working with wx2.8 :D, just need to compile the last plugins when this problem get solved.

EDIT: Strange.. I recompiled everything and I didn't get this error anymore o.O

Ryu

Hey, everybody, ¡¡ GOOD NEW YEAR!!  :lol:

Now, I have the revision 3474 and I trying to compile with the new wxWidgets with the last wxGridProperty but from a few revisons to it I always have this error:

g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/wx/2.8//lib/wx/include/gtk2-unicode-release-2.8 -I/opt/wx/2.8//include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -pthread -I../../src/sdk/wxscintilla/include -I../../src/sdk/tinyxml -I../../src/sdk/scripting/include -I../../src/sdk/scripting/sqplus -I../../src/sdk/wxFlatNotebook/include -I../../src/sdk/propgrid/include -O2 -ffast-math -O3 -mmmx -march=pentium4 -funroll-loops -fexpensive-optimizations -fPIC -DPIC -MT editorconfigurationdlg.lo -MD -MP -MF .deps/editorconfigurationdlg.Tpo -c editorconfigurationdlg.cpp  -fPIC -DPIC -o .libs/editorconfigurationdlg.o
editorconfigurationdlg.cpp: In constructor `
   EditorConfigurationDlg::EditorConfigurationDlg(wxWindow*)':
editorconfigurationdlg.cpp:235: error: invalid use of undefined type `struct
   wxImageList'
/opt/wx/2.8/include/wx-2.8/wx/generic/listctrl.h:16: error: forward declaration
   of `struct wxImageList'
editorconfigurationdlg.cpp:240: error: `Add' undeclared (first use this
   function)
editorconfigurationdlg.cpp:240: error: (Each undeclared identifier is reported
   only once for each function it appears in.)
editorconfigurationdlg.cpp: In member function `void
   EditorConfigurationDlg::AddPluginPanels()':
editorconfigurationdlg.cpp:281: error: `Add' undeclared (first use this
   function)
editorconfigurationdlg.cpp:283: error: `GetImageCount' undeclared (first use
   this function)
editorconfigurationdlg.cpp: In member function `void
   EditorConfigurationDlg::UpdateSampleFont(bool)':
editorconfigurationdlg.cpp:488: warning: `__comp_ctor' is deprecated (declared
   at /opt/wx/2.8/include/wx-2.8/wx/gtk/fontdlg.h:48)
make[4]: *** [editorconfigurationdlg.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1



So,someone can help me.  :?

PD: I don't know if this post can be done here.
     Please excuse me if that is the case.

stahta01

#112
Quote from: Ryu on January 10, 2007, 07:00:31 PM
Hey, everybody, ¡¡ GOOD NEW YEAR!!  :lol:

Now, I have the revision 3474 and I trying to compile with the new wxWidgets with the last wxGridProperty but from a few revisons to it I always have this error:

What version of wxWidgets 2.8? 2.8.0? 2.8.1? 2.8-cvs?
What version of wxPropertyGrid ? 1.2.5? 1.2.6prelease?
What OS? Linux? Windows?

Note: I have not tested it today or yesterday, the changes they did could have broken it.
Will try it right now.

The changes broke some of the patches, will work on them tomorrow.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Ryu

Hey, stahta01

I'm sorry, the information is:

wxWidgets 2.8.0 (oficial release)

wxPropertyGrid 1.2.5

SO: Linux

stahta01

#114
Quote from: Ryu on January 10, 2007, 07:25:23 PM
Hey, stahta01

I'm sorry, the information is:

wxWidgets 2.8.0 (oficial release)

wxPropertyGrid 1.2.5

SO: Linux

wxPropertyGrid 1.2.5 had Linux issue in it.
Please try the snapshot at
http://wxpropgrid.sourceforge.net/cgi-bin/index?page=download#snapshots

Or Try my C::B patch 1.2.6Prerelease at
Quote from: stahta01 on December 04, 2006, 02:53:25 PM
http://www.savefile.com/projects/1039215
wxpropgrid_1_2_6_prerelease-unix.patch

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

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

Oh, and I'm using the new wxSmith (probably obvious by reading the error output).

Thanks :)

stahta01

#116
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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

#117
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.next.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.


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>

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

nottin


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.next.codeblocks.org/index.php?topic=4982.msg39004#msg39004
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]