Proof (Lefschetz fixed point)
We will prove the contrapositive. Suppose $f$ has no fixed point.
Since $X$ is compact, $$ \begin{align*} 2δ := \min \sb{\|x - f(x)\|}{x\in X} > 0. \end{align*} $$ Choose a triangulation $K$ of $X$ with mesh $μ(K) < δ$ (e.g. by subdividing), then find a simplicial approximation $g: K^{(r)}\to K$ to $f$. By definition, $f(\op{St}_K(v)) \subseteq \op{St}_L(g(v)) \subseteq B_δ(g(v))$, so $\|f(v) - g(v)\| < δ$ for all $v\in V_{K^{(r)}}$. Since $\|f(v) - v\| \geq 2δ$, we must have $\|g(v) - v\| \geq δ$. This shows if $v\in σ\in K$, then $g(v)\not\in σ$.
Now induced map on homology is given by $f_\ast = g_\ast \circ ν_{K,r}\inv = g_\ast \circ (s^{(r)}_\ast)\inv$, where $s^{(r)}_\bullet$ is the canonical chain map $C_\bullet(K;\Q) \to C_\bullet(K^{(r)}; \Q)$ sending a simplex $σ$ to a sum of its subdivided pieces (with appropriate orientation). Our above construction ensures $g_n(s^{(r)}_n(σ))$ is a sum of simplices disjoint from $σ$, so the matrix of $g_n\circ s_n^{(r)}$ has zero on its diagonal. Thus $$ \begin{align*} \tr (g_n \circ s_n^{(r)}) = 0. \end{align*} $$