LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Where Install Source of X for Slackware (https://www.linuxquestions.org/questions/slackware-14/where-install-source-of-x-for-slackware-454389/)

giogio 06-13-2006 11:40 AM

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

egag 06-13-2006 11:54 AM

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

egag

giogio 06-13-2006 03:26 PM

[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

cwwilson721 06-13-2006 03:49 PM

You can get the source files from www.slackware.com

egag 06-13-2006 03:51 PM

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

giogio 06-13-2006 04:01 PM

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

giogio 06-13-2006 04:03 PM

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.

giogio 06-14-2006 05:55 AM

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

egag 06-14-2006 07:33 AM

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

giogio 06-14-2006 08:24 AM

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).

giogio 06-14-2006 08:28 AM

Ooops, sorry,
I forgot to say you have 2 files: the one interested is labelled "video&Touch Control for fedora core 3"

egag 06-14-2006 11:38 AM

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

giogio 06-14-2006 12:48 PM

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

giogio 06-19-2006 10:06 AM

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

cwwilson721 06-19-2006 10:38 AM

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 08:35 PM.