Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge new changes on main back to dev #34

Merged
merged 2 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ sudo apt-get install docker.io

This build example is written for an APK build for the architecture arm64_v8a with Qt version 6.6.1.
If you are using a different version, you must change the Qt version for Qt OPC UA in the file getDependencies.sh and the CMAKE_INSTALL_PREFIX in the build example.
To build an APK for a different architecture, you must change the CMAKE_INSTALL_PREFIX and the OPENSSL_ROOT_DIR in the build example.
| Architecture | CMAKE_INSTALL_PREFIX | OPENSSL_ROOT_DIR |
| ------------- | ------------------------------- | ------------------------------------------------------ |
| arm64_v8a | /opt/Qt/6.6.1/android_arm64_v8a | ${PWD}/dependencies/android_openssl/ssl_3/arm64-v8a/ |
| armeabi_v7a | /opt/Qt/6.6.1/android_armv7 | ${PWD}/dependencies/android_openssl/ssl_3/armeabi-v7a/ |
| x86 | /opt/Qt/6.6.1/android_x86 | ${PWD}/dependencies/android_openssl/ssl_3/x86/ |
| x86_64 | /opt/Qt/6.6.1/android_x86_64 | ${PWD}/dependencies/android_openssl/ssl_3/x86_64/ |
To build an APK for a different architecture, you must change the CMAKE_INSTALL_PREFIX, the OPENSSL_ROOT_DIR and the BUILD_ARCH enviroment variable in the build example.
| Architecture | CMAKE_INSTALL_PREFIX | OPENSSL_ROOT_DIR | BUILD_ARCH |
| ------------- | ------------------------------- | ------------------------------------------------------ | ---------- |
| arm64_v8a | /opt/Qt/6.6.1/android_arm64_v8a | ${PWD}/dependencies/android_openssl/ssl_3/arm64-v8a/ | arm64_v8a |
| armeabi_v7a | /opt/Qt/6.6.1/android_armv7 | ${PWD}/dependencies/android_openssl/ssl_3/armeabi-v7a/ | armv7 |
| x86 | /opt/Qt/6.6.1/android_x86 | ${PWD}/dependencies/android_openssl/ssl_3/x86/ | x86 |
| x86_64 | /opt/Qt/6.6.1/android_x86_64 | ${PWD}/dependencies/android_openssl/ssl_3/x86_64/ | x86_64 |

```
git clone https://github.com/basysKom/opcua_browser.git
Expand All @@ -172,8 +172,12 @@ cd opcua_browser
sudo docker run -it --rm -v "${PWD}:/home/user/project:ro" -v "${PWD}/../build_opcua_browser:/home/user/build:rw" stateoftheartio/qt6:6.6-android-aqt \
sh -c 'rm -rf build/* && \
cd project && \
qt-cmake ./dependencies/qtopcua -G Ninja -B ../build/qtopcua -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/opt/Qt/6.6.1/android_arm64_v8a \
-DOPENSSL_INCLUDE_DIR=${PWD}/dependencies/android_openssl/ssl_3/include/ -DOPENSSL_ROOT_DIR=${PWD}/dependencies/android_openssl/ssl_3/arm64-v8a/ && \
export BUILD_ARCH=arm64_v8a && \
qt-cmake ./dependencies/qtopcua -G Ninja -B ../build/qtopcua \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=/opt/Qt/6.6.1/android_arm64_v8a \
-DOPENSSL_INCLUDE_DIR=${PWD}/dependencies/android_openssl/ssl_3/include/ \
-DOPENSSL_ROOT_DIR=${PWD}/dependencies/android_openssl/ssl_3/arm64-v8a/ && \
cmake --build ../build/qtopcua && \
sudo /opt/Qt/Tools/CMake/bin/cmake --install ../build/qtopcua && \
rm -rf ../build/qtopcua && \
Expand Down
1 change: 1 addition & 0 deletions src/qml/ContextMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pragma ComponentBehavior: Bound

import QtQuick
import QtQuick.Controls
import QtQuick.Controls.impl // IconImage
import QtQuick.Layouts

import OPC_UA_Browser
Expand Down
1 change: 1 addition & 0 deletions src/qml/DashboardView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pragma ComponentBehavior: Bound

import QtQuick
import QtQuick.Controls
import QtQuick.Controls.impl // IconImage
import QtQuick.Layouts

import OPC_UA_Browser
Expand Down
1 change: 1 addition & 0 deletions src/qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import QtCore
import QtQuick
import QtQuick.Controls
import QtQuick.Controls.impl // IconImage
import QtQuick.Layouts

import OPC_UA_Browser
Expand Down
1 change: 1 addition & 0 deletions src/qml/NodeReferenceList.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pragma ComponentBehavior: Bound

import QtQuick
import QtQuick.Controls
import QtQuick.Controls.impl // IconImage
import QtQuick.Layouts

import OPC_UA_Browser
Expand Down
1 change: 1 addition & 0 deletions src/qml/NodesView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pragma ComponentBehavior: Bound

import QtQuick
import QtQuick.Controls
import QtQuick.Controls.impl // IconImage

import OPC_UA_Browser

Expand Down
1 change: 1 addition & 0 deletions src/qml/SettingsView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pragma ComponentBehavior: Bound

import QtQuick
import QtQuick.Controls
import QtQuick.Controls.impl // IconImage
import QtQuick.Layouts

import OPC_UA_Browser
Expand Down
1 change: 1 addition & 0 deletions src/qml/controls/StyledIconTabButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import QtQuick
import QtQuick.Controls
import QtQuick.Controls.impl // IconImage
import QtQuick.Layouts

import OPC_UA_Browser
Expand Down
1 change: 1 addition & 0 deletions src/qml/controls/StyledItemSelector.qml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import QtQuick
import QtQuick.Controls
import QtQuick.Controls.impl // IconImage

import OPC_UA_Browser

Expand Down