Adoption is not accepted in Islam, and it is void (The adoption which is permissible is not real adoption, it is only a custody.)
The permission has to be taken from the father (X), and he can take his daughter, as his brother has no rights at all, even if the father died, in which case, the daughter can marry her self without referral to the uncle.