[solved] upgrade c++ project from ue 4.24 to 4.25 under Linux

Just for any looking at this in future. The solution I gave above only applicable when upgrading old project on Linux from 4.24 or below to 4.25+ and you have no other error.
But if you have gis hotreload error or a menu showing that engine modules cant be compiled while editor is running then use the solution that @TestSubject89 has suggested. These problems are not the same