Code::Blocks

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: headkase on May 21, 2018, 02:01:25 am

Title: Updating Build from Source and MinGW Toolchain wiki pages
Post by: headkase 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.

Title: Re: Updating Build from Source and MinGW Toolchain wiki pages
Post by: headkase 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.
Title: Re: Updating Build from Source and MinGW Toolchain wiki pages
Post by: Quiss 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 (http://forums.codeblocks.org/index.php?topic=20214.0)" 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.
Title: Re: Updating Build from Source and MinGW Toolchain wiki pages
Post by: ollydbg 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.
Title: Re: Updating Build from Source and MinGW Toolchain wiki pages
Post by: Quiss 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.
Title: Re: Updating Build from Source and MinGW Toolchain wiki pages
Post by: ollydbg 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. :)
Title: Re: Updating Build from Source and MinGW Toolchain wiki pages
Post by: Quiss 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.
Title: Re: Updating Build from Source and MinGW Toolchain wiki pages
Post by: ollydbg 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.  :)