zonyitoo / sysuh3c

H3C CLI Client for SYSU, which is implemented in C/C++. With an OpenWRT version.
MIT License
116 stars 37 forks source link

OrangePi 执行 scons -Q 出错 #29

Closed Wuhj9608 closed 6 years ago

Wuhj9608 commented 6 years ago

我用 git clone https://github.com/zonyitoo/sysuh3c 下载后进入 sysuh3c/src 执行 scons -Q,出现以下报错:

root@OrangePI:~/temp/sysuh3c/src# scons -Q
o eapauth/eapauth.o -c -O2 -std=c++11 -I./eapauth -DWITH_SHOWMESSAGE -DSYSTEM_LINUX eapauth/eapauth.cpp
sh: 1: o: not found
o eapauth/eapdef.o -c -O2 -std=c++11 -I./eapauth -DWITH_SHOWMESSAGE -DSYSTEM_LINUX eapauth/eapdef.cpp
sh: 1: o: not found
o eapauth/eaputils.o -c -O2 -std=c++11 -I./eapauth -DWITH_SHOWMESSAGE -DSYSTEM_LINUX eapauth/eaputils.cpp
sh: 1: o: not found
o eapauth/md5.o -c -O2 -std=c++11 -I./eapauth -DWITH_SHOWMESSAGE -DSYSTEM_LINUX eapauth/md5.cpp
sh: 1: o: not found
ar rc eapauth/libeapauth.a eapauth/eapauth.o eapauth/eapdef.o eapauth/eaputils.o eapauth/md5.o
ar: eapauth/eapauth.o: No such file or directory
scons: *** [eapauth/libeapauth.a] Error 1

如果需要我提供其他关于硬件和软件的信息的话请说。

zonyitoo commented 6 years ago

o是什么东西???你设置了编译命令为o

Wuhj9608 commented 6 years ago

screenshot from 2017-09-30 07-22-40

这是完整的流程。o我也不知道是啥...

zonyitoo commented 6 years ago

你的系统的编译器是哪个,路径是什么,通过环境变量设置一下。

echo $CC
echo $CXX

这两个变量现在是什么值

zonyitoo commented 6 years ago
CC="gcc" CXX="g++" scons -Q
Wuhj9608 commented 6 years ago

screenshot from 2017-09-30 12-24-50

直接执行 CC="gcc" CXX="g++" scons -Q 命令吗?结果如图。还是说要在其他地方设置这两个变量?

zonyitoo commented 6 years ago

…………你这个系统有毒吧…………不知道为什么了,编译命令是o。你编其它东西也会这样么?

Wuhj9608 commented 6 years ago

不好意思,不熟悉 Linux ,我要怎么测试 “编其他东西” 会不会这样呢?随便写个hello, world.c文件然后用什么命令执行吗?

yangtuo250 commented 6 years ago

gcc命令google一下就好了啊,问题是scons也应该有跟make差不多的Makefile吧,看你用的是默认,应该就是你系统有问题而不是操作不当。

Wuhj9608 commented 6 years ago

screenshot from 2017-09-30 13-37-38

screenshot from 2017-09-30 13-37-49

我的 hello, world 应该没打错吧?这样应该是系统的问题喽?

yangtuo250 commented 6 years ago

你这是什么发行版的linux?抱歉我也没见过

Wuhj9608 commented 6 years ago

screenshot from 2017-09-30 13-44-44

orangepi 修改的 Raspbian server ,/etc/apt/sources.list 里面是 deb http://archive.raspbian.org/raspbian/ jessie main contrib non-free

Wuhj9608 commented 6 years ago

应该是我的系统的问题,不是sysuh3c的问题, 多谢楼上二位的指教了。

Wuhj9608 commented 6 years ago

在网上查了以下,貌似是因为我系统是 arm 平台的原因?(但是树莓派好像也是arm呀,我之前用树莓派倒是可以编译运行sysuh3c

zonyitoo commented 6 years ago

不是硬件的原因,是你的操作系统的配置原因

Wuhj9608 commented 6 years ago

搞不定这个问题,后来我换了别人推荐的armbian系统,可以编译运行sysuh3c了。