... mean to have ...
... mean having ...
Losing weight doesn't have to mean taking all the fun out of eating.
Self-confidence does not mean putting others down in order to make oneself feel more powerful or capable.
He meant to say thank you, but the words got lost on the way to his mouth.
She did not mean to hurt anybody's feelings.