2010年9月3日

configure: error: cannot determine linux version when cross-compiling

Issue:
checking whether to build optimizer debugging code... no
checking whether to build parser debugging code... no
checking Linux kernel version... unknown
configure: error: cannot determine linux version when cross-compiling

Solution:
Directly edit "configure" file, and add a new line:
linux)
ac_cv_linux_vers=2
echo "$as_me:$LINENO: checking Linux kernel version" >&5
echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6

This is a work-around, actually I don't like that.

1 意見:

nfuel900 提到...

A BIG Thankyou.I was stuck at this error for long. Thanks a lot.