找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3431|回复: 9

error: gsl/gsl: No such file or directory怎么解决?

[复制链接]
发表于 2021-4-30 16:14 | 显示全部楼层 |阅读模式
编译LEDE时,出现这个,一直过不去,怎么解决?

[  4%] Building CXX object CMakeFiles/trojan.dir/src/core/config.cpp.o
/home/nhb/lede/build_dir/target-x86_64_musl/trojan-plus-10.0.3/src/core/config.cpp:26:10: fatal error: gsl/gsl: No such file or directory
#include <gsl/gsl>
          ^~~~~~~~~
compilation terminated.
CMakeFiles/trojan.dir/build.make:92: recipe for target 'CMakeFiles/trojan.dir/src/core/config.cpp.o' failed
make[6]: *** [CMakeFiles/trojan.dir/src/core/config.cpp.o] Error 1
make[6]: Leaving directory '/home/nhb/lede/build_dir/target-x86_64_musl/trojan-plus-10.0.3'
CMakeFiles/Makefile2:92: recipe for target 'CMakeFiles/trojan.dir/all' failed
make[5]: *** [CMakeFiles/trojan.dir/all] Error 2
make[5]: Leaving directory '/home/nhb/lede/build_dir/target-x86_64_musl/trojan-plus-10.0.3'
Makefile:157: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/nhb/lede/build_dir/target-x86_64_musl/trojan-plus-10.0.3'
Makefile:69: recipe for target '/home/nhb/lede/build_dir/target-x86_64_musl/trojan-plus-10.0.3/.built' failed
make[3]: *** [/home/nhb/lede/build_dir/target-x86_64_musl/trojan-plus-10.0.3/.built] Error 2
make[3]: Leaving directory '/home/nhb/lede/package/openwrt-打倒美帝/trojan-plus'
time: package/openwrt-打倒美帝/trojan-plus/compile#2.63#0.97#12.08
package/Makefile:111: recipe for target 'package/openwrt-打倒美帝/trojan-plus/compile' failed
make[2]: *** [package/openwrt-打倒美帝/trojan-plus/compile] Error 2
make[2]: Leaving directory '/home/nhb/lede'
package/Makefile:107: recipe for target '/home/nhb/lede/staging_dir/target-x86_64_musl/stamp/.package_compile' failed
make[1]: *** [/home/nhb/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/nhb/lede'
/home/nhb/lede/include/toplevel.mk:222: recipe for target 'world' failed
make: *** [world] Error 2


我的恩山、我的无线 The best wifi forum is right here.
发表于 2021-5-19 09:19 | 显示全部楼层
把lede/build_dir/target-mipsel_24kc_musl/trojan-plus-10.0.3
路径下面的文件全部删除,重新编译试试。

点评

删除这些文件会引入新的错误啊。  详情 回复 发表于 2024-1-24 14:05
有用~  发表于 2023-3-19 15:35
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-8-1 12:18 | 显示全部楼层
所以 楼主最后怎么解决的  能分享一下吗  谢谢~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-8-2 10:46 | 显示全部楼层
sudo apt install libgsl-dev
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-3-4 17:57 | 显示全部楼层

sudo apt install libgsl-dev但还是提示上面的错误

点评

确实是这样的  详情 回复 发表于 2022-4-14 09:05
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-4-14 09:05 | 显示全部楼层
本帖最后由 hzjnet@163.com 于 2022-4-14 09:40 编辑
sepcsqh 发表于 2022-3-4 17:57

sudo apt install libgsl-dev但还是提示上面的错误

确实是这样的,不过临时还是能解决的:git clone https://github.com/Microsoft/GSL build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/trojan-plus-10.0.3/external/GSL
具体log如下:
make[2]: Entering directory '/openwrt/vdb1/qsdk-ub18-repo-12.1.r2/qsdk.ok3'
cd "/openwrt/vdb1/qsdk-ub18-repo-12.1.r2/qsdk.ok3"; git log --format=%h -1 toolchain > /openwrt/vdb1/qsdk-ub18-repo-12.1.r2/qsdk.ok3/tmp/.ver_check
cmp -s /openwrt/vdb1/qsdk-ub18-repo-12.1.r2/qsdk.ok3/tmp/.ver_check /openwrt/vdb1/qsdk-ub18-repo-12.1.r2/qsdk.ok3/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/stamp/.ver_check || { \
        rm -rf /openwrt/vdb1/qsdk-ub18-repo-12.1.r2/qsdk.ok3/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi /openwrt/vdb1/qsdk-ub18-repo-12.1.r2/qsdk.ok3/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi /openwrt/vdb1/qsdk-ub18-repo-12.1.r2/qsdk.ok3/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi /openwrt/vdb1/qsdk-ub18-repo-12.1.r2/qsdk.ok3/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi; \
        mkdir -p /openwrt/vdb1/qsdk-ub18-repo-12.1.r2/qsdk.ok3/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/stamp; \
        mv /openwrt/vdb1/qsdk-ub18-repo-12.1.r2/qsdk.ok3/tmp/.ver_check /openwrt/vdb1/qsdk-ub18-repo-12.1.r2/qsdk.ok3/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/stamp/.ver_check; \
}
make[2]: Leaving directory '/openwrt/vdb1/qsdk-ub18-repo-12.1.r2/qsdk.ok3'
make[1]: Leaving directory '/openwrt/vdb1/qsdk-ub18-repo-12.1.r2/qsdk.ok3'


我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2024-1-24 14:05 | 显示全部楼层
ago 发表于 2021-5-19 09:19
把lede/build_dir/target-mipsel_24kc_musl/trojan-plus-10.0.3
路径下面的文件全部删除,重新编译试试。 ...

删除这些文件会引入新的错误啊。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2024-2-26 19:38 | 显示全部楼层
git clone https://github.com/Microsoft/GSL build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/trojan-plus-10.0.3/external/GSL

可行,感谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 20:49

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表