网速监视器v2
Tofloor
poster avatar
Bluek404
deepin
2015-05-01 04:10
Author
本帖最后由 Bluek404 于 2015-4-30 21:57 编辑

Github:
https://github.com/Bluek404/nsm

界面改用QML
截图:


TODO:
托盘图标

nsm.7z

Reply Favorite View the author
All Replies
1 / 2
To page
rekols
deepin
2015-05-01 05:18
#1
前来支持!!
Reply View the author
liulangdedao
deepin
2015-05-01 05:34
#2
兄弟,来个介绍呗,这玩意话说还不怎么会用啊
Reply View the author
liulangdedao
deepin
2015-05-01 05:35
#3
没有32位的么?小白不知道该怎么弄。。。。。。。
Reply View the author
rekols
deepin
2015-05-01 22:38
#4
可以分享下gopkg.in/qml.v1怎么弄吗?
Reply View the author
rekols
deepin
2015-05-01 22:39
#5
我go get gopkg.in/qml.v1提示:package gopkg.in/qml.v1: cannot download, $GOPATH not set. For more details see: go help gopath
请问你的GOPATH怎么弄?
Reply View the author
Bluek404
deepin
2015-05-01 22:58
#6
本帖最后由 Bluek404 于 2015-5-1 15:02 编辑
https://bbs.deepin.org/post/29812
我go get gopkg.in/qml.v1提示:package gopkg.in/qml.v1: cannot download, $GOPATH not set. For more de ...

新建个文件夹
然后终端
export GOPATH=文件夹
就行
qml编译需要的依赖可以看
https://github.com/go-qml/qml/tree/v1#requirements-on-ubuntu
Reply View the author
rekols
deepin
2015-05-02 00:54
#7
https://bbs.deepin.org/post/29812
新建个文件夹
然后终端
export GOPATH=文件夹

OK谢谢
Reply View the author
rekols
deepin
2015-05-02 01:46
#8
https://bbs.deepin.org/post/29812
新建个文件夹
然后终端
export GOPATH=文件夹

这什么意思。。


➜  ~  go get gopkg.in/qml.v1                          
# pkg-config --cflags Qt5Core Qt5Widgets Qt5Quick
Package Qt5Quick was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Quick.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5Quick' found
exit status 1
Reply View the author
Bluek404
deepin
2015-05-02 02:00
#9
https://bbs.deepin.org/post/29812
这什么意思。。

你没安装        qtdeclarative5-dev
Reply View the author
Lyvnee
deepin
2015-05-02 02:15
#10
已用上
Reply View the author
rekols
deepin
2015-05-02 04:03
#11
https://bbs.deepin.org/post/29812
你没安装        qtdeclarative5-dev

哦,我安装试试
Reply View the author
rekols
deepin
2015-05-02 04:21
#12
https://bbs.deepin.org/post/29812
你没安装        qtdeclarative5-dev

Oh No....
# gopkg.in/qml.v1
In file included from GoPath/src/gopkg.in/qml.v1/cpp/govalue.h:7:0,
                 from GoPath/src/gopkg.in/qml.v1/cpp/capi.cpp:10,
                 from GoPath/src/gopkg.in/qml.v1/all.cpp:2: compilation terminated.
Reply View the author
Bluek404
deepin
2015-05-02 04:57
#13
https://bbs.deepin.org/post/29812
Oh No....
# gopkg.in/qml.v1
In file included from GoPath/src/gopkg.in/qml.v1/cpp/govalue.h:7:0,

qtbase5-private-dev
Reply View the author
rekols
deepin
2015-05-02 05:03
#14

#include
这个呢?
Reply View the author
Bluek404
deepin
2015-05-02 05:23
#15
https://bbs.deepin.org/post/29812
#include
这个呢?

你还是自己搜去吧
就是些dev包
Reply View the author
rekols
deepin
2015-05-02 05:30
#16
https://bbs.deepin.org/post/29812
你还是自己搜去吧
就是些dev包

你在哪里找的?
Reply View the author
Bluek404
deepin
2015-05-02 05:37
#17
本帖最后由 Bluek404 于 2015-5-1 21:38 编辑
https://bbs.deepin.org/post/29812
你在哪里找的?

http://stackoverflow.com
https://www.google.com
http://packages.ubuntu.com

Reply View the author
rekols
deepin
2015-05-02 05:49
#18
https://bbs.deepin.org/post/29812
http://stackoverflow.com
https://www.google.com
http://packages.ubuntu.com

谢谢。
Reply View the author
rekols
deepin
2015-05-02 06:09
#19
https://bbs.deepin.org/post/29812
http://stackoverflow.com
https://www.google.com
http://packages.ubuntu.com

在ubuntu的packages里边找到了libsmokeqtopengl4-3   libqtopengl4-perl这两个包安装后还是不行    帮我找找啊    谢谢啊
Reply View the author
snyh1010
deepin
2015-05-02 06:09
#20
可以试试用gudev来读取数据。 这个稍微方便一点,可以遍历网络设备,读取指定属性, 监听属性改变。

  1. package main

  2. import "fmt"
  3. import "gudev"

  4. func main() {
  5.         c := gudev.NewClient(nil)

  6.         all := c.QueryBySubsystem("net")
  7.         for _, net := range all {
  8.                 if net.GetName() != "lo" {
  9.                         fmt.Println(net.GetName(), net.GetSysfsAttrAsUint64("statistics/tx_bytes"))
  10.                 }
  11.         }
  12. }
Copy the Code


gudev可以在https://github.com/snyh/slide/tree/master/gopherchina2015/gudev 这里找到。
Reply View the author
1 / 2
To page