You also need to add: -DKICAD_SCRIPTING_ACTION_MENU=OFF.
It is also possible pcbnew_wrap.cxx is a old and incorrect file. must be removed. But if the option -DKICAD_SCRIPTING_ACTION_MENU=OFF is added to others options, it should be no longer used.
You also need to add: SCRIPTING_ ACTION_ MENU=OFF.
-DKICAD_
It is also possible pcbnew_wrap.cxx is a old and incorrect file. must be removed. SCRIPTING_ ACTION_ MENU=OFF is added to others options, it should be no longer used.
But if the option -DKICAD_