Re: [Interest] Qmake to CMake project conversion android build

2022-11-16 Thread Michael Heiser | SYSTRONIK Elektronik und Systemtechnik GmbH
To answer this myself: Get rid of all find_package(Qt5...) in CMakeList.txt not 
containing source files. Only search for qt packages in library or application 
related CMakeList.txt.

if(ANDROID)
set(QT_ANDROID_APPLICATION_BINARY EuroSoft_live)
endif()

has to be inserted before find_package() call for Qt library cause of a bug in 
Qt5 cmake tools that root PROJECT_NAME is used for the Android shared object 
file. This is fixed with Qt6.

Von: Interest  Im Auftrag von Michael Heiser | 
SYSTRONIK Elektronik und Systemtechnik GmbH
Gesendet: Mittwoch, 16. November 2022 13:28
An: semla...@gmail.com
Cc: interest@qt-project.org
Betreff: Re: [Interest] Qmake to CMake project conversion android build

I’m using Qt Creator and in Run EuroSoft live is already present:

[cid:image002.png@01D8FA58.56189FB0]

Regards Michael

Von: Alexey Edelev mailto:semla...@gmail.com>>
Gesendet: Mittwoch, 16. November 2022 13:09
An: Michael Heiser | SYSTRONIK Elektronik und Systemtechnik GmbH 
mailto:hei...@systronik.de>>
Cc: interest@qt-project.org<mailto:interest@qt-project.org>
Betreff: Re: [Interest] Qmake to CMake project conversion android build

Hi,

Do you use Qt Creator to build, deploy and run the application? If yes I would 
guess you need to switch the "Run" target on in bottom part of the left panel.

Regards,
Alexey.

ср, 16 нояб. 2022 г. в 12:10, Michael Heiser | SYSTRONIK Elektronik und 
Systemtechnik GmbH mailto:hei...@systronik.de>>:
Hello experts,
currently trying to move from qmake to cmake. Starting point in my Framework 
was using qmake2cmake tool. This generated a bunch of heavy cmake files, 
stripped them down and got it working that my integrated internal libs are 
building on windows.
I have managed to get building and running working under MSVC. Now I stuck with 
Android, my libraries and UI components in applets are building, also the final 
shared lib for EuroSoft_live is building but build process stops with following 
error:
👎 Fehler: Cannot find application binary in build dir 
D:/Projects/QtEuroSoftProjectQt6/build/Android_Qt_5_15_10_Clang_Multi_Abi-Debug/android-build//libs/armeabi-v7a/libEuroSoftProject_armeabi-v7a.so<https://v7a.so/>.

Project structure:
EuroSoftProject
CMakeLists.txt
- applications
CMakeLists.txt
- EuroSoft_live
CMakeLists.txt
- applets
- libraries
..

Why does the compiler search for libEuroSoftProject... and not for 
libEuroSoft_live...? When i remove the project tag from root CMakeLists.txt it 
searches for libProject... The final libEuroSoft_live is already exisiting in 
build-dir/android-build/libs/armeabi-v7a/...

Do you have any advice for me?

Regards Michael

SYSTRONIK Elektronik u. Systemtechnik GmbH, Gewerbestr. 57, D-88636 Illmensee
Registergericht Ulm - HRB 710423, Sitz der Gesellschaft Illmensee, USt-IdNr. DE 
811 264 405
Geschäftsführer: Dipl.-VW Elmar Fritz, Ing. Ramon J. van Tuijl, Dipl.-Ing. (FH) 
Richard Skoberla

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder die E-Mail irrtümlich erhalten 
haben, informieren
Sie bitte sofort den Absender und löschen Sie die E-Mail. Das unerlaubte 
Kopieren sowie die unbefugte Weitergabe der E-Mail ist nicht gestattet.

This e-mail may contain confidential and / or privileged information. If you 
are not the intended recipient or the e-mail may contain error, inform you 
immediately ask the sender and delete the e-mail. Unauthorized copying, 
unauthorized disclosure of e-mail is strictly forbidden.

___
Interest mailing list
Interest@qt-project.org<mailto:Interest@qt-project.org>
https://lists.qt-project.org/listinfo/interest
SYSTRONIK Elektronik u. Systemtechnik GmbH, Gewerbestr. 57, D-88636 Illmensee
Registergericht Ulm - HRB 710423, Sitz der Gesellschaft Illmensee, USt-IdNr. DE 
811 264 405
Geschäftsführer: Dipl.-VW Elmar Fritz, Ing. Ramon J. van Tuijl, Dipl.-Ing. (FH) 
Richard Skoberla

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder die E-Mail irrtümlich erhalten 
haben, informieren
Sie bitte sofort den Absender und löschen Sie die E-Mail. Das unerlaubte 
Kopieren sowie die unbefugte Weitergabe der E-Mail ist nicht gestattet.

This e-mail may contain confidential and / or privileged information. If you 
are not the intended recipient or the e-mail may contain error, inform you 
immediately ask the sender and delete the e-mail. Unauthorized copying, 
unauthorized disclosure of e-mail is strictly forbidden.


SYSTRONIK Elektronik u. Systemtechnik GmbH, Gewerbestr. 57, D-88636 Illmensee
Registergericht Ulm - HRB 710423, Sitz der Gesellschaft Illmensee, USt-IdNr. DE 
811 264 405
Geschäftsführer: Dipl.-VW Elmar Fritz, Ing. Ramon J. van Tuijl, Dipl.-Ing. (FH) 
Richard Skoberla

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie ni

Re: [Interest] Qmake to CMake project conversion android build

2022-11-16 Thread Michael Heiser | SYSTRONIK Elektronik und Systemtechnik GmbH
I’m using Qt Creator and in Run EuroSoft live is already present:

[cid:image002.png@01D8F9BF.37A3EFB0]

Regards Michael

Von: Alexey Edelev 
Gesendet: Mittwoch, 16. November 2022 13:09
An: Michael Heiser | SYSTRONIK Elektronik und Systemtechnik GmbH 

Cc: interest@qt-project.org
Betreff: Re: [Interest] Qmake to CMake project conversion android build

Hi,

Do you use Qt Creator to build, deploy and run the application? If yes I would 
guess you need to switch the "Run" target on in bottom part of the left panel.

Regards,
Alexey.

ср, 16 нояб. 2022 г. в 12:10, Michael Heiser | SYSTRONIK Elektronik und 
Systemtechnik GmbH mailto:hei...@systronik.de>>:
Hello experts,
currently trying to move from qmake to cmake. Starting point in my Framework 
was using qmake2cmake tool. This generated a bunch of heavy cmake files, 
stripped them down and got it working that my integrated internal libs are 
building on windows.
I have managed to get building and running working under MSVC. Now I stuck with 
Android, my libraries and UI components in applets are building, also the final 
shared lib for EuroSoft_live is building but build process stops with following 
error:
👎 Fehler: Cannot find application binary in build dir 
D:/Projects/QtEuroSoftProjectQt6/build/Android_Qt_5_15_10_Clang_Multi_Abi-Debug/android-build//libs/armeabi-v7a/libEuroSoftProject_armeabi-v7a.so<https://v7a.so/>.

Project structure:
EuroSoftProject
CMakeLists.txt
- applications
CMakeLists.txt
- EuroSoft_live
CMakeLists.txt
- applets
- libraries
..

Why does the compiler search for libEuroSoftProject... and not for 
libEuroSoft_live...? When i remove the project tag from root CMakeLists.txt it 
searches for libProject... The final libEuroSoft_live is already exisiting in 
build-dir/android-build/libs/armeabi-v7a/...

Do you have any advice for me?

Regards Michael

SYSTRONIK Elektronik u. Systemtechnik GmbH, Gewerbestr. 57, D-88636 Illmensee
Registergericht Ulm - HRB 710423, Sitz der Gesellschaft Illmensee, USt-IdNr. DE 
811 264 405
Geschäftsführer: Dipl.-VW Elmar Fritz, Ing. Ramon J. van Tuijl, Dipl.-Ing. (FH) 
Richard Skoberla

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder die E-Mail irrtümlich erhalten 
haben, informieren
Sie bitte sofort den Absender und löschen Sie die E-Mail. Das unerlaubte 
Kopieren sowie die unbefugte Weitergabe der E-Mail ist nicht gestattet.

This e-mail may contain confidential and / or privileged information. If you 
are not the intended recipient or the e-mail may contain error, inform you 
immediately ask the sender and delete the e-mail. Unauthorized copying, 
unauthorized disclosure of e-mail is strictly forbidden.

___
Interest mailing list
Interest@qt-project.org<mailto:Interest@qt-project.org>
https://lists.qt-project.org/listinfo/interest
SYSTRONIK Elektronik u. Systemtechnik GmbH, Gewerbestr. 57, D-88636 Illmensee
Registergericht Ulm - HRB 710423, Sitz der Gesellschaft Illmensee, USt-IdNr. DE 
811 264 405
Geschäftsführer: Dipl.-VW Elmar Fritz, Ing. Ramon J. van Tuijl, Dipl.-Ing. (FH) 
Richard Skoberla

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder die E-Mail irrtümlich erhalten 
haben, informieren
Sie bitte sofort den Absender und löschen Sie die E-Mail. Das unerlaubte 
Kopieren sowie die unbefugte Weitergabe der E-Mail ist nicht gestattet.

This e-mail may contain confidential and / or privileged information. If you 
are not the intended recipient or the e-mail may contain error, inform you 
immediately ask the sender and delete the e-mail. Unauthorized copying, 
unauthorized disclosure of e-mail is strictly forbidden.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Qmake to CMake project conversion android build

2022-11-16 Thread Michael Heiser | SYSTRONIK Elektronik und Systemtechnik GmbH
Hello experts,
currently trying to move from qmake to cmake. Starting point in my Framework 
was using qmake2cmake tool. This generated a bunch of heavy cmake files, 
stripped them down and got it working that my integrated internal libs are 
building on windows.
I have managed to get building and running working under MSVC. Now I stuck with 
Android, my libraries and UI components in applets are building, also the final 
shared lib for EuroSoft_live is building but build process stops with following 
error:
👎 Fehler: Cannot find application binary in build dir 
D:/Projects/QtEuroSoftProjectQt6/build/Android_Qt_5_15_10_Clang_Multi_Abi-Debug/android-build//libs/armeabi-v7a/libEuroSoftProject_armeabi-v7a.so.

Project structure:
EuroSoftProject
CMakeLists.txt
- applications
CMakeLists.txt
- EuroSoft_live
CMakeLists.txt
- applets
- libraries
..

Why does the compiler search for libEuroSoftProject... and not for 
libEuroSoft_live...? When i remove the project tag from root CMakeLists.txt it 
searches for libProject... The final libEuroSoft_live is already exisiting in 
build-dir/android-build/libs/armeabi-v7a/...

Do you have any advice for me?

Regards Michael

SYSTRONIK Elektronik u. Systemtechnik GmbH, Gewerbestr. 57, D-88636 Illmensee
Registergericht Ulm - HRB 710423, Sitz der Gesellschaft Illmensee, USt-IdNr. DE 
811 264 405
Geschäftsführer: Dipl.-VW Elmar Fritz, Ing. Ramon J. van Tuijl, Dipl.-Ing. (FH) 
Richard Skoberla

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder die E-Mail irrtümlich erhalten 
haben, informieren
Sie bitte sofort den Absender und löschen Sie die E-Mail. Das unerlaubte 
Kopieren sowie die unbefugte Weitergabe der E-Mail ist nicht gestattet.

This e-mail may contain confidential and / or privileged information. If you 
are not the intended recipient or the e-mail may contain error, inform you 
immediately ask the sender and delete the e-mail. Unauthorized copying, 
unauthorized disclosure of e-mail is strictly forbidden.
cmake_minimum_required(VERSION 3.16)
set(APPLICATION_COPYRIGHT "2015-2022")
set(APPLICATION_NAME "EuroSoft live")
set(ORGANIZATION_DOMAIN "www.systronik.com")
set(ORGANIZATION_NAME "Systronik")
set(APPLICATION_VERSION 2.11.0)

include(${CMAKE_CURRENT_SOURCE_DIR}/../../global_conf.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/../../global_functions.cmake)

project(EuroSoft_live VERSION ${APPLICATION_VERSION} LANGUAGES CXX)

# Set up AUTOMOC and some sensible defaults for runtime execution
# When using Qt 6.3, you can replace the code block below with
# qt_standard_project_setup()
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(QT NAMES Qt5 Qt6 COMPONENTS Core REQUIRED)
find_package(Qt5  COMPONENTS Bluetooth Charts Concurrent Gui Multimedia Network 
Qml Quick Script Sql WebSockets WebChannel Widgets Xml REQUIRED)
if(ANDROID)
find_package(Qt5 COMPONENTS AndroidExtras PrintSupport REQUIRED)
endif()
if(MSVC OR MACOS)
find_package(Qt5 COMPONENTS SerialPort PrintSupport REQUIRED)
endif()

# Resources:

file (GLOB_RECURSE 3rdarty_headers CONFIGURE_DEPENDS 
"../../libraries/3rdparty/*.h")

set (3rdparty_includeDirs "")
foreach (_headerFile ${3rdarty_headers})
get_filename_component(_dir ${_headerFile} PATH)
list (APPEND EuroSoftUi_includeDirs ${_dir})
endforeach()
list (REMOVE_DUPLICATES 3rdparty_includeDirs)

include_directories(
..
${3rdparty_includeDirs}
../../libraries/EuroSoft/..
../../libraries/EuroSoftUi/..
)

set(EuroSoft_live_src
../../libraries/EuroSoftUi/supporting/ComponentInitializer.cpp 
../../libraries/EuroSoftUi/supporting/ComponentInitializer.h
EuroSoftLiveController.cpp EuroSoftLiveController.h
EuroSoftLiveViewQml.cpp EuroSoftLiveViewQml.h
main.cpp
)

set(EuroSoft_live_rc
EuroSoft_live.qrc
../../libraries/EuroSoft/EuroSoft.qrc
../../libraries/EuroSoftUi/EuroSoftUi.qrc
../../libraries/EuroSoftUi/EuroSoftUi_resources.qrc
../../applets/measurement/measurement.qrc
../../applets/settings/settings.qrc
../../libraries/3rdparty/3rdparty.qrc
../../textdata/ApplicationMetaData/EuroSoftProject_metadata.qrc
../../translations/compiled/EuroSoftProject_translations.qrc
../../translations/compiled/qtbase_translations.qrc
../../translations/compiled/qtconnectivity_translations.qrc
../../translations/compiled/qtquickcontrols_translations.qrc
)

if(MSVC)
set(EuroSoft_live_rc
${EuroSoft_live_rc}

../../libraries/EuroSoft/loggerconfig/supporting/images/CapbsSensIcons.qrc
)
enable_language("RC")

add_executable(${PROJECT_NAME} WIN32
${EuroSoft_live_src}
${EuroSoft_live_rc}
${CMAKE_CURRENT_SOURCE_DIR}/windows/icon.rc

${CMAKE_CURRENT_SOURCE_DIR}/../../libraries/EuroSoft/Win10Compatibility.manifest
)
elseif(ANDROID)
set(A

[Interest] QR-Code reading using QZXing crashes Android activity

2022-03-21 Thread Michael Heiser | SYSTRONIK Elektronik und Systemtechnik GmbH
Hello experts,

I'm currently porting my app to Qt6. The App depends on QZXing as QR-Code 
reading library which is working really good with Qt 5.15.x. With the changes 
in Qt Multimedia framework (no QAbstractVideoFilter) the guys of QZXing library 
are using QVideoSink as provider for QVideoFrame. From QVideoFrame the 
construct QImages for processing the QRCode information.

I'm currently testing this approach with the example provided by QZXing and the 
example is crashing with this new approach when the current frame from the 
camera is copied via QImage::copy(srcImageFromVideoFrame, QRect(captureRect)). 
I narrowed it down with debug outputs to this call:

if (captureRect.isValid() && frameToProcess.size() != rect.size()) {
frameToProcess = image.copy(rect);
}

What could cause the app to crash here? Are there some checks for image format 
of the source image missing? What can I do get it to work? Any help is 
appreciated.

Furher information to this problem: 
https://github.com/ftylitak/qzxing/issues/217


Mit freundlichen Grüßen  |  With best regards

Michael Heiser
Softwareentwicklung

Email:   hei...@systronik.de
Web:www.systronik.com







SYSTRONIK Elektronik u. Systemtechnik GmbH, Gewerbestr. 57, D-88636 Illmensee
Registergericht Ulm - HRB 710423, Sitz der Gesellschaft Illmensee, USt-IdNr. DE 
811 264 405
Geschäftsführer: Dipl.-VW Elmar Fritz, Ing. Ramon J. van Tuijl, Dipl.-Ing. (FH) 
Richard Skoberla

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder die E-Mail irrtümlich erhalten 
haben, informieren
Sie bitte sofort den Absender und löschen Sie die E-Mail. Das unerlaubte 
Kopieren sowie die unbefugte Weitergabe der E-Mail ist nicht gestattet.

This e-mail may contain confidential and / or privileged information. If you 
are not the intended recipient or the e-mail may contain error, inform you 
immediately ask the sender and delete the e-mail. Unauthorized copying, 
unauthorized disclosure of e-mail is strictly forbidden.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Problems with Qt 5.15.6 on windows when discovering details of a Bluetooth LE service

2021-10-06 Thread Michael Heiser | SYSTRONIK Elektronik und Systemtechnik GmbH
Hello Specialists,

I have problems regarding crashes or application hangs on windows 10
with QT 5.15.6 and Bluetooth LE and our own peripherals.
We have investigated this on old and also on
newer pc hardware. When doing a lowEnergyService discoverDetails() the CPU on
each core goes for seconds to 100% which could cause a deadlock in our app on
old hardware. On newer hardware the process of discoverDetails() goes often
good.
After the connect and the service discovery on our bluetooth peripheral with
lowenergyscanner when clicking on the service I can reproduce the high CPU
load. It needs about 5 seconds to query all the Characteristics of the
service, while querying the CPU load is that high on all cores.

By the way we have in this specifical BLE service 13 characteristics and
before reading the characteristics of this custom service we query
DeviceInformation service with 9 characteristics.

With Qt 5.12 the query of the same service of our peripheral was okay. So what
do you suggest to do?

I need to go on with Qt 5.15.6 because we have to launch a recent update on
Android within the same code base and I have already made the necessary
changes to QML files.

Android and IOS by the way are working super. Do you have any advice how to go
on? What I definitely not want is to have two source bases Qt 5.15.6 for
mobile and Qt 5.12.11 for Windows.

Mit freundlichen Grüßen  |  With best regards

Michael Heiser
Softwareentwicklung

Phone: +49 (0) 7558 / 9206-53
Email:   hei...@systronik.de
Web:www.systronik.com

[cid:image001.png@01D7BB4F.489D5540]





SYSTRONIK Elektronik u. Systemtechnik GmbH, Gewerbestr. 57, D-88636 Illmensee
Registergericht Ulm - HRB 710423, Sitz der Gesellschaft Illmensee, USt-IdNr. DE 
811 264 405
Geschäftsführer: Dipl.-VW Elmar Fritz, Ing. Ramon J. van Tuijl, Dipl.-Ing. (FH) 
Richard Skoberla

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder die E-Mail irrtümlich erhalten 
haben, informieren
Sie bitte sofort den Absender und löschen Sie die E-Mail. Das unerlaubte 
Kopieren sowie die unbefugte Weitergabe der E-Mail ist nicht gestattet.

This e-mail may contain confidential and / or privileged information. If you 
are not the intended recipient or the e-mail may contain error, inform you 
immediately ask the sender and delete the e-mail. Unauthorized copying, 
unauthorized disclosure of e-mail is strictly forbidden.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest