Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
06-13-2006, 11:40 AM
|
#1
|
Member
Registered: Sep 2005
Distribution: slackware 15.0
Posts: 42
Rep:
|
Where Install Source of X for Slackware
Hi,
I have a maybe silly question, but I am not going on on it.
Where I have to put the source of X in a Slackware 10.2 distro so that the system is able to see it ?
Do I have to change something somewhere in the config?
I ask this because I need to compile a drive that need X-Source installed, but it seems impossible - for me - to let the makefile got via imakefile to show the right way to compile the drive.
Thank you all,
GioGio
|
|
|
06-13-2006, 11:54 AM
|
#2
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
which driver ?
isn't there an option to configure like "--with-X-sources=<path> ".
if there's a configure-script, type "./configure --help"
egag
|
|
|
06-13-2006, 03:26 PM
|
#3
|
Member
Registered: Sep 2005
Distribution: slackware 15.0
Posts: 42
Original Poster
Rep:
|
[QUOTE=egag]which driver ?
isn't there an option to configure like "--with-X-sources=<path> ".
if there's a configure-script, type "./configure --help"
No, unfortunately it seems to have nothing apart an Imakefile.
This is a driver to handle a touchscreen that is not standard with X or with any distro, for what I know.
So I created the makefile via Imakefile (using the loader xrmkf).
When I launch the makefile it seems that are missing many files available only on the complete source of X (not the development includes).
I tried to load the source of X from the CD (exploded under the dir /<mydir>/xd ).
But I got the same results. I suppose because I do not put the source in the right directory or because I do not manage the appropriate config files.
But here I am lost, because I do not know what to touch (and of course I have not found anything in my documentation).
I am quite sure to miss something silly, but I do not know.
Thank you
|
|
|
06-13-2006, 03:49 PM
|
#4
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
You can get the source files from www.slackware.com
|
|
|
06-13-2006, 03:51 PM
|
#5
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
you can edit the makefile, there must be smth. like "CFLAGS=".
behind that, you can add " -I<includedir>" where <includedir> is pointing to the includes
of the xserver.
if that's still no good,
maybe post a link to those sources ?
egag
|
|
|
06-13-2006, 04:01 PM
|
#6
|
Member
Registered: Sep 2005
Distribution: slackware 15.0
Posts: 42
Original Poster
Rep:
|
For The moment I am not at that machine, Tomorrow I will be able to work on it as you said
and I will post the results.
Thank you
|
|
|
06-13-2006, 04:03 PM
|
#7
|
Member
Registered: Sep 2005
Distribution: slackware 15.0
Posts: 42
Original Poster
Rep:
|
Thank you,
In effect I loaded the source from the 4th Slack CD,
but I do not know how to handle them in the proper way.
|
|
|
06-14-2006, 05:55 AM
|
#8
|
Member
Registered: Sep 2005
Distribution: slackware 15.0
Posts: 42
Original Poster
Rep:
|
Quote:
Originally Posted by egag
you can edit the makefile, there must be smth. like "CFLAGS=".
behind that, you can add " -I<includedir>" where <includedir> is pointing to the includes
of the xserver.
if that's still no good,
maybe post a link to those sources ?
egag
|
Hi,
I looked into the Makefile that has been created. But it is too big, because I think there are too much automatic dependencies.
Here I report the original Imake:
---- Imake start here ----
#define IHaveModules
#include <Server.tmpl>
SRCS = mydriver.c
OBJS = mydriver.o
DRIVER = mydriver
INCLUDES = -I. -I$(XF86COMSRC) -I$(XF86SRC)/loader -I$(XF86OSSRC) \
-I$(SERVERSRC)/include -I$(XINCLUDESRC) -I$(EXTINCSRC)
#if MakeHasPosixVariableSubstitutions
SubdirLibraryRule($(OBJS))
#endif
ModuleObjectRule()
ObjectModuleTarget($(DRIVER),$(OBJS))
InstallObjectModule($(DRIVER),$(MODULEDIR),input)
#if !defined(XF86DriverSDK)
InstallModuleManPage($(DRIVER))
#endif
DependTarget()
InstallDriverSDKObjectModule($(DRIVER),$(DRIVERSDKMODULEDIR),input)
---- Imake ended above ----
I think the source of my troubles are all those definitions as XF86COMSRC that I do not know where are automatically defined and what to do to make the system Imake well understand their position.
GioGio
|
|
|
06-14-2006, 07:33 AM
|
#9
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
it would be nice if you post a link, so i can download the sources
and take a look.
( ..or at least give the name of that driver)
egag
|
|
|
06-14-2006, 08:24 AM
|
#10
|
Member
Registered: Sep 2005
Distribution: slackware 15.0
Posts: 42
Original Poster
Rep:
|
The link is:
http://www.kontron-emea.com/index.ph...uctid=304#d1-6
And from the tarball, you have to look at the file:
semtech-touch.tar.gz
That will give you a bin dir and a source dir (the one I look into).
|
|
|
06-14-2006, 08:28 AM
|
#11
|
Member
Registered: Sep 2005
Distribution: slackware 15.0
Posts: 42
Original Poster
Rep:
|
Ooops, sorry,
I forgot to say you have 2 files: the one interested is labelled "video&Touch Control for fedora core 3"
|
|
|
06-14-2006, 11:38 AM
|
#12
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
hmm...it won't compile here.
it seems that Slackware is missing some headers like "xf86Xinput.h".(?)
in the source tree you can find those includes in :
../<Xsource>/xc/programs/Xserver/hw/xfree86/common/
but it seems there's a precompiled rpm that you can try in the fc3 dir.
make a .tgz from it with :
rpm2tgz xorg-semtech-touch-6.8.1-1.i386.rpm
that will give xorg-semtech-touch-6.8.1-1.i386.tgz
install that with "installpkg"
after that, follow the instructions in "semtouch.txt" to setup xorg to use it.
hope that helps...
egag
|
|
|
06-14-2006, 12:48 PM
|
#13
|
Member
Registered: Sep 2005
Distribution: slackware 15.0
Posts: 42
Original Poster
Rep:
|
Thank you,
on next days, when I will be back to the machine, I will follow your advise and I will keep you informed on how things will be going on.
I think your idea to look at the others files should be a good one.
Thank you,
bye for now,
GioGio
|
|
|
06-19-2006, 10:06 AM
|
#14
|
Member
Registered: Sep 2005
Distribution: slackware 15.0
Posts: 42
Original Poster
Rep:
|
It seems I found something (but not sure for all).
I had to work on the makefile generated by Imakefile, adding in many places, the correct Include path.
I think this is due to the Imakefile that possibly is wrong or incomplete (for instance it is not able to find all the includes under /usr/X11/include ).
Adding that I will be able to get the object driver (I still have an error on the rebuild of the man file, but I do not care about it).
Now I have to try to test the driver, but of course this is another problem.
Thanx again, without your help I should not had the will to look deeply at those chaotic Makefile,
bye
Giogio
|
|
|
06-19-2006, 10:38 AM
|
#15
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Quote:
Originally Posted by egag
hmm...it won't compile here.
it seems that Slackware is missing some headers like "xf86Xinput.h".(?)
in the source tree you can find those includes in :
../<Xsource>/xc/programs/Xserver/hw/xfree86/common/
|
Um....
Seems like its for Xfree, not Xorg (Slackware uses Xorg). That could explain a few of the issues.
|
|
|
All times are GMT -5. The time now is 11:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|