xueliu / lora-feed

Semtech packages and ChirpStack Network Server stack for OpenWRT
GNU General Public License v2.0
76 stars 55 forks source link

Is there any plans to update the lorawan-stack package recently? #20

Closed guo652917087 closed 3 years ago

guo652917087 commented 3 years ago

Hi, I tried to update the version of lorawan-stack V3.9, and it seems that the front-end page has not been compiled into ttn-lw-stack. I used go V1.14, modified your compilation steps:

@echo "make init" @make init -C $(PKG_BUILD_DIR) (\ export GOPATH=$(GO_PKG_BUILD_DIR) \ GOCACHE=$(GO_PKG_CACHE_DIR) \ GOTMPDIR=$(GO_PKG_TMP_DIR) \ GOROOT_FINAL=$(GO_TARGET_ROOT) \ CC=$(TARGET_CC) \ CXX=$(TARGET_CXX) \ $(call GoPackage/Environment) \ \ && cd $(PKG_BUILD_DIR) \ && tools/bin/mage js:clean js:build \ && echo "Compiling CLI..." \ && go build ./cmd/ttn-lw-cli \ && echo "Compiling Stack..." \ && go build ./cmd/ttn-lw-stack \ )

The test log shows that the page does not exist(http:404):

duration=199.011 method=GET namespace=web remote_addr=192.168.2.25 request_id=01EE9PX51BYTYYWD2MR4S4PRPH response_size=19 status=404 url=http://192.168.2.1:1885/assets/console.js

Do you have any way to compile front-end js?

xueliu commented 3 years ago

Hello,

Yes. the front-end is not compiler at all. Because it uses local program called mage to compile, which is not sucessfully called by the OpenWRT build process.

I use the blog https://blog.csdn.net/iotisan/article/details/91954463 to make the Makefile.

guo652917087 commented 3 years ago

Hi, I found that when compiling ttn-lw-stack under openwrt, the content of "lorawan-stack/public" is missing. This is the file compiled by the front end, which is really strange.

xueliu commented 3 years ago

Hello,

Please have a try with the latest release ae345b0fde87cc20d52c0876b41005bdd4c58d41.

The binary seems working. I did not success to cross compile the cockroach. so I can not continue to test.

guo652917087 commented 3 years ago

Yes, it work.