summaryrefslogtreecommitdiff
path: root/README
blob: 70ad163e4a53e2f8495896bf26ad7ba35659d8be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Building The Unichrome Projects drivers for your X version:
-----------------------------------------------------------

WARNING: The content of this file is about building and installing this
driver yourself. This will not make your package manager happy. You might
also want to back up via_drv.o/so and the manpage first.

If you run into any difficulties, please contact the unichrome-users
mailinglist at unichrome-users@lists.sourceforge.net . Subscribe at 
http://lists.sourceforge.net/mailman/listinfo/unichrome-users first.


1) Monolithic X:

    Applies to xfree86 4.3.x and 4.4.x, and X.org 6.7.x, 6.8.x and 6.9.x.

1.1) Against a full X tree:

    This requires that a sufficiently built X tree is present (see 1.2
    otherwise). The top level directory of an X tree tends to be named xc/.
    Replace <path_to_xc> with whatever is suited for you.

    From the top level, in xf86-video-unichrome/, (the same level as this
    file) run:

	# xmkmf <path_to_xc>
	# make Makefiles
	# make
	# make install

1.2) Preparing an X tree:

    ...

1.3) Against the SDK/DDK:

    ...

2) Modular X:

    This is (of course) only suited for the X.org 7.x release. Sadly, the
    macros used in the current configure.ac require you to use at least RC2.

    Building against modular is a breeze. You should have everything installed
    for building drivers if and when you want to.

        # ./autogen.sh
    or
        # ./autogen.sh --prefix=<...>
    then
        # make
        # make install

    Possible issues:
    aclocal might be unable to find the X macros. You will see configure
    complain with:
        ./configure: line xxxxx: XORG_MANPAGE_SECTIONS: command not found
        ./configure: line xxxxx: XORG_RELEASE_VERSION: command not found

    What happens is that aclocal is unable to find your xorgversion.m4 and
    xorg-macros.m4. These are usually found in <prefix>/share/aclocal

    This can be solved by doing the following before running autogen.sh:
        - permanent solution: add a file named dirlist to your 
          /usr/share/aclocal/ directory, and add a line with the path for X
          macros.
        - temporary solution: run
          # export ACLOCAL_LOCALDIR="<prefix>/share/aclocal/"

    Another possible issue is configure failing with:
	./configure: line xxxxx: syntax error near unexpected token `RANDR,'
	./configure: line xxxxx: `XORG_DRIVER_CHECK_EXT(RANDR, randrproto)'
    The cause of this is that xorg-server.m4 isn't available. This was only
    added a few days before 7.0RC2 was tagged, but it is quite incompatible
    with earlier versions. So make sure you have at least RC2.

    If anyone with a lot of autoconf experience knows how to properly check
    for the existence of individual macros at the autoheader stage, please
    don't hesitate to contact me.