Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Development / Mostly Successful Build CB 25 on GhostBSD 25
« Last post by glen-the-grey on Yesterday at 09:56:24 pm »
OK so I had a day spare and a laptop spare which I've just installed GhostBSD 25 onto so thought I'd try and build Code::Blocks 25.03.  Specifically I have GhostBSD 25.02-R14.3p2 and while it does have Code::Blocks 20 available in its package repository I wanted something newer.

I didn't do a full build log but half-way through I thought I'd write some notes in case anyone else wanted to do this too.

Set up the build environment

Need to install the autotools and development tools (I wasn't sure exactly which packages so I just installed all the dev tools which is probably excessive).  Note that installing "gcc" will bring in GCC version 13 which will fail to compile because it complains about precompiled headers so I had to remove that and use "gcc15".  I think these are all the packages you will need from a fresh install (as root/sudo):
Code
pkg install autotools
pkg install -g 'GhostBSD*-dev'
pkg remove gcc13
pkg install gcc15

Now its necessary to build wx32-gtk from the Ports tree (I don't think the one available as a package has the config tool but maybe it does and this step is not necessary?)
Code
pkg install ports
cd /usr/ports/x11-toolkits/wxgtk32
sudo make
sudo make install

Finally add a symlink in /usr/local/bin so wx-config points to the right place:
Code
sudo ln -s /usr/local/bin/wxgtk3u-3.2-config /usr/local/bin/wx-config

That should be enough to get the build environment set up and now you can follow the build instructions (i.e., ./bootstrap then ./configure, etc.,) in the CB README, however, the build will fail because of an issue around fontconfig.h not being found and also because the linker can't find the correct location of the kvm libraries.  As far as I can tell this is because GhostBSD (perhaps also other BSDs) keep these in a slightly different location (i.e., /lib instead of /usr/lib for kvm).  I managed to get around these issues in a slightly kludgy way but it did work.

fontconfig.h
I found out after I'd done this that there is a post about this on the forum which is probably a better solution and it would probably be better to modify the Makefile include path, however, I was impatient to carry on building so I simply changed the source file in:

src/plugins/contrib/source_exporter/wxPdfDocument/src/pdffontmanager.cpp

so that the included file was the full path: "/usr/local/include/fontconfig/fontconfig.h"

kvm
I get an error from the linker when building clangd_client so I changed the Makefile in:

src/plugins/contrib/clangd_client so that WX_LIBS has the flags "-L/lib -lkvm":

Code
WX_LIBS = -L/lib -lkvm -L/usr/local/lib ....etc...

And doing all that got me a mostly working build of Code::Blocks...at least as far as I can tell it works, I haven't done any in-depth testing yet but will do that soon.  I say "mostly" working because a couple of the toolbars appear to have missing icons (also in GhostBSD which is using MATE changing the toolbar icon size doesn't actually change the size of the buttons, just the size of the graphics within the buttons).

I'll attach a screenshot if anyone has any suggestions as to where the icons have gone?
2
Nightly builds / The 13 September 2025 build (13733) is out.
« Last post by killerbot on Yesterday at 07:13:28 pm »
We switched to gcc 15.1.0 (on 23 May 2025) --> download the new wx/mingw dll's see link below

Get the compiler we use here : https://github.com/brechtsanders/winlibs_mingw/releases/download/15.1.0posix-12.0.0-ucrt-r1/winlibs-x86_64-posix-seh-gcc-15.1.0-mingw-w64ucrt-12.0.0-r1.7z

Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml

Before you use a nightly make sure you understand how it works.

A link to the unicode windows wxWidget dll(s) for Code::Blocks : https://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/Prerequisites/wxmsw32u_gcc_cb_wx328_2D_gcc1510-mingw64.7z
A link to Mingw64 dll's needed by Code::Blocks : http://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/Prerequisites/Mingw64dlls15.1.0.7z


The 13 September 2025 build is out.
  - Windows :
   http://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/2025/CB_20250913_rev13733_win64.7z
  - Linux :
   none

The current SDK version is : 2.25.0

Resolved Fixed:

  • CodeCompletion: Remove assertion in wxDir when the filename has no path (ticket #1544)
  • IncrementalSearch: Fix search bar resetting on Mac (ticket #1547, thanks Federico Perini).
  • applied patch #1549 by Christo: change visual state of file only if it is not controlled by vcs
  • applied patch #1548: update zlib 1.2.8 -> 1.3.1 by Federico Perini
  • updated two references of bzlib2 to Gitlab version (applied to help- and SpellChecker-plugin) and adopted C::B comments
  • adjust silent installer of release to validate against checks from MS App Store: Remove splash screen in silent install
  • ClangdClient: Apply patches 1551 and 1552 (Thanks Christo)
  • BrowseTracker: Add missing editor activations to jump tracker array
  • applied patch #1550: Bootstrap: C::B requires automake 1.13 or newer (by Carlo Bramini)
  • partially apply patch #1546 Fix crashes when building/running C::B on macOS-arm + clang++ (layout saving), by Federico Perini
  • applied patch #1545 Patch: enable GCC to parse Fortran warnings by Federico Perini
  • compilation fix for non-PCH compilers
  • provide convenience function to fix bug #1534: Running compiled program fails because of wrong PATH

Regressions/Confirmed/Annoying/Common bugs:


    3
    Help / Re: Code blocks does not work with Mac Sequoia
    « Last post by Miguel Gimenez on September 12, 2025, 09:42:26 am »
    Profile spammer reported to moderator.
    4
    Help / Re: Code blocks does not work with Mac Sequoia
    « Last post by hughes2 on September 12, 2025, 09:18:44 am »
    I also encountered a crash when running Code::Blocks on Mac and felt quite annoyed because I couldn't debug. After a while of trying many ways, I switched to CodeLite and found it more stable, although it was a bit strange at first, but after getting used to it, it was quite comfortable to use.
    5
    Hi Pecan, attaching modified files w.r.t svn revision 13733

    Really nice mod. Thanks, I'll test it for a couple of day, then commit.
    6
    Hi Pecan, attaching modified files w.r.t svn revision 13733
    7
    Hi Pecan, you can download it as a patch by adding .patch after commit hash.

    https://github.com/josephch/codeblocks/commit/029005671abfeb6d7c3c07390030605448a09dff.patch

    If this is not sufficient, I'll attach a proper patch later after work.

    Thanks

    Thanks. That looks like I can use that for cut and paste. I appreciate it.
    8
    Hi Pecan, you can download it as a patch by adding .patch after commit hash.

    https://github.com/josephch/codeblocks/commit/029005671abfeb6d7c3c07390030605448a09dff.patch

    If this is not sufficient, I'll attach a proper patch later after work.

    Thanks
    9
    I cannot figure out how to save that page so I can copy the code out of it. I tried save as html, save as jpg, save as ptf, etc. and none of them allow me to mark and copy from them

    Any one know how to capture the code out of that page?
    10
    another info, if you are on linux, download the updated binary since the codeblocks that is in the distribution is probably outdated

    then you can install the most relevnt parts using

    Code
    # dpkg -i codeblocks-common_25.03_all.deb  libcodeblocks0_25.03_amd64.deb codeblocks_25.03_amd64.deb

    and if you have created a codeblock compatible makefile with Cmake you should be able to

    Code
    $ codeblocks app-template.cbp

    Pages: [1] 2 3 4 5 6 ... 10