RE: Xorg R7.6 mesa/egl Makefile fixing in Ubuntu 10.10
Hi man, you can try it in ubuntu system... But the issue "can't find the X11/Xlib.h" is in the source codes from the git, maybe the version is not R7.6 since I found that there're some different in xserver source code between the git database and download from the www.x.org Xorg R7.6 release... Dennis -Original Message- From: xorg-bounces+dennis1.chen=amd@lists.freedesktop.org [mailto:xorg-bounces+dennis1.chen=amd@lists.freedesktop.org] On Behalf Of Alan Coopersmith Sent: 2011年2月22日 0:45 To: xorg@lists.freedesktop.org Subject: Re: Xorg R7.6 mesa/egl Makefile fixing in Ubuntu 10.10 On 02/21/11 12:05 AM, Chen, Dennis (SRDC SW) wrote: > Hi All, > > > > I found that current the Makefile of mesa/mesa/src/egl/main in X11 R7.6 has > the > below line: > > > > INCLUDE_DIRS = -I$(TOP)/include > > > > When build the mesa module in Ubuntu system, this will led to a build error > complaining “can’t find the X11/Xlib.h”, that’s because in ubuntu, the Xlib.h > is > located in /usr/include/X11 by default, so I think That's where Xlib.h is located on most systems. > The Makefile should be changed to: > > INCLUDE_DIRS = -I$(TOP)/include -I/usr/include/X11 That doesn't make sense. The #include path is relative to the -I path, so you've just specified that #include should be looking for /usr/include/X11/X11/Xlib.h. Compilers normally include -I/usr/include by default so no -I flag is needed for #include to find /usr/include/X11/Xlib.h. -- -Alan Coopersmith-alan.coopersm...@oracle.com Oracle Solaris Platform Engineering: X Window System ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: dennis1.c...@amd.com ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Xorg R7.6 mesa/egl Makefile fixing in Ubuntu 10.10
Hi All, I found that current the Makefile of mesa/mesa/src/egl/main in X11 R7.6 has the below line: INCLUDE_DIRS = -I$(TOP)/include When build the mesa module in Ubuntu system, this will led to a build error complaining "can't find the X11/Xlib.h", that's because in ubuntu, the Xlib.h is located in /usr/include/X11 by default, so I think The Makefile should be changed to: INCLUDE_DIRS = -I$(TOP)/include -I/usr/include/X11 Dennis ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
RE: Build error for the Xorg R7.6 in Ubuntu 10.10
Hi Gaetan, Thank you for the help! Yes, I found I missed some tools un-installed. Now I installed all the package listed in http://wiki.x.org/wiki/RequiredPackages#KarmicKoala9.10 Though some tool versions a little bit older, but apt-get install will handle this… After all the required packages installed, then with the below command will build the total package of the xorg successfully: util/modular/build.sh --clone -n Thanks again… Dennis From: Gaetan Nadon [mailto:mems...@videotron.ca] Sent: 2011年2月19日 5:12 To: Chen, Dennis (SRDC SW) Cc: x...@freedesktop.org Subject: Re: Build error for the Xorg R7.6 in Ubuntu 10.10 On Fri, 2011-02-18 at 11:00 +0800, Chen, Dennis (SRDC SW) wrote: I found that the following build instruction doesn't work in my ubuntu 10.10: = http://lists.x.org/archives/xorg-devel/2009-August/001826.html : These instructions are a couple of years old. The build.sh script had a major update recently. The --help is up-to-date. This wiki has been updated as well. http://wiki.x.org/wiki/ModularDevelopersGuide#Buildingthemodulartree You can let the build script set the environment variables for you. The default values should work for you unless you have very special needs. What you might get into is some missing tools. This wiki lists all the packages you need to build xorg. It would be nice if you could update it with version 10.10. You have about 20 or so UBUNTU packages to install. http://wiki.x.org/wiki/RequiredPackages Usage: build.sh -L -L : just list modules to build util/modular/build.sh -L > modlist.txt# Creates a list of all modules to be built Usage: build.sh [options] [prefix] util/modular/build.sh --clone -n # Do not stop on error util/modular/build.sh --clone --autoresume resume.txt# Stop on error but record where you are You must supply the prefix which is where you want the modules to install the binaries, not where the source code is (but it could be the same). Expect a git repository to time out, it happens sometimes. Gaetan ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Build error for the Xorg R7.6 in Ubuntu 10.10
I found that the following build instruction doesn't work in my ubuntu 10.10: = http://lists.x.org/archives/xorg-devel/2009-August/001826.html : Quickstart for those that do not use jhbuild: export PREFIX=/opt/xorg export LD_LIBRARY_PATH=$PREFIX/lib export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig export PATH=$PREFIX/bin:$PATH export ACLOCAL="aclocal -I $PREFIX/share/aclocal" git clone git://anongit.freedesktop.org/git/xorg/util/modular/ util/modular echo "util/macros" > built.modules ./util/modular/build.sh --clone -p -f built.modules -r `tail -n 1 built.modules` $PREFIX = For the last cmd above, my system will give the below error: > root@LinuxFGL:/home/dennis/xorg_test/util/modular# ./build.sh --clone -p -f built.modules -r `tail -n 1 built.modules` $PREFIX 'prefix' appears to be an option Usage: build.sh [options] [prefix] Options: ... > Some env variables in my system as: XORG_CONFIG=--prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --localstatedir=/var ACLOCAL=aclocal -I /opt/xorg/share/aclocal LD_LIBRARY_PATH=/opt/xorg/lib XORG_PREFIX=/usr PREFIX=/opt/xorg PKG_CONFIG_PATH=/opt/xorg/lib/pkgconfig ... Does anybody encounter this issue before? I am trying to build the xorg R7.6 and debug the Xserver these days. Thanks! -Dennis -Original Message- From: Peter Hutterer [mailto:peter.hutte...@who-t.net] Sent: 2011年2月17日 6:23 To: Chen, Dennis (SRDC SW) Cc: x...@freedesktop.org Subject: Re: How to build a Xserver module with the tar ball source code xorg-server-1.9.3 On Tue, Feb 15, 2011 at 02:00:36PM +0800, Chen, Dennis (SRDC SW) wrote: > I've download the tar ball xorg-server-1.9.3 source code from the > www.x.org, but I can't find the build detail step base on the source > code, would you pls tell me how to build the source code to generate a > Xserver module or the online link to do that? http://wiki.x.org/wiki/ModularDevelopersGuide but really, as long as you've got all the dependencies installed it's a matter of ./autogen.sh --prefix=/usr and running make. Cheers, Peter ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
How to build a Xserver module with the tar ball source code xorg-server-1.9.3
Hi Dear XORG, I've download the tar ball xorg-server-1.9.3 source code from the www.x.org, but I can't find the build detail step base on the source code, would you pls tell me how to build the source code to generate a Xserver module or the online link to do that? Thanks, Dennis ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com