问题描述
因为Newifi 2d 总是不定时的断流所以这几天一直在折腾,但是没找到问题在哪里,今天想切换到吃灰的软路由上编译了X86的版本,期间遇到这么个问题,记录一下。
错误提示:
Collected errors:
* check_data_file_clashes: Package libwebsockets-openssl wants to install file /home/luobo/lede/build_dir/target-x86_64_musl/root-x86/usr/lib/libwebsockets.so
But that file is already provided by package * libwebsockets-full
* check_data_file_clashes: Package libwebsockets-openssl wants to install file /home/luobo/lede/build_dir/target-x86_64_musl/root-x86/usr/lib/libwebsockets.so.12
But that file is already provided by package * libwebsockets-full
* opkg_install_cmd: Cannot install package libwebsockets-openssl.
package/Makefile:65: recipe for target 'package/install' failed
make[2]: *** [package/install] Error 255
make[2]: Leaving directory '/home/luobo/lede'
package/Makefile:108: recipe for target '/home/luobo/lede/staging_dir/target-x86_64_musl/stamp/.package_install' failed
make[1]: *** [/home/luobo/lede/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/luobo/lede'
/home/luobo/lede/include/toplevel.mk:225: recipe for target 'world' failed
make: *** [world] Error 2
很抱歉忘记记录上面是哪个文件出的问题,总之是libwebsockets-full
和libwebsockets-openssl
冲突了,libwebsockets-full
中已经包含了openssl,所以在配置文件中去掉一个就可以。
解决办法
libwebsockets-full
中包含了很多,所以我这里选择取消libwebsockets-openssl
进入lede目录运行:
make menuconfig--->Libraries
找到libwebsockets-openssl
并取消选择保存在编译即可。