LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2006, 09:24 AM   #1
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 87

Rep: Reputation: 15
pre-compile configuring for x.org source


hi all,

i am building small linux system. i am trying to compile my X windows, downloaded fro X.org version X11R6.8.2.

the only installation guide i can found is from the site.
it seems that when i run "make world" it compiles everything.
how can i configure the installation, so the size will be quiet small? since i will install it on a Compact Flash Card. (e.g. selecting only the appropriate driver, etc.)

from an article found in the internet :

http://linuxdevices.com/articles/AT9202043619.html

it says that it is possible to create X windows system with the size 5MB RAM and 16MB disk. and clues how to do it?

thanks for the help.
 
Old 11-16-2006, 10:59 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Xorg 6.8.2 is a monolithic or meta package. I would recommend you use Xorg 7.1 as it is modular. This way you only have to build the parts you really need. You can get the 7.1 tarballs here. Here are some instructions for building Xorg 7.1. You'll have to adapt the instructions, but that shouldn't be too difficult.
 
Old 11-17-2006, 09:31 AM   #3
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
yea dividing xorg up like that into different packages is a nightmare and not many people even know what the different packages are not even the developers. But you sure can experiment with leavng stuff out.
 
Old 11-17-2006, 09:43 AM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 77
Ever tried tinyx?
 
Old 11-17-2006, 02:58 PM   #5
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Hi,

thanks for the reply. I guess I will try with X windows first, since later i will try to run java GUI application which has been setup before. My target memory is not too bad anyway with 512 MB Flash Card and 256 RAM.

I am still trying to install the xorg 6.x. but still lack of references.
 
Old 11-17-2006, 08:09 PM   #6
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 77
If you need resources to install xorg 6.8.x, try looking at some of the old BLFS guides.
 
Old 11-20-2006, 05:24 AM   #7
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by osor
If you need resources to install xorg 6.8.x, try looking at some of the old BLFS guides.
i have BLFS guide for 6.8.2 with me, but it doesnt explain too much for newbee like me.

anyway i tried to compile the x.org packages and it seems like mess.
i configure the host.def the run:
Code:
make CROSSCOMPILEDIR=<CROSS_COMPILER_DIR> World
the first error i got is the same with this one:
http://www.linuxquestions.org/questi...d.php?t=285074

then i look into the lbx_zlib.h file, and the line of error is:
Code:
#include "zlib.h"
i looked into the directory, but there was no file "zlib.h"
tried to copy it to the same directory, then another file "zconf.h" was missing. tried to copy again it, then another was missing.

i wonder why does this source package of x.org contains thoses error.
so any other suggestion to start compiling this package?

thanks for the help
 
Old 11-20-2006, 09:51 AM   #8
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 77
Quote:
Originally Posted by lbdgwgt
i wonder why does this source package of x.org contains thoses error.
so any other suggestion to start compiling this package?

thanks for the help
I haven't done monolithic X in awhile, and I don't have the book in front of me, but isn't there a way to force X to use the system zlib instead of its own?
 
Old 11-20-2006, 10:48 AM   #9
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
make CROSSCOMPILEDIR=<CROSS_COMPILER_DIR> World
Are you cross-compiling the X server? If so, I'm sure you know that this <CROSS_COMPILER_DIR> needs to be replaced with the actual path.

Anyway, config/cf/host.def is the file that you can tell X to use the system zlib rather than build it's own. There needs to be a line in host.def #define HasZlib YES. There is one provided in the BLFS instructions (version 6.1) for building Xorg 6.8.2 that may have to be tweaked for your exact application.
 
Old 11-21-2006, 02:08 AM   #10
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Arow
Are you cross-compiling the X server?
Yes, im trying to do that.

I am using the X11R6.7.0. and I am planning to do:
- make the shadow directory build using lndir command
- configure the host.def file
- build the X windows:
Code:
make CROSSCOMPILEDIR=<PATH_TO_CROSS_COMPILER> World
- install to the CF card (supposed it is mounted on /mnt/cf):
Code:
make install DESTDIR=/mnt/cf
can i do this?

i read the BLFS guide, but one question is that which documents should i refer to, if i want to configure the host.def file?
where can i find the complete options for this configuration file to tweak my application?

thanks,
 
Old 11-24-2006, 08:52 AM   #11
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Hi all,

so after one week i finally made to compile the X11R6.7.0 packages and installed to my linux system on CF card.

here is my config/cf/host.def file (comments excluded):
Code:
#define HasFreetype2    NO
#define HasFontconfig   NO
#define HasExpat        NO
#define HasLibpng       NO
#define HasZlib         NO
#define InstallFontconfigLibrary   NO
#define XnestServer     NO
#define XVirtualFramebufferServer  NO
#define XprtServer      NO
#define BuildXprintClients  NO
#define XF86CardDrivers savage
#define XInputDrivers   NO
this would compile the necessary extras packages needed like zlib, etc. but then i got problem with that GNU linker (ld) of my cross compiler doesnot support the ncurses library and no reference for ncurses.h.

Basically i installed the crosstool cross compiler (i386, gcc 3.4.4, binutils 2.15, glibc 2.3.2).
so i found out the solution:
- create a directory with symlinks to the cross compile binaries without prefix (eg: gcc links to the crosstool i686-unknown-linux-gnu-gcc, etc.)
- download and extract without installing (command: rpm2cpio <RPM_PACK> | cpio -id) rpm package of ncurses and ncurses devel (i use the 5.2-28.i386 version) which contain the libncurses library and ncurses.h
- make a symlink form the cross compiler lib/ directory with the name libncurses.so to the libncurses.so got from rpm package
- compile the whole package:
Code:
make CROSSCOMPILEDIR=<DIR_CONTAIN_SYMLINK_TO_CROSSTOOL_BIN> C_INCLUDE_PATH=<PATH_TO_DIR_CONTAIN_NCURSES.H_FROM RPM_PACKAGE> World
besides that, i had an error when compiling the xc/programs/Xserver/hw/xfree86/fbdevhw/fbdevhw.c file.
i found a patch on the internet somewhere and patch the file. it will excludes the "asm/page.h" file during compilation.

after a long time, it finished without error, then install to CF card:
Code:
make install DESTDIR=<CF_CARD_MOUNT_DIR>
then i copied the fonts from my host target /usr/X11R6/lib/X11/fonts. the size of whole things is around 45 MB.anyway i am using 512MB CF for the project

sorry to make such a long thread. but i hope this will be usefull for someone later.
i still have some error during the runtime. and i ask this in another thread.

regards,

Last edited by lbdgwgt; 11-24-2006 at 08:53 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to build a pre compiled kernel with source as a single rpm? sundarhere Linux - Kernel 0 10-26-2006 02:27 AM
configuring x.org diablo_06 Linux - Software 6 07-21-2006 05:18 AM
Viewing HTML Source in OpenOffice pre 2.0 slacker9876 SUSE / openSUSE 1 07-01-2005 01:40 PM
Pre-Compile ?'s / Not the usual ............................ justaguynsrq Slackware 4 11-08-2004 10:40 PM
Need help configuring the linux-wlan.org driver. sabaka Linux - Wireless Networking 3 10-01-2003 10:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration