display callback fails after dist upgrade
by piobair from LinuxQuestions.org on (#6GVBH)
william@geeves:~/projects/gnutran$ uname -a
Linux geeves 6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux
libglut-dev 3.4.0-1
I tried to run a program that used to run perfectly, and received the error:
./gnutran: error while loading shared libraries: libglut.so.3: cannot open shared object file: No such file or directory
So I recompiled the program, ran it and got:
freeglut (./gnutran): ERROR: No display callback registered for window 2
Subject code:
Code: glutInit(&argc,argv);
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
// glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize(WindowWidth, WindowHeight);
glutInitWindowPosition(100, 100);
mainWindow = glutCreateWindow(argv[1]);
glutReshapeFunc(reshape);
glutInitWindowSize(TWindowWidth, TWindowHeight);
glutInitWindowPosition(800, 200);
textWindow = glutCreateWindow("textbox");
glutReshapeFunc(reshapeText);
glutSetWindow(mainWindow);
GLenum err = glewInit();
if (GLEW_OK != err){
/* Problem: glewInit failed, something is seriously wrong. */
fprintf(stderr, "Error: %s\n", glewGetErrorString(err));
}
init();
glutDisplayFunc(display);
glutDisplayFunc(displayText);Presumably it does not like something about
Code:glutDisplayFunc(displayText)Can someone give me a clue?
Linux geeves 6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux
libglut-dev 3.4.0-1
I tried to run a program that used to run perfectly, and received the error:
./gnutran: error while loading shared libraries: libglut.so.3: cannot open shared object file: No such file or directory
So I recompiled the program, ran it and got:
freeglut (./gnutran): ERROR: No display callback registered for window 2
Subject code:
Code: glutInit(&argc,argv);
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
// glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize(WindowWidth, WindowHeight);
glutInitWindowPosition(100, 100);
mainWindow = glutCreateWindow(argv[1]);
glutReshapeFunc(reshape);
glutInitWindowSize(TWindowWidth, TWindowHeight);
glutInitWindowPosition(800, 200);
textWindow = glutCreateWindow("textbox");
glutReshapeFunc(reshapeText);
glutSetWindow(mainWindow);
GLenum err = glewInit();
if (GLEW_OK != err){
/* Problem: glewInit failed, something is seriously wrong. */
fprintf(stderr, "Error: %s\n", glewGetErrorString(err));
}
init();
glutDisplayFunc(display);
glutDisplayFunc(displayText);Presumably it does not like something about
Code:glutDisplayFunc(displayText)Can someone give me a clue?