If you 'mean to do' something you intend to do it. It's often used in the past, to refer to something you had wanted or planned to do, but for some reason you didn't do it.
'Mean doing something'?? I'm not sure that form exists. Maybe I'm just not a very good Guru....