LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-13-2006, 11:40 AM   #1
giogio
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Rep: Reputation: 15
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
 
Old 06-13-2006, 11:54 AM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
which driver ?
isn't there an option to configure like "--with-X-sources=<path> ".
if there's a configure-script, type "./configure --help"

egag
 
Old 06-13-2006, 03:26 PM   #3
giogio
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Original Poster
Rep: Reputation: 15
[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
 
Old 06-13-2006, 03:49 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 65
You can get the source files from www.slackware.com
 
Old 06-13-2006, 03:51 PM   #5
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
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
 
Old 06-13-2006, 04:01 PM   #6
giogio
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Original Poster
Rep: Reputation: 15
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
 
Old 06-13-2006, 04:03 PM   #7
giogio
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Original Poster
Rep: Reputation: 15
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.
 
Old 06-14-2006, 05:55 AM   #8
giogio
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Original Poster
Rep: Reputation: 15
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
 
Old 06-14-2006, 07:33 AM   #9
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
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
 
Old 06-14-2006, 08:24 AM   #10
giogio
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Original Poster
Rep: Reputation: 15
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).
 
Old 06-14-2006, 08:28 AM   #11
giogio
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Original Poster
Rep: Reputation: 15
Ooops, sorry,
I forgot to say you have 2 files: the one interested is labelled "video&Touch Control for fedora core 3"
 
Old 06-14-2006, 11:38 AM   #12
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
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
 
Old 06-14-2006, 12:48 PM   #13
giogio
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Original Poster
Rep: Reputation: 15
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
 
Old 06-19-2006, 10:06 AM   #14
giogio
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Original Poster
Rep: Reputation: 15
Thumbs up

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
 
Old 06-19-2006, 10:38 AM   #15
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 65
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.
 
  


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
contents of /testing/source/linux-2.6.x on slackware install cd 2 [LAG] Prude Slackware 3 03-30-2005 09:26 PM
How i install a source file (slackware 10) SlackwareMan Linux - Newbie 5 07-29-2004 07:37 AM
slackware kernel source install (kernel 2.6.6) ? LinuxOG Slackware 22 06-06-2004 04:34 PM
slackware 9.1 install and source iso?? Lleb_KCir Linux - Software 5 05-27-2004 05:35 AM
Slackware Source install problem... Rivitir Slackware 3 06-18-2003 04:34 PM


All times are GMT -5. The time now is 05:26 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration