You need to change the light source, change the shutter speed on your camera, or fix it in post. Three are various flicker fixing plugins available although none of the good ones are cheap.
I usually do my grading and finishing in Resolve and that has a pretty good de-flicker plugin but for working purely writhin FCPX, seed De Flicker looks good and I've used Digital Anarchy's Deflicker plugin in the past to great effect.
----
Jeff Kirkland | Video Producer & Cinematographer
Hobart, Tasmania | Twitter:
@jeffkirkland