Qt Inject Linux/en: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen
 
(4 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
[[Qt_Inject_Linux|Deutsche Version]] | '''English Version'''
----
With expecco version 20.1. it is possible, to test a Qt application without modifying the code.
With expecco version 20.1. it is possible, to test a Qt application without modifying the code.


The files you need are in <i><expecco-installation-dir>/packages/exept/expecco/plugin/qt/expeccoQtClient/expecceTestService_InjectTool_Unix</i>:
The necessary files are located in the directory <i><expecco-installation-dir>/packages/exept/expecco/plugin/qt/expeccoQtClient/expecceTestService_InjectTool_Unix</i>:
* inject.sh
* <i>inject.sh</i>
* <i>injector.so</i> <br> (or the corresponding one for your computer architecture (e.g. injector_32_arm.so). You have to rename this file to <i>injector.so</i> because the <i>inject.sh</i> script expects this name)
* injector.so


Please copy the Qt version dependent ExpeccoTestService library from <i><expecco-installation-dir>/packages/exept/expecco/plugin/qt/expeccoQtClient/expeccoTestService/bin/linux/gcc_x64_Qt<qtVersion>/</i> in this directory.
Please copy the Qt version-dependent ExpeccoTestService library from <i><expecco-installation-dir>/packages/exept/expecco/plugin/qt/expeccoQtClient/expeccoTestService/bin/linux/gcc_x64_Qt<qtVersion>/</i> in this directory.
* <i>libExpeccoTestService.so.1</i> or <i>libExpeccoTestService_V2.so.1</i> (Qt Quick/QML support; in this case, please rename the file to <i>libExpeccoTestService.so.1</i>.)
* libExpeccoTestService.so.1


Now you can start your application with
Now you can start your application with
Zeile 12: Zeile 14:


and connect expecco <q>Gui Browser</q> via QT-Bridge.
and connect expecco <q>Gui Browser</q> via QT-Bridge.

====Logingt====

You can activate logging and set a log level using the following line in ''inject.sh'':
export ETS_QT_LOG_LEVEL=<Loglevel>

For possible values for log level, see [[Qt_Inject_Windows#Logging|Qt Inject for Windows - Logging]]

----

Back to [[Qt Plugin Reference/en|Qt Plugin Reference]]

Aktuelle Version vom 27. März 2024, 11:12 Uhr

Deutsche Version | English Version


With expecco version 20.1. it is possible, to test a Qt application without modifying the code.

The necessary files are located in the directory <expecco-installation-dir>/packages/exept/expecco/plugin/qt/expeccoQtClient/expecceTestService_InjectTool_Unix:

  • inject.sh
  • injector.so
    (or the corresponding one for your computer architecture (e.g. injector_32_arm.so). You have to rename this file to injector.so because the inject.sh script expects this name)

Please copy the Qt version-dependent ExpeccoTestService library from <expecco-installation-dir>/packages/exept/expecco/plugin/qt/expeccoQtClient/expeccoTestService/bin/linux/gcc_x64_Qt<qtVersion>/ in this directory.

  • libExpeccoTestService.so.1 or libExpeccoTestService_V2.so.1 (Qt Quick/QML support; in this case, please rename the file to libExpeccoTestService.so.1.)

Now you can start your application with

./inject.sh <qt-application-to-test>

and connect expecco Gui Browser via QT-Bridge.

Logingt[Bearbeiten]

You can activate logging and set a log level using the following line in inject.sh:

export ETS_QT_LOG_LEVEL=<Loglevel>

For possible values for log level, see Qt Inject for Windows - Logging


Back to Qt Plugin Reference



Copyright © 2014-2024 eXept Software AG