Guest Lurker_pas Posted May 18, 2005 Report Share Posted May 18, 2005 (edited) Hi there, First a warning >> I am new to Linux:( I am trying to compile glfw under my system. I think the appropriate command is "make x11". However, when I do that I receive a nice list of errors>> make[1]: Entering directory `/home/user/Dev/glfw-2.5/lib/x11' gcc -c -I. -I.. -I/usr/X11R6/include -Os -Wall -o enable.o ../enable.c In file included from ../internal.h:65, from ../enable.c:36: ./platform.h:48:22: X11/Xlib.h: No such file or directory ./platform.h:49:24: X11/keysym.h: No such file or directory ./platform.h:50:23: X11/Xatom.h: No such file or directory ./platform.h:51:20: GL/glx.h: No such file or directory In file included from ./platform.h:52, from ../internal.h:65, from ../enable.c:36: ./../../include/GL/glfw.h:167:20: GL/gl.h: No such file or directory ./../../include/GL/glfw.h:168:21: GL/glu.h: No such file or directory In file included from ../internal.h:65, from ../enable.c:36: ./platform.h:202: error: syntax error before "Window" ./platform.h:202: warning: no semicolon at end of struct or union ./platform.h:204: error: syntax error before '*' token ./platform.h:204: warning: type defaults to `int' in declaration of `VI' ./platform.h:204: warning: data definition has no type or storage class ./platform.h:205: error: syntax error before "CX" ./platform.h:205: warning: type defaults to `int' in declaration of `CX' ./platform.h:205: warning: data definition has no type or storage class ./platform.h:206: error: syntax error before "WMDeleteWindow" ./platform.h:206: warning: type defaults to `int' in declaration of `WMDeleteWindow' ./platform.h:206: warning: data definition has no type or storage class ./platform.h:219: error: syntax error before '}' token ./platform.h:269: error: syntax error before "Display" ./platform.h:269: warning: no semicolon at end of struct or union ./platform.h:273: error: syntax error before '}' token ./platform.h:273: warning: type defaults to `int' in declaration of `_glfwDisplay' ./platform.h:273: warning: data definition has no type or storage class ./platform.h:406: error: syntax error before "_glfwCreateNULLCursor" ./platform.h:406: error: syntax error before '*' token ./platform.h:406: warning: type defaults to `int' in declaration of `_glfwCreateNULLCursor' ./platform.h:406: warning: data definition has no type or storage class ./platform.h:413: error: syntax error before "keysym" In file included from ../enable.c:36: ../internal.h:175: warning: type defaults to `int' in declaration of `GLubyte' ../internal.h:175: error: syntax error before '*' token ../enable.c: In function `_glfwEnableMouseCursor': ../enable.c:50: error: invalid use of incomplete typedef `_GLFWwin' ../enable.c:50: error: invalid use of incomplete typedef `_GLFWwin' ../enable.c:59: error: invalid use of incomplete typedef `_GLFWwin' ../enable.c:59: error: `GL_FALSE' undeclared (first use in this function) ../enable.c:59: error: (Each undeclared identifier is reported only once ../enable.c:59: error: for each function it appears in.) ../enable.c: In function `_glfwDisableMouseCursor': ../enable.c:64: error: invalid use of incomplete typedef `_GLFWwin' ../enable.c:64: error: invalid use of incomplete typedef `_GLFWwin' ../enable.c:73: error: invalid use of incomplete typedef `_GLFWwin' ../enable.c:74: error: invalid use of incomplete typedef `_GLFWwin' ../enable.c:77: error: invalid use of incomplete typedef `_GLFWwin' ../enable.c:77: error: `GL_TRUE' undeclared (first use in this function) ../enable.c: In function `_glfwEnableSystemKeys': ../enable.c:142: error: invalid use of incomplete typedef `_GLFWwin' ../enable.c:150: error: invalid use of incomplete typedef `_GLFWwin' ../enable.c:150: error: `GL_FALSE' undeclared (first use in this function) ../enable.c: In function `_glfwDisableSystemKeys': ../enable.c:155: error: invalid use of incomplete typedef `_GLFWwin' ../enable.c:163: error: invalid use of incomplete typedef `_GLFWwin' ../enable.c:163: error: `GL_TRUE' undeclared (first use in this function) ../enable.c: In function `_glfwEnableAutoPollEvents': ../enable.c:190: error: invalid use of incomplete typedef `_GLFWwin' ../enable.c: In function `_glfwDisableAutoPollEvents': ../enable.c:195: error: invalid use of incomplete typedef `_GLFWwin' make[1]: *** [enable.o] Error 1 make[1]: Leaving directory `/home/user/Dev/glfw-2.5/lib/x11' make: *** [x11] Error 2 Where can I find these files and how can I point the compiler to them? Or am I doing something completely wrong? Any help will be appreciated... Edited May 18, 2005 by Lurker_pas Quote Link to comment Share on other sites More sharing options...
devries Posted May 18, 2005 Report Share Posted May 18, 2005 Xlib.h: No such file or directory You need to install a devel package that includes the xlib header file. Search the board for devel or header and read it carefully. You can use http://rpm.pbone.net/ to find the name of the package. Just type in the name of the missing file. (in this case probably libxorg-devel. You can install it with urpmi (read the faqs). Good luck. Quote Link to comment Share on other sites More sharing options...
Guest Lurker_pas Posted May 18, 2005 Report Share Posted May 18, 2005 Thanks, that was the problem. I was fighting with these RPMs until rpmdrake saved me. A very productive evening:) Thanks again! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.