News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

KiCAD build using CB Project via cmake 4.0

Started by stahta01, May 16, 2025, 10:01:14 PM

Previous topic - Next topic

stahta01

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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

#2
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.


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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]