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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #30 on: November 26, 2006, 11:58:15 pm »
Started new thread C::B runtime errors when WXWIN_COMPATIBILITY_2_4=0
http://forums.codeblocks.org/index.php?topic=4573

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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #31 on: December 02, 2006, 07:53:24 am »
Note: wxSmith is NOT in this report;
  waiting on the new wxSmith before trying to port to wxW2.8
 
Number of Warnings is from Windows XP Unicode wxW2.8 CVS Head;
  compiled with minGW GCC 3.4.2 API 3.7

Number      Area       
 87         Core
 16         Contrib
103         Total

Number      Section
  7         scintilla
 13         wxPropertyGrid
  6         wxFlatNotebook
 24         sdk
  8         src
 14         Compiler
  4         Debugger
  3         Code-completion
  2         Class wizard
  4         Scripted wizard
  2         To-do
  3         EnvVars Plug-In
  5         C::B KeyBinder
  8         wxPdfDocument

Number  warning                   
 51     comparison between signed and unsigned integer expressions
  5     BeginDrawing is deprecated
  5     EndDrawing is deprecated
  2     __comp_ctor is deprecated
  8     Inside is deprecated
  1     SetFrame is deprecated
  7     SetBestFittingSize is deprecated
  1     GetBestFittingSize is deprecated
  3     Member is deprecated
  4     wxStartTimer is deprecated
  4     wxGetElapsedTime is deprecated
  2     wxGetWorkingDirectory is deprecated
  2     wxGetAccelFromString is deprecated
  2     converting to int from double
  5     enumeration value ... not handled in switch
        ?? I missed some since count is off.
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 Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #32 on: December 03, 2006, 01:09:22 am »
That is quite a lot I get about 6 in the core with GCC 4.1 and wxGTK 2.6.3 on Ubuntu Edgy.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #33 on: December 12, 2006, 07:38:14 am »
That is quite a lot I get about 6 in the core with GCC 4.1 and wxGTK 2.6.3 on Ubuntu Edgy.

But, you just changed the compiler, I changed the wxWidgets library. There is no comparison between the two.

Note: when I did my changes with a prerelease minGW GCC 4.1.1 I got over 4000 warning. So, I am not sure how you got only 6.

Tim S
« Last Edit: December 12, 2006, 08:42:46 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: 7590
    • My Best Post
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #34 on: December 12, 2006, 01:24:58 pm »
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 thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #35 on: December 12, 2006, 03:53:50 pm »
Unless I am very mistaken, this is not correct, it is the RC3, not the 2.8.0 release.

Both the news section on Sourceforge and the wxWidgets site say so.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #36 on: December 12, 2006, 04:47:07 pm »
No it is the final release or maybe RC4; RC3 was last week. They just started updating the web page a few hours ago. The download link is the first thing they changed it no longer has rc in it.

Some sub group put out an RC2 so they skipped it and went to RC3 last week, and this release is supposed to be the final release or RC4 according to the dev list. The people saying final release seems to be winning in the dev list.

Tim S
« Last Edit: December 12, 2006, 04:54:41 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #37 on: December 12, 2006, 07:39:55 pm »
From http://sourceforge.net/forum/forum.php?forum_id=644606
Quote
Posted By: juliansmart
Date: 2006-12-12 12:45
Summary: wxWidgets 2.8.0 released

December 12th, 2006: the wxWidgets team is pleased to announce a major new release. Compared with the last stable series (2.6), 2.8.0 adds wxAUI (an advanced user interface library for docking and other functionality), wxRichTextCtrl, wxComboCtrl, wxOwnerDrawnComboBox, wxTreebook, various picker controls such as wxColourPickerCtrl, wxHyperlinkCtrl, partial right-to-left language support, support for Core Graphics on Mac OS X, tar archive support, and more. Get wxWidgets from http://www.wxwidgets.org/downloads/.

Download links at http://sourceforge.net/project/showfiles.php?group_id=9863
« Last Edit: December 12, 2006, 07:43:52 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

Offline SharkCZ

  • Almost regular
  • **
  • Posts: 131
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #38 on: December 15, 2006, 11:10:59 pm »
Is it possible to build current C::B with wxWidgets 2.8, any patches required? Fedora Extras Development moved to WX 2.8 today, so I would like to be able to rebuild C::B with it in the near future.
Code::Blocks package maintainer for Fedora and EPEL

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #39 on: December 15, 2006, 11:33:08 pm »
It is not yet possible without a bunch of patches. As far as I know there are not much patches submitted, so you have to do it yourself.
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #40 on: December 15, 2006, 11:35:14 pm »
Is it possible to build current C::B with wxWidgets 2.8, any patches required? Fedora Extras Development moved to WX 2.8 today, so I would like to be able to rebuild C::B with it in the near future.

Just the ones mentioned in the first message in this thread, note none of these have been tested under Linux, but some were tested under Mac by afb. These patches need testing, so if you have problems reply in this thread on it. And, I will look into it.

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

Offline SharkCZ

  • Almost regular
  • **
  • Posts: 131
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #41 on: December 16, 2006, 07:43:24 pm »
I have looked at the first page and there are only patches for C::B, no patching of wxGTK is required. That´s good.
Code::Blocks package maintainer for Fedora and EPEL

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #42 on: December 16, 2006, 10:59:08 pm »
But without the patches, codeblocks will not compile, that's no good...
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #43 on: December 17, 2006, 12:55:05 am »
But without the patches, codeblocks will not compile, that's no good...

Correct, the patches are to get codeblocks to compile and link against wxWidgets 2.8. It runs and compiles itself, I can't say it does more than that. I have fixed the issues I found except for the fact it gives about 75 to 110 warnings.

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

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Patches to compile and link C::B against wxWidgets 2.8.0
« Reply #44 on: December 18, 2006, 09:13:17 pm »
Hello all you wx 2.7.x and 2.8.x folks.

I am going to apply patches (one at a time) to get it to build for wx, only if they meet the following conditions (if those are acceptable conditions) :
1) all wx 2.7.x patches should be considered not existing [2.7.x are development series, not official release series]
 -> so please adjust all your patches for 2.8 and remove all references to 2.7.x, I'd prefer not to look at any 2.7 patch at berlios and like to close it without looking at it. I'd prefer not tp spend time on them and then in the end find out that a little thing might have changed in the official 2.8
2) as a result of 1), I'd like to see all ifdef constructs referring to 2.7.x removed, I think we should not ifdef polute our code on unofficial versions, and certainly not versions we won't support, don't take this as an insult, I am very thankful for all the hard work, but in the end all that research will pay back in the "official 2.8 patches" ;-)
3) all patches should describe what they are doing :
 a) how comes it does not work without the patch (so what did 2.8 break) [== the why]
 b) a little explanation how wx 2.8 now does it
 c) whatever information you can give to make our life easier to understand and apply the patches without doing the research ourself from scratch

4) OPEN QUESTION : I guess most linux distros are now already somewhere in the 2.6.x line [x can still be 1 or 2 or 3 !!!], can we kick out 2.4.x specific things ?

5) unfortunately we can't use anything yet of the new functionalities of wx 2.8 since probably it will take 6 months to 1 year until the major linux distros come with a newer version [some example : I think they have new about boxes or so ...]


Let me stress one thing : many many thanks to all of you who already sorted things out on what happened with wx ;-) , now it's just a little documentation step and cleaning.