Displaying 4 results from an estimated 4 matches for "glutcreatewindow".
2015 Feb 16
4
[LLVMdev] Segfault when using llvm-3.6 and OpenGL at the same time on Linux (with mesa, which uses llvm-3.4)
...() from
/usr/lib/i386-linux-gnu/mesa/libGL.so.1
#17 0xb7fa1f76 in fgChooseFBConfig () from
/usr/lib/i386-linux-gnu/libglut.so.3
#18 0xb7fa2225 in fgOpenWindow () from /usr/lib/i386-linux-gnu/libglut.so.3
#19 0xb7fa0daa in fgCreateWindow () from
/usr/lib/i386-linux-gnu/libglut.so.3
#20 0xb7fa2943 in glutCreateWindow () from
/usr/lib/i386-linux-gnu/libglut.so.3
#21 0x0808b6c2 in main ()
I could drill it down to a testcase like this:
(You can view and clone the source from my github repository:
https://github.com/daniel-kun/llvmcrash )
daniel at ubuntu32-dev:~/projects/llvmcrash/app$ cat crashme.cpp
// Shared...
2006 Oct 16
0
No window decorations for simple glut app on compiz/aiglx?
...00 driver.
#include <GL/glut.h>
void DrawScene(void)
{
	glClearColor(0.5, 0.0, 0.0, 0.0);
	glClear(GL_COLOR_BUFFER_BIT);
	glColor3f(0.0, 0.1, 1.0);
	glutSolidTeapot(0.6);
	glFlush();
}
int main(int argc, char *argv[])
{
	glutInit(&argc, argv);
	glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB);
	glutCreateWindow(argv[0]);
	glutDisplayFunc(DrawScene);
	glutMainLoop();
	return 0;
}
2013 Jan 26
1
[LLVMdev] lli problem with a simple OpenGL
 Hello,
I wrote a very simple openGL application, as below
#include 
#include 
int main(int argc, char **argv)
{
  glutInit(&argc, argv);
  glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
  glutCreateWindow("red 3D lighted cube");
  printf("GL_VERSION = %s\n",glGetString(GL_VERSION) );
  return 0;
}
Compiling it with Clang and adding -lglut option worked correctly
$ clang  simple.c  -o  simple  -lglut
$ ./simple
GL_VERSION = 2.1 Mesa 7.10.2
But, adding the -emit-llvm option to cl...
2013 Jan 28
0
[LLVMdev] Testing canaries
...text/plain; charset="utf-8"
>
> ?Hello,
>
> I wrote a very simple openGL application, as below
>
> #include
> #include
> int main(int argc, char **argv)
> {
> ? glutInit(&argc, argv);
> ? glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
> ? glutCreateWindow("red 3D lighted cube");
> ? printf("GL_VERSION = %s\n",glGetString(GL_VERSION) );
> ? return 0;
> }
>
> Compiling it with Clang and adding -lglut option worked correctly
> $ clang? simple.c? -o? simple? -lglut
> $ ./simple
> GL_VERSION = 2.1 Mesa 7.10.2
&...