本文共 2121 字,大约阅读时间需要 7 分钟。
Recently several OpenCASCADE enthusiasts want to build my simple Qt demo about OpenCASCADE on ubuntu system, but could not compile it successfully. Because I only compiled the occQt in Windows system, do not try it in Linux system. I try to build it on Debian system, also have the same errors as follows:
Figure 1. Compile errors of Building occQt on Debian
In order to use Qt5 in Debian7, you can input the following commands:
1. Get Qt5 on Debian:
2. Download the newest version of QtCreator from Qt website:
You can get the following file:
qt-creator-opensource-linux-x86_64-3.4.0.run
Figure 2. Download Qt Creator for Linux
3. Install QtCreator manually:
Install Qt Creator manually by the following commands:
Figure 3. Qt Creator Setup
Figure 4. Qt Creator Setup
4. It is succeed When the Qt Creator Icon appears in the Applications.
Figure 5. Qt Creator in Applications
5. I tried the math_Vector, it runs correctly, the code list as follows:
The configuration of the test project as follows:
The result shows:
Figure 6. Test math_Vector in Qt on Debian
It can compile and run correctly, the compile error in occQt do not appear in the test program. you can also debug the code in Qt Creator. So use Qt Creator to program on Linux is very convenient.
PDF Version:
转载地址:http://gtiym.baihongyu.com/