Author Topic: Updating Build from Source and MinGW Toolchain wiki pages  (Read 9096 times)

Offline headkase

  • Almost regular
  • **
  • Posts: 159
Updating Build from Source and MinGW Toolchain wiki pages
« on: May 21, 2018, 02:01:25 am »
Build from Source:

http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows

MinGW Installation:

http://wiki.codeblocks.org/index.php/MinGW_installation

I contributed significantly to the Build from Source and MinGW Installation pages on the Code::Blocks wiki.  Many many edits I did to polish them.   :)

I now see that the first nightly build targetting 64 bit and Wx 3.1.1 has been released.  With that, how different is the build process?  I haven't done a from-SVN build with that yet.  I'd like to update the Build from Source page with instructions that target 64 bit and Wx 3.1.1.  Would the instructions be different enough to warrant a different page?  And if they are different enough should the existing page be rewritten with only the new process in mind and discard the previous instructions?

Also, for the recommended MinGW installation what is the consensus of MinGW-Builds 64 bit GCC 7.3.0:

https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/7.3.0/threads-posix/seh/

If there is going to be a clean break between the old and new bases of Code::Blocks then perhaps that compiler would be something to switch to as well?  I'm asking this up front because if the consensus is positive then I'd like to write the Code::Blocks wiki pages using it as the reference.

The existing MinGW Installation page I built around TDM as before I began the changes it was mentioned in the wiki page that TDM builds were the "recommended" MinGW builds to use with Code::Blocks.  Are there any thoughts around this that I may not be aware of?

I am fully willing to plug away at the wiki - if I can't contribute code then I'm happy to contribute documentation.

Thanks,
Bill.

« Last Edit: May 21, 2018, 02:06:06 am by headkase »

Offline headkase

  • Almost regular
  • **
  • Posts: 159
Re: Updating Build from Source and MinGW Toolchain wiki pages
« Reply #1 on: May 26, 2018, 10:19:36 pm »
I built Code::Blocks 64-bit with Wx3.1.1 (stand-alone Code::Blocks with Toolchain .dll's included - only need to supply your own compiler):

https://www.dropbox.com/s/ou0uopyrzz92y85/CodeBlocks-SVN11412.7z?dl=0

It seems to work fine, if no one objects then I'll update the Wiki with instructions inline only where they differ.  Unless there are any objections, MinGW-Builds 7.3.0 will be the reference for 64-bit Wx3.1.1 while the existing instructions will stay the same.
« Last Edit: May 26, 2018, 10:21:08 pm by headkase »

Offline Quiss

  • Multiple posting newcomer
  • *
  • Posts: 76
Re: Updating Build from Source and MinGW Toolchain wiki pages
« Reply #2 on: October 01, 2018, 01:37:35 pm »
Hi,

1. There should be a warning about old gcc versions (and TDM-GCC) on top of the section "Build wxWidgets Support Library" because of these issues:
Enable the PCH when build C::B against wx3.x: http://forums.codeblocks.org/index.php/topic,22450.0.html
Threadsearch plugin cause crash when initilized (wx3.1,C::B svn head): http://forums.codeblocks.org/index.php/topic,22198.0.html

Since official pre built libraries provided for wxWidgets 3.1.1 is gcc 7.2.0 (http://forums.codeblocks.org/index.php/topic,22198.msg152599.html#msg152599), I used that version for building too. (x86_64-7.2.0-release-win32-seh-rt_v5-rev1)


2. About building 64-bit projects:

Every 64-bit project's WX_CFG variable is empty like in 32-bit projects. (Project build options->Custom variables). Since it's written on the wiki page to add "CFG=64" when building wxWidgets with 64-bit compiler, all projects should be updated with WX_CFG=64. There is a proposal about this issue (http://forums.codeblocks.org/index.php/topic,21696.0.html) but I don't know when or if it will be in the trunk, so it is better to mention it on the wiki.

Also it's worth mentioning about "Projects Options Manipulator Plugin" in order to change WX_CFG variable like this:
https://imgur.com/a/CAFIT0i


3. git repo

Maybe we could put obfuscated's repo link (https://github.com/obfuscated/codeblocks_sf) around somewhere under "Prerequisites" section.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Updating Build from Source and MinGW Toolchain wiki pages
« Reply #3 on: October 06, 2018, 04:47:49 am »
@Quiss
Thanks for those information.
Can you put them in the wiki? I think you can directly edit the wiki page.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Quiss

  • Multiple posting newcomer
  • *
  • Posts: 76
Re: Updating Build from Source and MinGW Toolchain wiki pages
« Reply #4 on: October 06, 2018, 06:36:44 am »
Unfortunately I can't login to wiki page. headkase has been updating wiki so I put related information here.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Updating Build from Source and MinGW Toolchain wiki pages
« Reply #5 on: October 06, 2018, 07:01:58 am »
Unfortunately I can't login to wiki page. headkase has been updating wiki so I put related information here.
You forget your password? If so, you can try to recover your password.
If you don't have an account, I think some administrator can create one for you. :)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Quiss

  • Multiple posting newcomer
  • *
  • Posts: 76
Re: Updating Build from Source and MinGW Toolchain wiki pages
« Reply #6 on: October 06, 2018, 08:10:27 am »
I can't log in with my forum account and I don't have a seperate wiki account.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Updating Build from Source and MinGW Toolchain wiki pages
« Reply #7 on: October 20, 2018, 05:05:56 pm »
I can't log in with my forum account and I don't have a seperate wiki account.
I suggest you can PM jens or MortenMacfly(they are wiki administrators as I know) for the wiki account help.  :)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.