Giter VIP home page Giter VIP logo

occ_qt_linux_demo's Introduction

QT_Linux_OCC

一、环境

QT Linux(Ubuntu)

下载QT安装包 并安装 https://download.qt.io/archive/qt/5.12/5.12.12/qt-opensource-linux-x64-5.12.12.run

安装时选择 Desktop gcc 64-bit即可

配置GCC的环境

sudo apt-get install build-essential

sudo apt-get install libdrm-dev libxxf86vm-dev libxt-dev xutils-dev flex bison xcb libx11-xcb-dev libxcb-glx0 libxcb-glx0-dev xorg-dev libxcb-dri2-0-dev

sudo apt install cmake

或者安装GUI的Cmake

sudo apt install cmake-gui

PS:如果你打不开QtCreator,手动安装一下Qt5环境(也不知道怎么回事,这厮利用不上自己安装包的Qt5 ????)

sudo apt install qt5-default

.
.

OpenCASCADE

下载 780
https://codeload.github.com/Open-Cascade-SAS/OCCT/zip/refs/tags/V7_8_0

编译

cd [OCC源码路径]
mkdir build
cd build
cmake -G "Unix Makefiles" .. -DBUILD_MODULE_Draw=OFF -DUSE_FREETYPE=OFF -DCMAKE_INSTALL_PREFIX=../install
make -j8
make install

PS:如果需要FreeType请编译并配置FreeType,建议安装CMAKE-GUI进行配置(不会命令的boy),此外我们不需要Draw程序,如果需要自行编译并配置tcl/tk

.
.

二、拉取并配置项目

拉取项目后用QtCreator打开demo.pro 将occt.pri中的OCCPath改成你自己的安装路径

OCCPath=            /home/ajune/OCC/occ_src/OCCT-7_8_0/install

OK!
PS:Demo的视图操作器上没有字是因为没有Freetype噢~

occ_qt_linux_demo's People

Contributors

ajune-wang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.