The first one that came to my mind was 'Martin Eden' but I'm not sure if it is really what you're looking for. It seems like the main hero inspires himself to achieving success by loving a woman and desiring to be worthy of her while she just exists.