cool-retro-term no longer runs from compile directory #587

Open
opened 2020-05-09 19:32:31 +02:00 by vmedea · 3 comments
vmedea commented 2020-05-09 19:32:31 +02:00 (Migrated from github.com)

When building from a clean tree, cool-retro-term no longer runs from compile directory:

$ qmake
$ make
$ ../cool-retro-term
qrc:/main.qml:137 Type TerminalContainer unavailable
qrc:/TerminalContainer.qml:23 Type PreprocessedTerminal unavailable
qrc:/PreprocessedTerminal.qml:24 module "QMLTermWidget" is not installed

Cannot load QML interface

The problem is that since commit e1b6ac5c6c, various files are no longer being copied to qmltermwidget/QMLTermWidget after build, where it expects them.

To manually work around this you can copy the necessary files manually:

$ cp -r qmltermwidget/src/qmldir qmltermwidget/lib/kb-layouts qmltermwidget/lib/color-schemes qmltermwidget/src/QMLTermScrollbar.qml qmltermwidget/QMLTermWidget
$ ./cool-retro-term
QObject::connect: No such slot Konsole::TerminalDisplay_QML_163::close()
loadAllColorSchemes
file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Dialogs/DefaultFileDialog.qml:102:33: QML Settings: Failed to initialize QSettings instance. Status code is: 1
file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Dialogs/DefaultFileDialog.qml:102:33: QML Settings: The following application identifiers have not been set: QVector("organizationName", "organizationDomain")
Both point size and pixel size set. Using pixel size.
When building from a clean tree, `cool-retro-term` no longer runs from compile directory: ```bash $ qmake $ make $ ../cool-retro-term qrc:/main.qml:137 Type TerminalContainer unavailable qrc:/TerminalContainer.qml:23 Type PreprocessedTerminal unavailable qrc:/PreprocessedTerminal.qml:24 module "QMLTermWidget" is not installed Cannot load QML interface ``` The problem is that since commit https://github.com/Swordfish90/qmltermwidget/commit/e1b6ac5c6ca3db037127f6be2721fa902a1bbd81, various files are no longer being copied to `qmltermwidget/QMLTermWidget` after build, where it expects them. To manually work around this you can copy the necessary files manually: ```bash $ cp -r qmltermwidget/src/qmldir qmltermwidget/lib/kb-layouts qmltermwidget/lib/color-schemes qmltermwidget/src/QMLTermScrollbar.qml qmltermwidget/QMLTermWidget $ ./cool-retro-term QObject::connect: No such slot Konsole::TerminalDisplay_QML_163::close() loadAllColorSchemes file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Dialogs/DefaultFileDialog.qml:102:33: QML Settings: Failed to initialize QSettings instance. Status code is: 1 file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Dialogs/DefaultFileDialog.qml:102:33: QML Settings: The following application identifiers have not been set: QVector("organizationName", "organizationDomain") Both point size and pixel size set. Using pixel size. ```
markqvist commented 2020-05-11 09:25:20 +02:00 (Migrated from github.com)

Can confirm this on MacOS. The workaround also allows the compiled program to run here.

Can confirm this on MacOS. The workaround also allows the compiled program to run here.
keinwort commented 2020-05-13 16:15:17 +02:00 (Migrated from github.com)

have to install
$ apt install qml-module-qmltermwidget
first
and then
$ cp -r qmltermwidget/src/qmldir qmltermwidget/lib/kb-layouts qmltermwidget/lib/color-schemes qmltermwidget/src/QMLTermScrollbar.qml qmltermwidget/QMLTermWidget
can confirm this on Kali Linux 2020.2.
The workaround allows the compiled program to run at the compiled path here.

have to install $ apt install qml-module-qmltermwidget first and then $ cp -r qmltermwidget/src/qmldir qmltermwidget/lib/kb-layouts qmltermwidget/lib/color-schemes qmltermwidget/src/QMLTermScrollbar.qml qmltermwidget/QMLTermWidget can confirm this on Kali Linux 2020.2. The workaround allows the compiled program to run at the compiled path here.
Krebrov001 commented 2021-08-15 22:43:30 +02:00 (Migrated from github.com)

Thank you for this tip!

Thank you for this tip!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#587
No description provided.