Download the wayland-1.0.3 and unzip it, sudo gedit/etc/profile, and add the following content:
Wld =/usr # change this to another location if you preferld_library_path = $ wld/libpkg_config_path = $ wld/lib/pkgconfig /: $ wld/share/pkgconfig/aclocal = "aclocal-I $ wld/share/aclocal" Export wld LD_LIBRARY_PATH pkg_config_path aclocal
Run source/etc/profile
$./Autogen. Sh -- prefix = $ wld $ make install
Download Mesa-9.0.1 and decompress it
$./Autogen. Sh -- prefix = $ wld $ make install
Sudo apt-Get install Xorg-DevLibdrm-dev x11proto-dri2-dev libxxf86vm-dev libxt-DevLibx11-xcb-dev libxcb-glx0 libxcb-glx0-dev libxcb-dri2-0-dev
Download dri2proto-2.6.tar.gz glproto-1.4.14.tar.gzLibdrm_2.4.32.orig.tar.gz libdrm-2.4.40.tar.gzUnzip and install
Make & make install
Below from http://www.cnblogs.com/ankier/archive/2012/11/09.html
Mesa, which is the best ftp://ftp.freedesktop.org/pub/mesa/9.0.1/ for OpenGL on the current Linux platform
1>./configure, error: makedepend is required to build Mesa
Sudo apt-Get install xutils-Dev
2>./configure, error: Flex is needed to build Mesa
Sudo apt-Get install flex
3>./configure, error: Bison is needed to build Mesa
Sudo apt-Get install bison
4>./configure, error: X11 development libraries needed for Glx
Sudo apt-Get install Xorg-Dev
5>./configure,
Error: Direct rendering requries libdrm> = 2.4.24
Download libdrm-2.4.33.tar.bz2, decompress and install
6>./configure,
Configure: Error: Package requirements (X11 xext xdamage xfixes x11-xcb xcb-Glx xxf86vm) were not met:
No package "" x11-xcb "Found
No package "" xcb-Glx "" Found
Sudo apt-Get install libx11-xcb-dev libxcb-glx0 libxcb-glx0-dev
7>./configure,
No package "" libdrm_nouveau "" Found
This topic is boring. In 32-bit Ubuntu, the driver Gallium 0.4 on llvmpipe (llvm 0x300) can be installed through VMware Tools ), I do not know why 64-bit cannot be used (not very certain ?)
At this time, we need to add two parameters:./configure nouveau_cflags = Disable nouveau_libs = Disable (we only need to simulate the software)
Configure from the beginning, and the following errors are displayed
Configure: Error: llvm is required to build Gallium r300 on x86 and x86_64
Sudo apt-Get install llvm
It's not easy to get through the process!
8>.
Configure: Error: Package requirements (X11 xext xdamage xfixes x11-xcb xcb-Glx> = 1.8.1 xcb-dri2> = 1.8) were not met:
No package 'xcb-glx' found
No package 'xcb-dri2' found
Sudo apt-Get install libx11-xcb-dev libxcb-glx0 libxcb-glx0-dev
Sudo apt-Get install libxcb-dri2-0-dev
9>.
Sudo apt-add-repository PPA: Xorg-edgerssudo apt-Get update sudo apt-Get install libdrm-Dev
10>.
Xcb dependency
- Sudo apt-Get install libx11-xcb-dev
- Sudo apt-Get install libxcb-icccm4-dev (because xcb/xcb_icccm.h in qtbase \ config. Tests \ qpa \ xcb)
- Sudo apt-Get install libxcb-xfixes0-dev (because xcb/xfixes. h In qtbase \ config. Tests \ qpa \ xcb)
- Sudo apt-Get install libxcb-image0-dev (because xcb/xcb_image.h in qtbase \ config. Tests \ qpa \ xcb)
- Sudo apt-Get install libxcb-keysyms1-dev (because xcb/xcb_keysyms.h in qtbase \ config. Tests \ qpa \ xcb)
- Sudo apt-Get install libxcb-sync0-dev (because xcb/Sync. h In qtbase \ config. Tests \ qpa \ xcb)
- Sudo apt-Get install libxcb-render-util0-dev (because xcb/xcb_renderutil.h in qtbase \ config. Tests \ qpa \ xcb)
OpenGL dependency
- Sudo apt-Get install libegl1-mesa-dev
- Sudo apt-Get install libgles1-mesa-dev
- Sudo apt-Get install libgles2-mesa-dev
11->
Sudo apt-Get install Autoconf
Sudo apt-Get install libtool
./Configure OK
Run make and make install to the default path include. The LIB file is/usr/local/include and/usr/local/lib.
Step 4: Configure OK, click Generate button, and wait until projects are fully generated.
7. Now, open code: blocks IDE and import the generated project file: VTK. White. Then you can rebuild and wait about half an hour to get the Lib.
After you compile build target: Install, The so file under the/usr/local/lib/vtk-5.10 is generated.
8. test whether the installation of VTK is successful:
Input import VTK on python2.7 ide. If the following error occurs:
ImporterrorLibvtkcommonpythond.So5.10:Cannot open shared object file: no such file or directory
You need to execute the following command in the command line window to fix the error:
Ldconfig/usr/local/lib/VTK-5.10
9. added the Fold Path:/usr/local/lib/python2.7/dist-packages/VTK for VTK to eclipse pydev.
Now VTK can run normally.