VTK Installation and Configuration with Qt in Ubuntu
来源:互联网 发布:mysql exists 编辑:程序博客网 时间:2024/05/17 23:27
Download vtk-5.10.1.tar.gz fromhttp://vtk.org/VTK/resources/software.html#latestand extract;
$cd/home/chen/Downloads/VTK5.10.1/
$mkdir VTKBin
$cd VTKBin
$cmake ..
$ccmake ..
configure as follows:
press c to configure, and press g togenerate and exit;
- $make
- copy the include files andlibraries to system directories: $sudo make install
- copy the plugin to qt:
$cd /usr/lib/qt4
sudo mkdir plugins
cd plugins
sudo mkdir designer
sudo cp~/Downloads/VTK5.10.1/VTKBin/bin/libQVTKWidgetPlugin.so/usr/lib/qt4/plugins/designer
open qtcreator (can be installedfrom Ubuntu Software Center) create one Gui application and open the ui by qtdesigner tocheck QVTKWidget.
To use VTK in your own project, addfollowing to the CMakeLists.txt in your project:
########################################################
#VTK
#set(VTK_DIR"~/Downloads/vtk/VTK5.10.1/build")
set(VTK_DIR "/usr/local/lib/vtk-5.10")
find_package(VTK REQUIRED)
include(${VTK_USE_FILE})
########################################################
- VTK Installation and Configuration with Qt in Ubuntu
- Ubuntu Linux OpenSSH Server installation and configuration
- FreeRadius 3.0.x Installation and configuration with Mysql
- mod_dav Installation and Configuration
- Grub installation and configuration
- JSP installation and configuration
- Ubuntu configuration after installation
- Manual Wireless Configuration with iwconfig in Ubuntu
- OpenLDAP Installation and Configuration Guide
- tomcat installation and configuration guide
- Programing with QT+CGAL+VTK
- skpye 4.3 installation and configuration in linux CentOS 7 / RHEL 7 / Fedora 20
- openvswitch installation in Ubuntu
- openvswitch installation in Ubuntu
- ITK VTK Qt in linux
- QtCreator + QT + VTK in Linux
- IA32 embedded developing board installation and configuration
- Step-by-step OpenLDAP Installation and Configuration
- 猜算式 看下面的算式: □□ x □□ = □□ x □□□ 它表示:两个两位数相乘等于一个两位数乘以一个三位数。
- struts2 的工作流程
- Linux nm命令介绍
- java加密解密用法
- excel中的 sumif 和 countif 函数分析详解
- VTK Installation and Configuration with Qt in Ubuntu
- WPF:父窗口与子窗口的层次关系
- 关于easyui datagrid前台界面分页的问题
- Struts2 国际化
- 畸变校正技术
- #03 mnist loader
- android4.0新控件Switch方法解析
- VC中用内存映射文件处理大文件
- OpenMP: OpenMP在VC6下的使用