Linux under compile Run Tigl Viewer step

Source: Internet
Author: User

Linux Compile Run Tigl Viewer step (just skip to step 3 for proper compilation of the installation)

1. Linux Distribution options:
Because of the large number of Linux distributions, there may be differences in the library versions that are included in different versions, so you need to choose the correct version. Since the list of distributions recommended by Opencascade is familiar to Ubuntu, use Ubuntu. (Other distributions of the package installation method and Ubuntu are very different, unfamiliar words will be more troublesome)

2. Ubuntu Version Selection:
Although Opencascade recommends the use of the ubuntu13.04 version, it is not possible to install the required packages using the Apt-get install because of the 13.04 non-long support version, and the way to manually download and install packages is very inefficient and painful: Requires package A, download a , install a, prompt requires another package b; Download B, install B, but prompt for another package C; Download C, ... So I chose to use the long-term support version 12.04, and use the Apt-get install installs the required package:
sudo apt-get update
sudo apt-get install cmake libtixi-dev qt4-dev-tools liboce-foundation-dev liboce-modeling-dev Liboce-ocaf-dev Liboce-ocaf-lite-dev Liboce-visualization-dev

The installation process is smooth, but in the Configure phase of Cmake-gui, the QT version is too old, because the QT package in the 12.04 software source is too old to solve this problem only manually download the latest version of the QT Library and compile (the compilation process takes 3 hours). After Qt is done, CMake can generate the right makefile. However, in the process of using make compilation Tigl will be prompted a similar "unsolved reference to ..." link error, in theory should be able to fix the problem, but a simple test, failed to solve, and considering the following may have similar errors, So give up 12.04, or consider using 13.04.
Guess 14.04 should not have these problems, but did not try.

3. Compile and run ubuntu13.04 under Tiglviewer

3.1 Add the Tigl-related warehouse address in the source list:
At the end of the/etc/apt/source.list, add the following line: Deb http://download.opensuse.org/repositories/home:martinsiggel/xUbuntu_13.04//
3.2 Modifying the 13.04 software Source:
Replace the original HTTP address in the source.list with the Http://old-releases.ubuntu.com/ubuntu
Remember to retain the source address before the DEB/DEB-SRC and raring main restricted (multiverse), and so on, just simply replace the HTTP link, the rest do not move.
3.3 Update the SOFTWARE source:
sudo apt-get update
sudo apt-get upgrade
3.3 Download the required packages for installation:
sudo apt-get install cmake libtixi-dev qt4-dev-tools liboce-foundation-dev liboce-modeling-dev Liboce-ocaf-dev Liboce-ocaf-lite-dev Liboce-visualization-dev
3.4 Download Cmake-gui and use CMake to build the appropriate makefiles
Download install: sudo cmake-gui
Build: Open Cmake-gui, select source Dirctory and Target dirctory, without any path settings (including cvsroot), click Configure and Generate, Generate the corresponding makefiles (you can choose Unix makefiles and Eclipse CDT makefiles two ways in the CMake configuration option).
3.5 Build the source code and execute the built executable program using makefiles compilation:
If you use the Unix Makefiles method:
Compile build: Switch to execute sudo make under target dirctory,console configured in Cmake-gui
Execute: Switch to the bin directory and execute sudo under console./tiglviewer
If you use the Eclipse CDT Makefiels method:
Compile Build: Install Eclipse-cdt:sudo apt-get installation ECLIPSE-CDT First, then import the target dirctory from Cmake-gui to eclipse Finally, build the project that was imported in ECLIPSE-CDT
Execute: Run the project that was built in ECLIPSE-CDT.

Linux under compile Run Tigl Viewer step

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.