冰夫子 2022-01-14 14:22 采纳率: 0%
浏览 121

编译canutils 提示libsocketcan version above 0.0.8 not found on your system

问题遇到的现象和发生背景

libsocketcan 版本libsocketcan-0.0.9
canutils版本 canutils-4.0.6


libsocketcan-0.0.9
编译:
./configure --host=arm-linux-gnueabi CC=arm-linux-gnueabi-gcc --prefix=../install/libsocketcan-0.0.9
make
make install

canutils-4.0.6
编译:
./configure --host=arm-linux-gnueabi libsocketcan_LIBS="-L$(pwd)/../install/libsocketcan-0.0.9/lib" libsocketcan_CFLAGS="-I$(pwd)/../install/libsocketcan-0.0.9/include" CFLAGS="-I$(pwd)/../install/libsocketcan-0.0.9/include"

异常报错:
checking for arm-linux-gnueabi-pkg-config... no
checking for pkg-config...no
checking for libsocketcan... configure: error: *** libsocketcan version above 0.0.8 not found on your system

我想要达到的结果

可以正常编译canutils-4.0.6,请大家指教?

  • 写回答

1条回答 默认 最新

  • 猫猫爱吃鱼 2022-01-15 08:01
    关注
    ./configure --host=arm-linux-gnueabi libsocketcan_LIBS="-L$(pwd)/../install/libsocketcan-0.0.9/lib -lsocketcan" libsocketcan_CFLAGS="-I$(pwd)/../install/libsocketcan-0.0.9/include" CFLAGS="-I$(pwd)/../install/libsocketcan-0.0.9/include"
    
    评论

报告相同问题?

问题事件

  • 创建了问题 1月14日