The problem can only be solved if the cause of migration is eliminated
Now, the same occurrence of the boat people is happening in Europe due mostly to famine, wars, ethnic cleansing, irresponsible and corrupt governments and the very bad economic situation the inhabitants find themselves in.
They leave from African shores touching the Mediterranean basin to cross over in search of a better life. Europe is humane enough to help and look after these people in any way it can.