@phermium Great! I think it is just like this. I told you to install Grub Customizer because i had the same issue (as i said before) and only adding those lines in grub.cfg did not helped. But i’m glad you got rid of headache!
@Rusiru Unfortunately i’m unable to help if you don’t share details. Are errors popping up on screen? If yes, which one? All dependencies are satisfied? Did you tested your code in other machine and it compiled/ran flawlessly?