Sean D'Epagnier wrote: > On Fri, Aug 18, 2006 at 08:04:38AM -0600, Brian Paul wrote: > >>Sean D'Epagnier wrote: >> >>>I have been trying to build mesa linux-fbdev on a system that >>>do not have x installed. There are no x headers or libraries. >>> >>>Previously I was still linking with -X11 to compile fbdev programs. >>>I also had to have the x headers installed. >>> >>>There is a problem because in >>>src/mesa/Makefile line 78 reads: >>> >>>STAND_ALONE_DRIVER_SOURCES = \ >>> $(COMMON_DRIVER_SOURCES) \ >>> $(X11_DRIVER_SOURCES) \ >>> $(GLIDE_DRIVER_SOURCES) \ >>> $(SVGA_DRIVER_SOURCES) \ >>> $(FBDEV_DRIVER_SOURCES) >>> >>> >>>The reason there are no problems with glide, svga, and fbdev getting >>>in the way is in all of the source files, the code is #ifdef so that >>>it is not compiled unless that profile is selected. The x sources >>>do not have this, so without >>> >>> >>>I got everything to work by deleting the X11_DRIVER_SOURCES line, >>>of course this will mess up other profiles, so it is not a solution. >>> >>>I want to know what everyone thinks the best solution is, I wanted >>>to ask before making changes to this file. >>> >>>I think adding ifdefs to all the x sources would be appropriate. >> >>That would probably be the simplest solution for now. USE_XLIB_DRIVER >>would be the symbol I'd use if you want to make a patch. Otherwise, >>I'll try to get to it later. >> >>Unfortunately, standard 'make' doesn't support conditionals like GNU >>make so it's not as easy to fix as it should be. >> >>-Brian > > > > Hi, I updated the makefile in cvs the simplest way I could figure > out how. What I did was use a conditional to define the symbol, I > changed the above to: > > STAND_ALONE_DRIVER_SOURCES_A = \ > $(COMMON_DRIVER_SOURCES) \ > $(GLIDE_DRIVER_SOURCES) \ > $(SVGA_DRIVER_SOURCES) > > # if x11 is not installed, compiling with x11 sources will not work for fbdev > ifeq ($(DRIVER_DIRS), fbdev) > STAND_ALONE_DRIVER_SOURCES = $(STAND_ALONE_DRIVER_SOURCES_A) > $(FBDEV_DRIVER_SOURCES) > else > STAND_ALONE_DRIVER_SOURCES = $(STAND_ALONE_DRIVER_SOURCES_A) > $(X11_DRIVER_SOURCES) > endif > > > please don't hesitate to change this to make it cleaner, I am no makefile > expert.
As I said, we can't use conditionals (like ifeq) in the Makefile. I've checked in some changes that should do what you need. -Brian ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
