yichya / luci-app-xray

(Almost) full feature Xray client for OpenWrt
Mozilla Public License 2.0
554 stars 328 forks source link

$ make package/luci-app-xray/compile -j1 V=s 编译报错 #350

Closed yukeiyang closed 7 months ago

yukeiyang commented 9 months ago
make[1]: Entering directory '/home/plus/openwrt-sdk-23.05.0-x86-64_gcc-12.3.0_musl.Linux-x86_64'
package/Makefile:118: warning: overriding recipe for target 'package/linux/clean'
package/Makefile:118: warning: ignoring old recipe for target 'package/linux/clean'
package/Makefile:118: warning: overriding recipe for target 'package/linux/download'
package/Makefile:118: warning: ignoring old recipe for target 'package/linux/download'
package/Makefile:118: warning: overriding recipe for target 'package/linux/prepare'
package/Makefile:118: warning: ignoring old recipe for target 'package/linux/prepare'
package/Makefile:118: warning: overriding recipe for target 'package/linux/compile'
package/Makefile:118: warning: ignoring old recipe for target 'package/linux/compile'
package/Makefile:118: warning: overriding recipe for target 'package/linux/update'
package/Makefile:118: warning: ignoring old recipe for target 'package/linux/update'
package/Makefile:118: warning: overriding recipe for target 'package/linux/refresh'
package/Makefile:118: warning: ignoring old recipe for target 'package/linux/refresh'
package/Makefile:118: warning: overriding recipe for target 'package/linux/prereq'
package/Makefile:118: warning: ignoring old recipe for target 'package/linux/prereq'
package/Makefile:118: warning: overriding recipe for target 'package/linux/dist'
package/Makefile:118: warning: ignoring old recipe for target 'package/linux/dist'
package/Makefile:118: warning: overriding recipe for target 'package/linux/distcheck'
package/Makefile:118: warning: ignoring old recipe for target 'package/linux/distcheck'
package/Makefile:118: warning: overriding recipe for target 'package/linux/configure'
package/Makefile:118: warning: ignoring old recipe for target 'package/linux/configure'
package/Makefile:118: warning: overriding recipe for target 'package/linux/check'
package/Makefile:118: warning: ignoring old recipe for target 'package/linux/check'
package/Makefile:118: warning: overriding recipe for target 'package/linux/check-depends'
package/Makefile:118: warning: ignoring old recipe for target 'package/linux/check-depends'
make[1]: *** No rule to make target 'package/luci-app-xray/compile'.  Stop.
make[1]: Leaving directory '/home/plus/openwrt-sdk-23.05.0-x86-64_gcc-12.3.0_musl.Linux-x86_64'
make: *** [/home/plus/openwrt-sdk-23.05.0-x86-64_gcc-12.3.0_musl.Linux-x86_64/include/toplevel.mk:225: package/luci-app-xray/compile] Error 2
plus@t:~/openwrt-sdk-23.05.0-x86-64_gcc-12.3.0_musl.Linux-x86_64$ 

what's wrong? 可否给点提示?

yukeiyang commented 9 months ago

之前执行如下命令,有添加 luci-app-xray feeds.

$ cd openwrt-sdk-*Linux-x86_64 && git clone https://github.com/yichya/luci-app-xray.git package/luci-app-xray && sudo vi feeds.conf.default && ./scripts/feeds update -a; ./scripts/feeds install -a && make menuconfig && make package/luci-app-xray/compile V=99 && make clean
yukeiyang commented 9 months ago

之前版本: $ make package/luci-app-xray/fw4/compile V=99 现在版本: $ make package/luci-app-xray/compile V=99

不知道是不是这里错了?

yukeiyang commented 9 months ago

完整编译过程如下:

$ su - plus 
$ wget https://downloads.openwrt.org/releases/23.05.0/targets/x86/64/openwrt-sdk-23.05.0-x86-64_gcc-12.3.0_musl.Linux-x86_64.tar.xz && tar -xf openwrt-sdk-*-x86_64.tar.xz
$ cd openwrt-sdk-*Linux-x86_64 && git clone https://github.com/yichya/luci-app-xray.git package/luci-app-xray && sudo vi feeds.conf.default && ./scripts/feeds update -a; ./scripts/feeds install -a && make menuconfig && make package/luci-app-xray/compile V=99 && make clean
yichya commented 9 months ago

之前版本: $ make package/luci-app-xray/fw4/compile V=99 现在版本: $ make package/luci-app-xray/compile V=99

不知道是不是这里错了?

确实,需要把 core 或者 status 带上。

make package/luci-app-xray/core/compile V=99

yukeiyang commented 9 months ago

@yichya 菜单栏多出一个 luci-app-xray-preview, 如果不想要这个 preview 的话,有没有办法在编译时去掉?

yichya commented 9 months ago

@yichya 菜单栏多出一个 luci-app-xray-preview, 如果不想要这个 preview 的话,有没有办法在编译时去掉?

Preview 里面的功能还挺有用的,只是可能还不完全稳定。目前去不掉,下个版本拆一下吧。

yukeiyang commented 9 months ago

okay.. thanks