Will these devices compatible with each other?

SD card and compass both need SPI.

What are you going to use to provide the power? The USB port or some external power supply.