Fetching details from the dictionary...

empty; void; vacant
vain; fruitless; futile; ineffective
lifeless
部屋は空しく誰もいません。
The room is empty with no one there.
空しい努力だったと後で気づきました。
I felt it was a vain effort.
空しい気持ちのまま一人で家に帰りました。
I went home with an empty feeling.