Quantcast

error during the building of JOGL: fatal error: X11/Xlib.h: No such file or directory

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

error during the building of JOGL: fatal error: X11/Xlib.h: No such file or directory

dinhvan
Hello,

I try to build JOGL packages on Windows 7 64 bits following the steps in the guide belows:
https://jogamp.org/jogl/doc/HowToBuild.html

but the process has been stopped at this command:
>> cd jogl/make
>> ant
(open a command shell in the "jogl/make" directory of the source tree and type "ant".)

The errors is such as "fatal error: X11/Xlib.h: No such file or directory"
The display of consonle as:
"


c.build.jogl.prepare:
     [echo] Output lib name = jogl_ffmpegv08
     [echo] Compiling jogl_ffmpegv08
       [cc] 4 total files to be compiled.
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] Starting link
     [echo] Output lib name = jogl_ffmpegv09
     [echo] Compiling jogl_ffmpegv09
       [cc] 4 total files to be compiled.
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] Starting link
     [echo] Output lib name = jogl_ffmpegv10
     [echo] Compiling jogl_ffmpegv10
       [cc] 4 total files to be compiled.
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] Starting link
     [echo] Output lib name = jogl_ffmpegv11
     [echo] Compiling jogl_ffmpegv11
       [cc] 4 total files to be compiled.
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] Starting link

c.build.jogl.desktop:
     [echo] Output lib name = jogl_desktop
     [echo] Compiling jogl_desktop
       [cc] 10 total files to be compiled.
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] c:\jogl\jogl\build\jogl\gensrc\native\jogl\gl4\GL4bcImpl_JNI.c:39:25
: fatal error: X11/Xlib.h: No such file or directory
       [cc]     #include <X11/Xlib.h>
       [cc]                          ^
       [cc] compilation terminated.
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] c:\jogl\jogl\build\jogl\gensrc\native\jogl\Windows\WGL_JNI.c:41:25:
fatal error: X11/Xlib.h: No such file or directory
       [cc]     #include <X11/Xlib.h>
       [cc]                          ^
       [cc] compilation terminated.
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] In file included from c:\jogl\jogl\make\stub_includes\egl/EGL/egl.h:
39:0,
       [cc]                  from c:\jogl\jogl\src\jogl\native\EGLContext.c:10:
       [cc] c:\jogl\jogl\make\stub_includes\egl/EGL/eglplatform.h:99:22: fatal e
rror: X11/Xlib.h: No such file or directory
       [cc]  #include <X11/Xlib.h>
       [cc]                       ^
       [cc] compilation terminated.
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC+
+ but not for C
       [cc] c:\jogl\jogl\build\jogl\gensrc\native\jogl\Windows\WGLExtImpl_JNI.c:
41:25: fatal error: X11/Xlib.h: No such file or directory
       [cc]     #include <X11/Xlib.h>
       [cc]                          ^
       [cc] compilation terminated.

BUILD FAILED
c:\jogl\jogl\make\build.xml:75: The following error occurred while executing thi
s line:
c:\jogl\jogl\make\build-jogl.xml:1705: The following error occurred while execut
ing this line:
c:\jogl\jogl\make\build-jogl.xml:1608: gcc failed with return code 1

Total time: 2 minutes 28 seconds

"

Can you help me to solve this error?

Thanks
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: error during the building of JOGL: fatal error: X11/Xlib.h: No such file or directory

gouessej
Administrator
Hi

I'm sorry but the build instructions are correct, I used them to build JOGL under Windows 7 64 bits. Ensure that you use the right version of MinGW.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: error during the building of JOGL: fatal error: X11/Xlib.h: No such file or directory

gouessej
Administrator
In reply to this post by dinhvan
Do you have mingw-libX11 or anything similar?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: error during the building of JOGL: fatal error: X11/Xlib.h: No such file or directory

gouessej
Administrator
In reply to this post by dinhvan
Loading...