compile wrapper and generate kar