First time here? Check out the FAQ!
in apps/createsamples/utility.cpp commenting out this line (line 552 in opencv 3.4.4) worked for me after commenting