'const struct input_absinfo' has no member named 'resolution'
go to the include directory, and type the command : $CC -M mtdev.h to get the path of all header files
the result is as follows
we can find that the file input.h is from CodeSourcery directory. We want to reference it from our source tree(/media/DM8134/src/...). So I set the env parameter
export C_INCLUDE_PATH=/media/DM8134/src/board-support/linux-2.6.37-psp04.04.00.01/include
observe the parameter
C_INCLUDE_PATH is now set
make again
OK, we got a new error message.
error: asm/bitsperlong.h: No such file or directory
check my include path again, I find there is a "asm-generic" directory in it but no "asm" directory.
brute force!! copy asm-generic to asm
OK
make again
so it seems that it can be built now
go to upper (mtdev) directory, make and install
make
lot of warnings...
make install
remember to set PATH parameter when using sudo to make install
sudo env PATH=$PATH make install
all files are installed into corresponding directories under /usr/local/lib/mtdev/
done!!
見招拆招!!
沒有留言:
張貼留言