版主给的http://www.armbbs.net/forum.php? ... 6&highlight=can
这个链接,按照一步一步编,出现问题如下:
设置libsocketcan的环境变量
这个设置完以后,make编译不过去,说找不到一堆东西,如下:
canconfig.c:34:26:error:libsocketcan.h: No such file or directory (这个文件我明明在/opt/EmbedSky/__install/include下找到了)
canconfig.c:41: error 'CAN_STATE_MAX' undeclared here (not in a function)
canconfig.c: In function 'do_show_bitrate':
canconfig.c:109:error:storage size of 'bt' isn't know********等等 我前面完全按照版主路径什么都没改 怎么事,求教。
例如我的交叉编译器目录在/opt/tools/EmbedSky/4.4.6/ 下,则用
CC=arm-linux-gcc ./configure --prefix=/opt/tools/EmbedSky/4.4.6/arm-embedsky-linux-gnueabi/embedsky/usr/lib/pkgconfig/ --host=arm-linux --build=i386
make
make install