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


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

2022-11-16 Thread Alexey Edelev
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 :

> 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.
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest