compile codegen source and get library file