[gpm] alps error workaround (correct)
Andrea Dieni
andrea.dieni@tin.it
Wed, 16 Apr 2003 18:07:37 +0200
>Is a linker problem.
>I found a workarond.
>After this error do the following:
>1. cd /to/gpm/root
cd src (this is the correct command)
>2. gcc -I/tmp/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h
-Wall
>-DSYSCONFDIR=3D"\"/usr/etc\"" -DSBINDIR=3D"\"/usr/sbin\"" -g -O2 -c -o=
prog/mouse-test.o
>prog/mouse-test.c
>
> no changes here simply compile mouse-test.c
>
>3. gcc -L/tmp/gpm-1.20.1/src -o prog/mouse-test prog/mouse-test.o mice.=
o
>twiddler.o synaptics.o alps.o lib/libgpm.so lib/libgpm.a
> here is the workaround - try to link mouse-test.o but fails cause=
>
> can't find functions in alps.o so you just need to add alps.o
>4. make (to finish the process)
>
>The question is: how can I tell to Makefile to use alps.o during the lin=
k
>step?
>
>Thanks for your help
Ok I've tried gpm -m /dev/mouse -t alps2 -Rraw
but it doesn't work.