Author Topic: Patches to compile and link C::B against wxWidgets 2.8.0  (Read 87942 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5494
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #105 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #106 on: January 02, 2007, 12:18:00 am »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #107 on: January 02, 2007, 03:10:45 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.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
« Last Edit: January 02, 2007, 07:58:14 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

SolidNuts

  • Guest
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #108 on: January 09, 2007, 06:10:09 pm »
What patches should I use to compile C::B under Linux with New_wxSmith ?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #109 on: January 09, 2007, 06:26:26 pm »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

SolidNuts

  • Guest
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #110 on: January 09, 2007, 07:21:25 pm »
Code
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
« Last Edit: January 09, 2007, 09:32:07 pm by SolidNuts »

Ryu

  • Guest
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #111 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:

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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #112 on: January 10, 2007, 07:06:40 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
« Last Edit: January 10, 2007, 07:10:26 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Ryu

  • Guest
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #113 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #114 on: January 10, 2007, 07:41:18 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
http://www.savefile.com/projects/1039215
wxpropgrid_1_2_6_prerelease-unix.patch

Tim S
« Last Edit: January 10, 2007, 07:56:56 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

nottin

  • Guest
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #115 on: January 14, 2007, 07:09:31 am »
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 :)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #116 on: January 14, 2007, 07:48:44 am »
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
« Last Edit: January 14, 2007, 08:00:35 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #117 on: January 14, 2007, 09:10:49 am »
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>

« Last Edit: January 14, 2007, 10:03:43 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

nottin

  • Guest
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #118 on: January 14, 2007, 03:45:27 pm »
Builds now.

Thanks for your help :)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #119 on: January 21, 2007, 08:44:36 am »
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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org