Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: stahta01 on May 16, 2025, 10:01:14 pm

Title: KiCAD build using CB Project via cmake 4.0
Post by: stahta01 on May 16, 2025, 10:01:14 pm
I am trying once more to update these old directions https://wiki.codeblocks.org/index.php/KiCadBuildQuickRef (https://wiki.codeblocks.org/index.php/KiCadBuildQuickRef)

This time using MSys2 UCRT64 and kicad git repo.

The CB Project is now made; the project has build errors; but, the error is the same as the KiCAD Msys2 mingw package.

I have only build the targets "kicad" and "all" both failed with an compiler error that might be a missing include

Tim S.
Title: Re: KiCAD build using CB Project via cmake 4.0
Post by: stahta01 on May 17, 2025, 05:15:33 pm
The toolchain setting I am using for codeblocks IDE launched and packaged from MSys2

GNU GCC Compiler
Compiler installation Directory: ${MINGW_PREFIX}
Title: Re: KiCAD build using CB Project via cmake 4.0
Post by: stahta01 on May 20, 2025, 12:29:07 am
Kicad CB project is still building; currently at 57% of target built; the define of "NANODBC_DISABLE_ASYNC" is not likely the correct workaround of the build error at 11 or 12 percent. I decided that -DNANODBC_DISABLE_ASYNC=ON is a good solution but it is a few hours from finishing building.

Code
mkdir -p ~/devel/kicad/cb_build && cd ~/devel/kicad/cb_build && \
cmake \
  -DOCC_INCLUDE_DIR="${MINGW_PREFIX}"/include/opencascade \
  -DKICAD_BUILD_QA_TESTS=OFF \
  -DNANODBC_DISABLE_ASYNC=1 \
  -G"CodeBlocks - MinGW Makefiles" .. > log.txt