Open CASCADE Technology
6.9.0
|
|
This sample demonstrates a simple way of using OCCT libraries in Android application written using Qt/Qml.
The connection between Qt/Qml and OCCT (C++) level is provided by proxy library, libAndroidQt.so, written in C++. The proxy library contains single C++ class AndroidQt encapsulating OCCT viewer and providing functionality to manipulate this viewer and to import OCCT shapes from supported format of CAD file (BREP).
Requirements for building sample:
Configure project for building sample:
In QtCreator, open AndroidQt.pro project-file:
Specify Android configurations:
Make sure that "Android for armeabi-v7a" kit has been detected
The paths to OCCT and 3rdparty libraries are specified in "OCCT.pri" file:
the paths to the headers:
the libraries location:
OCCT resources (Shaders, SHMessage, StdResource, TObj, UnitsAPI and XSMessage folder) should be copied to androidqt_dir/android/assets/opencascade/shared/ directory. Current sample requires at least Shaders folder.
Select build configuration: Debug or Release and click Build->Build Project "AndroidQt" or (Ctrl + B). After successful build the application can be deployed to device or emulator.