add the method of cross compile