All Forums
 Embedded Linux
 Linux FAQ
 How to get the source to X or other sofware?
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  


135 Posts

Posted - 09 Oct 2006 :  13:50:52  Show Profile  Email Poster
How do I get the source to the X server or other software modified by ADS? How would I go about building it from source?

To get the sources used by ADS, you need to have our apt repository in /etc/apt/sources.list:
deb-src ../developers/linux/debian ads

These commands illistrate a way to download the source to the X server shipped by ADS, build it, and install the resulting package. These commands can be run on an ADS system that is running the full Debian distribution.

apt-get update
apt-get source xserver-tinyx-fbdev
apt-get build-dep xserver-tinyx-fbdev
cd xserver-tinyx-fbdev-*
# make any modifications you want to the code here
dpkg -i ../xserver-tinyx-fbdev_*.deb

To get the sources to other packages, replace xserver-tinyx-fbdev with the package name.

If you don't know the package name, but want to get the source to a given program or other file on the system, you can use the command "dpkg -S filename" to find the package that contains the file. For example:

% dpkg -S /bin/ls
coreutils: /bin/ls
% apt-get source coreutils
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000