honwen / openwrt-shadowsocksr

ShadowsocksR-libev for OpenWrt/LEDE
GNU General Public License v3.0
146 stars 49 forks source link

“error: MBEDTLS_CAMELLIA_C required”问题? #4

Closed wgjwillis closed 6 years ago

wgjwillis commented 6 years ago

编译过程中出现了这个错误,我用”错误排除“的办法 ”rm -rf package/libs/mbedtls“ ,但是故障依旧。

请问:是不是还有更好的办法?比如:https://github.com/shadowsocks/openwrt-feeds 我不懂git,请教一下如何使用?

honwen commented 6 years ago

Try:

rm -rf package/libs/mbedtls
git clone https://github.com/shadowsocks/openwrt-feeds package/feeds/openwrt-feeds
honwen commented 6 years ago

For example: My package/feeds/ in LEDE 17.04.4

├── luci
├── luci-app-aliddns -> ../../../../chenhw2/luci-app-aliddns
├── luci-app-haproxy-tcp -> ../../../../chenhw2/luci-app-haproxy-tcp
├── luci-app-koolproxy -> ../../../../chenhw2/luci-app-koolproxy
├── luci-app-shadowsocks -> ../../../../chenhw2/luci-app-shadowsocks
├── luci-app-shadowsocksr -> ../../../../chenhw2/luci-app-shadowsocksr
├── openwrt-dnsmasq-extra -> ../../../../chenhw2/openwrt-dnsmasq-extra
├── openwrt-feeds -> ../../../../shadowsocks/openwrt-feeds
├── openwrt-shadowsocks -> ../../../../shadowsocks/openwrt-shadowsocks
├── openwrt-shadowsocksr -> ../../../../chenhw2/openwrt-shadowsocksr
├── openwrt-simple-obfs -> ../../../../shadowsocks/openwrt-simple-obfs
├── packages
├──── ... 
├── routing
├──── ...
├── telephony
└──── ...
wgjwillis commented 6 years ago

谢谢 chenhw2,我用比较笨的办法处理了这个问题。 我是把https://github.com/shadowsocks/openwrt-feeds的代码全部clone到了另外的目录,然后再把mbedtls目录复制了过去。现在编译已经成功。

honwen commented 6 years ago

Nice

wgjwillis commented 6 years ago

使用官方feeds

./scripts/feeds update base packages
./scripts/feeds install zlib libopenssl libmbedtls libpcre
rm -rf package/feeds/base/mbedtls/patches