最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

discuss from : X11/Xlib.h: No such file or directory

工作和技术 crifan 3391浏览 0评论

when I go into src dir of microwindows to make ,then get error:
scr_x11.c:15:22: error: X11/Xlib.h: No such file or directory
scr_x11.c:16:23: error: X11/Xutil.h: No such file or directory

so ,I go to google to search for related info,and want to find that
these header files in which development package (in which software ,dependent on which software package),but after many search ,I finally only get little useful info about this ,
but following message :

<font color="#339966">apt-file search X11/Xlib.h<br />ghc-cvs-libsrc: usr/share/doc/ghc-cvs-libsrc/X11/Graphics/X11/Xlib.hs<br />ghc6: usr/lib/ghc-6.4.1/imports/Graphics/X11/Xlib.hi<br />ghc6: usr/lib/ghc-6.4.2/imports/Graphics/X11/Xlib.hi<br />ghc6-libsrc: usr/share/doc/ghc6-libsrc/X11/Graphics/X11/Xlib.hs<br />ghc6-libsrc: usr/share/doc/ghc6-libsrc/X11/Graphics/X11/Xlib.hs<br />hugs: usr/lib/hugs/packages/X11/Graphics/X11/Xlib.hs<br />hugs: usr/lib/hugs/packages/X11/Graphics/X11/Xlib.hs<br />ivtools-dev: usr/include/IV-X11/Xlib.h<br />libx11-dev: usr/include/X11/Xlib.h<br />libx11-dev: usr/include/X11/Xlib.h</font>

in :http://www.linuxquestions.org/questions/ubuntu-63/need-xlib.h-and-xutil.h-527462/
remind me that ,I can use the apt command to search these files or develop package by myself.
so I go to do :
sudo apt-file search Xlib.h
but get error ,tell me that the system cannot recognize the apt-get
but I am sure that ,I have use this command before ,so this should be Ok.
(In the end ,I know that ,I have not install the apt-file tools,and the apt-file tools is not get together with the apt-get ,there are seperated tools ! :
crifan@crifan-desktop:~/download/nanox/microwindows-0.90/src$ apt-file -h
The program ‘apt-file’ is currently not installed. You can install it by typing:
sudo apt-get install apt-file
bash: apt-file: command not found

)
in the end of end ,I remind myself that there is a command that apt-cache ,so do :
————————————————————————————–
crifan@crifan-desktop:~/download/nanox/microwindows-0.90/src$ apt-cache search Xlib
gstreamer0.10-x – GStreamer plugins for X11 and Pango
libglu1-mesa-dev – The OpenGL utility library — development files
libosmesa6-dev – Mesa Off-screen rendering extension — development files
libx11-6 – X11 client-side library
libx11-6-dbg – X11 client-side library (debug package)
libx11-dev – X11 client-side library (development headers)
libxcb-composite0 – X C Binding, composite extension
libxcb-composite0-dbg – X C Binding, composite extension, debugging symbols
libxcb-composite0-dev – X C Binding, composite extension, development files
libxcb-damage0 – X C Binding, damage extension
libxcb-damage0-dbg – X C Binding, damage extension, debugging symbols
libxcb-damage0-dev – X C Binding, damage extension, development files
libxcb-dpms0 – X C Binding, dpms extension
libxcb-dpms0-dbg – X C Binding, dpms extension, debugging symbols
libxcb-dpms0-dev – X C Binding, dpms extension, development files
libxcb-glx0 – X C Binding, glx extension
libxcb-glx0-dbg – X C Binding, glx extension, debugging symbols
libxcb-glx0-dev – X C Binding, glx extension, development files
libxcb-randr0 – X C Binding, randr extension
libxcb-randr0-dbg – X C Binding, randr extension, debugging symbols
libxcb-randr0-dev – X C Binding, randr extension, development files
libxcb-record0 – X C Binding, record extension
libxcb-record0-dbg – X C Binding, record extension, debugging symbols
libxcb-record0-dev – X C Binding, record extension, development files
libxcb-render0 – X C Binding, render extension
libxcb-render0-dbg – X C Binding, render extension, debugging symbols
libxcb-render0-dev – X C Binding, render extension, development files
libxcb-res0 – X C Binding, res extension
libxcb-res0-dbg – X C Binding, res extension, debugging symbols
libxcb-res0-dev – X C Binding, res extension, development files
libxcb-screensaver0 – X C Binding, screensaver extension
libxcb-screensaver0-dbg – X C Binding, screensaver extension, debugging symbols
libxcb-screensaver0-dev – X C Binding, screensaver extension, development files
libxcb-shape0 – X C Binding, shape extension
libxcb-shape0-dbg – X C Binding, shape extension, debugging symbols
libxcb-shape0-dev – X C Binding, shape extension, development files
libxcb-shm0 – X C Binding, shm extension
libxcb-shm0-dbg – X C Binding, shm extension, debugging symbols
libxcb-shm0-dev – X C Binding, shm extension, development files
libxcb-sync0 – X C Binding, sync extension
libxcb-sync0-dbg – X C Binding, sync extension, debugging symbols
libxcb-sync0-dev – X C Binding, sync extension, development files
libxcb-xevie0 – X C Binding, xevie extension
libxcb-xevie0-dbg – X C Binding, xevie extension, debugging symbols
libxcb-xevie0-dev – X C Binding, xevie extension, development files
libxcb-xf86dri0 – X C Binding, xf86dri extension
libxcb-xf86dri0-dbg – X C Binding, xf86dri extension, debugging symbols
libxcb-xf86dri0-dev – X C Binding, xf86dri extension, development files
libxcb-xfixes0 – X C Binding, xfixes extension
libxcb-xfixes0-dbg – X C Binding, xfixes extension, debugging symbols
libxcb-xfixes0-dev – X C Binding, xfixes extension, development files
libxcb-xinerama0 – X C Binding, xinerama extension
libxcb-xinerama0-dbg – X C Binding, xinerama extension, debugging symbols
libxcb-xinerama0-dev – X C Binding, xinerama extension, development files
libxcb-xlib0 – X C Binding, Xlib/XCB interface library
libxcb-xlib0-dbg – X C Binding, Xlib/XCB interface library, debugging symbols
libxcb-xlib0-dev – X C Binding, Xlib/XCB interface library, development files
libxcb-xprint0 – X C Binding, xprint extension
libxcb-xprint0-dbg – X C Binding, xprint extension, debugging symbols
libxcb-xprint0-dev – X C Binding, xprint extension, development files
libxcb-xtest0 – X C Binding, xtest extension
libxcb-xtest0-dbg – X C Binding, xtest extension, debugging symbols
libxcb-xtest0-dev – X C Binding, xtest extension, development files
libxcb-xv0 – X C Binding, xv extension
libxcb-xv0-dbg – X C Binding, xv extension, debugging symbols
libxcb-xv0-dev – X C Binding, xv extension, development files
libxcb-xvmc0 – X C Binding, xvmc extension
libxcb-xvmc0-dbg – X C Binding, xvmc extension, debugging symbols
libxcb-xvmc0-dev – X C Binding, xvmc extension, development files
libxcb1 – X C Binding
libxcb1-dbg – X C Binding, debugging symbols
libxcb1-dev – X C Binding, development files
pxlib-dev – library to read/write Paradox database files
pxlib1 – library to read/write Paradox database files
xcb-proto – X C Binding – protocol descriptions
xcursor-themes – Base X cursor themes
xkb-data – X Keyboard Extension (XKB) configuration data
xlibmesa-gl-dev – transitional package for Debian etch
xlibs-static-dev – transitional metapackage
cl-clue – Lisp package for clue/clio/pictures: X interfaces for lisp
cl-clx-sbcl – An X11 Common Lisp client library for SBCL
cmucl-source – The CMUCL lisp sources
crossfire-client-x11 – XLib Client of the game Crossfire
fp-units-base – Free Pascal — base units
imlib11 – Imlib is an imaging library for X and X11
imlib11-dev – Imlib is an imaging library for X and X11
jwm – Very small lightweight pure X11 window manager with tray and menus
liballegro4.2 – portable library for cross-platform game and multimedia development
libforms1 – The XForms graphical interface widget library
libformsgl1 – The OpenGL XForms graphical interface widget library
libggi-target-x – General Graphics Interface X display target
libghc6-x11-dev – Haskell X11 binding for GHC
libghc6-x11-doc – Haskell X11 binding for GHC; documentation
libghc6-x11-prof – Haskell X11 binding for GHC; profiling libraries
libhugs-x11-bundled – A binding to the X11 graphics library
libjsw-dev – Joystick Library header files
libjsw2 – Joystick Library
libxclass-dev – C++ GUI toolkit for X
libxclass0.9.2 – C++ GUI toolkit for X
libxsharp-dev – DotGNU X11# libraries
libxsharp0 – DotGNU X11# libraries
linux-libertine – The Linux Libertine family of free fonts
python-xlib – Interface for Python to the X11 Protocol
stalin – An extremely aggressive Scheme compiler
ude – The Unix Desktop Environment
uwm – The ultimate window manager for UDE
vim-syntax-gtk – Syntax files to highlight gtk+ keywords in vim
xclass-common – common components for C++ GUI toolkit for X
xlassie – Dockable mail notifier w/ message count & POP3/APOP/IMAP support
xlibmesa-dri – transitional package for Debian etch
xlibmesa-gl – transitional package for Debian etch
xlibmesa-glu – transitional package for Debian etch
xlibs-data – transitional package for X11 client data
xppaut – Phase Plane Plus Auto: Solves many kinds of equations
xspecs – X protocol, extension, and library technical specifications
xtrlock – Minimal X display lock program

————————————————————————————–

we can see that the dev tools "libx11-dev" is what we need . ^_^
before here ,I have done "apt-cache search X11" ,but the list info is too more to display ,and you can find what you want from these "garbage" listed infomation.

after know the name of the develop tool ,we can do :
————————————————————————————–
crifan@crifan-desktop:~/download/nanox/microwindows-0.90/src$ sudo apt-get install libx11-dev
[sudo] password for crifan:
Reading package lists… Done
Building dependency tree      
Reading state information… Done
The following extra packages will be installed:
libxau-dev libxdmcp-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev xtrans-dev
The following NEW packages will be installed:
libx11-dev libxau-dev libxdmcp-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev xtrans-dev
0 upgraded, 7 newly installed, 0 to remove and 191 not upgraded.
Need to get 8933kB of archives.
After unpacking 22.5MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://cn.archive.ubuntu.com gutsy/main x11proto-core-dev 7.0.10-2 [86.3kB]
0% [1 x11proto-core-dev 59222/86.3kB 68%]                                                                         
Get:2 http://cn.archive.ubuntu.com gutsy/main x11proto-core-dev 7.0.10-2 [86.3kB]
Get:3 http://cn.archive.ubuntu.com gutsy/main libxau-dev 1:1.0.3-2 [15.6kB]                                       
Get:4 http://cn.archive.ubuntu.com gutsy/main libxdmcp-dev 1:1.0.2-2 [20.0kB]                                     
Get:5 http://cn.archive.ubuntu.com gutsy/main x11proto-input-dev 1.4.2-1 [15.6kB]                                 
Get:6 http://cn.archive.ubuntu.com gutsy/main x11proto-kb-dev 1.0.3-2ubuntu1 [27.0kB]
                            
Get:7 http://cn.archive.ubuntu.com gutsy/main xtrans-dev 1.0.3-2 [70.2kB]                                         
Get:8 http://cn.archive.ubuntu.com gutsy/main libx11-dev 2:1.1.1-1ubuntu4 [8699kB]                                
Get:9 http://cn.archive.ubuntu.com gutsy/main libx11-dev 2:1.1.1-1ubuntu4 [8699kB]                                
Get:10 http://cn.archive.ubuntu.com gutsy/main libx11-dev 2:1.1.1-1ubuntu4 [8699kB]                               
Get:11 http://cn.archive.ubuntu.com gutsy/main libx11-dev 2:1.1.1-1ubuntu4 [8699kB]                               
Get:12 http://cn.archive.ubuntu.com gutsy/main libx11-dev 2:1.1.1-1ubuntu4 [8699kB]                               
Get:13 http://cn.archive.ubuntu.com gutsy/main libx11-dev 2:1.1.1-1ubuntu4 [8699kB]                               
Get:14 http://cn.archive.ubuntu.com gutsy/main libx11-dev 2:1.1.1-1ubuntu4 [8699kB]                               
Get:15 http://cn.archive.ubuntu.com gutsy/main libx11-dev 2:1.1.1-1ubuntu4 [8699kB]                               
Fetched 3644kB in 52m29s (1157B/s)                                                                                
Selecting previously deselected package x11proto-core-dev.
(Reading database … 91156 files and directories currently installed.)
Unpacking x11proto-core-dev (from …/x11proto-core-dev_7.0.10-2_all.deb) …
Selecting previously deselected package libxau-dev.
Unpacking libxau-dev (from …/libxau-dev_1%3a1.0.3-2_i386.deb) …
Selecting previously deselected package libxdmcp-dev.
Unpacking libxdmcp-dev (from …/libxdmcp-dev_1%3a1.0.2-2_i386.deb) …
Selecting previously deselected package x11proto-input-dev.
Unpacking x11proto-input-dev (from …/x11proto-input-dev_1.4.2-1_all.deb) …
Selecting previously deselected package x11proto-kb-dev.
Unpacking x11proto-kb-dev (from …/x11proto-kb-dev_1.0.3-2ubuntu1_all.deb) …
Selecting previously deselected package xtrans-dev.
Unpacking xtrans-dev (from …/xtrans-dev_1.0.3-2_all.deb) …
Selecting previously deselected package libx11-dev.
Unpacking libx11-dev (from …/libx11-dev_2%3a1.1.1-1ubuntu4_i386.deb) …
Setting up x11proto-core-dev (7.0.10-2) …
Setting up libxau-dev (1:1.0.3-2) …
Setting up libxdmcp-dev (1:1.0.2-2) …
Setting up x11proto-input-dev (1.4.2-1) …
Setting up x11proto-kb-dev (1.0.3-2ubuntu1) …
Setting up xtrans-dev (1.0.3-2) …
Setting up libx11-dev (2:1.1.1-1ubuntu4) …
   

……….

If anyone want to know more info about "apt" "apt-get ",you can refer here:
apt-get HOW TO

转载请注明:在路上 » discuss from : X11/Xlib.h: No such file or directory

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
79 queries in 0.181 seconds, using 22.15MB memory