kicad does not build when BUILD_SHARED_LIBS is ON

Bug #708535 reported by Andrey Zabolotnyi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Invalid
Undecided
Unassigned

Bug Description

When configuring cmake with -DBUILD_SHARED_LIBS:BOOL=ON , kicad will not compile. Specifically, when at last the "kicad" executable is linked, the build process will interrupt with the error message:

../common/libcommon.so: undefined reference to `BOARD::GetLayerColor(int)'
../common/libcommon.so: undefined reference to `BOARD::GetLayerName(int) const'

I'm not sure if it's your intention to support building KiCad with shared libraries, but that's how KiCad currently builds for Fedora. I just tried to build a fresher rpm for Fedora, and found that I have to add -UBUILD_SHARED_LIBS to cmake command line to circumvent this problem.

Revision history for this message
Martin Errenst (imp-d) wrote :

Closing, too old and incomplete.

Changed in kicad:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.