物联网探步--工具篇之安装使用qvb
版权声明
该文章原创于Qter开源社区(www.qter.org),作者lxdlbs371,转载请注明出处!
简介
qvb是用QT 写的工业组态开源软件。在未来工业4.0领域有着重要的作用。并且该软件还支持Linux,windows,OS-X ,openVMS,Maemo/meego, Android和Symbin.
qvb支持二次开发pvdevelop。
工具 下载好对应的工具: vtk-5.10.1
swigwin-1.3.33
qt-windows-opensource-5.1.0-mingw48_opengl-x86-offline
python-2.5.1 下载地址:https://www.python.org/downloads/
ActiveTcl8.5.12.0.296033-win32-ix86-threaded 下载地址:http://download.csdn.net/download/a1217975151/4540303
pvb-master: 下载地址:https://github.com/pvbrowser/pvb
1:把pvb-master 解压到D盘:并更名pvb
2:分别安装 ActiveTcl8.5.12.0.296033-win32-ix86-threaded
3:安装python-2.5.1
4:qt-windows-opensource-5.1.0-mingw48_opengl-x86-offline
5:把相应的第三方库放在D盘 swigwin-1.3.33
vtk-5.10.1
6:修改D:\pvb\win-mingw 下的login.bat 并运行 - <font size="3">@echo off
- rem -------------------------------------------------------
- rem set environment variables for running build batch files
- rem adjust this
- rem -------------------------------------------------------
- rem set directories for needed tools
- rem directories where qt and mingw are installed
- rem ### for qt4.8.2 ###
- rem SET QTDIR=C:\Qt\4.8.2
- rem MINGWDIR=C:\mingw-old
- rem ### for qt5.1.0 ###
- SET QTDIR=C:\Qt\5.1.0\5.1.0\mingw48_32
- SET MINGWDIR=C:\Qt\5.1.0\Tools\mingw48_32
- rem tools necessary for language bindings
- SET SWIGDIR=D:\swigwin-1.3.33
- SET PYDIR=C:\Python25
- SET VTKDIR=D:\VTK5.10.1
- SET TCLDIR=c:\Tcl
- SET TCLLIBPATH=C:\Tcl\lib\tcl8.5;D:\VTK5.10.1\Wrapping\Tcl
- rem change to directory with our sources
- SET PVBDIR=D:\pvb
- D:
- cd %PVBDIR%\win-mingw
- rem setup path variables
- SET PATH=%PVBDIR%\win-mingw\bin;%MINGWDIR%\bin;%QTDIR%\bin;c:\windows;c:\windows\system32
- SET PYTHONPATH=%PVBDIR%\win-mingw\bin;%PYTHONPATH%
- echo The following has been set:
- echo Is this correct on your machine ?
- echo If not then edit this file.
- echo QTDIR=%QTDIR%
- echo MINGWDIR=%MINGWDIR%
- echo SWIGDIR=%SWIGDIR%
- echo PYDIR=%PYDIR%
- echo PATH=%PATH%
- echo now run:
- echo build.bat // if you want to use Qt4
- echo build5.bat // if you want to use Qt5
- </font>
复制代码
7:编译pvb:
8:加载PVB实例;
9:然后编译,运行。
需要把D:\pvb\pv**ample文件夹下,后缀为 *.tcl *.html *.csv *.png*.svg *.vtk, 文件全部放在pv**ample.exe程序同一文件夹下,然后运行pvbrowser。这时候就会有图标和各种文件实例。
下面是机械动画(双击查看):
后语:
关于Linux的包,已经做好了,可以自行下载:
http://software.opensuse.org/download/package.iframe?project=home:pvbrowser&package=pvbrowser-devel
|