There's an easier way.
Put it up in the GTS for trade. Find a trade you can complete in the GTS and do it. Then take back your pokemon. It will evolve.
Make sure you ask something ridiculous for it, like a level 100 female lucario... so it doesn't accidentally get traded away.
Pearl FC: 3694 6848 6578