Posted by
dinhvan on
Mar 14, 2017; 11:58am
URL: https://forum.jogamp.org/error-during-the-building-of-JOGL-fatal-error-X11-Xlib-h-No-such-file-or-directory-tp4037782.html
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.htmlbut 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