Author Topic: KiCAD build using CB Project via cmake 4.0  (Read 2435 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
KiCAD build using CB Project via cmake 4.0
« 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

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.
« Last Edit: May 17, 2025, 05:11:10 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: KiCAD build using CB Project via cmake 4.0
« Reply #1 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}
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: KiCAD build using CB Project via cmake 4.0
« Reply #2 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
« Last Edit: May 20, 2025, 08:26:04 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org