How do select / identify the installed QTCreator executable on Linux?
-
The offline installer asked for new directory to install new QT versions.
Now I have at least TWO QTCreator executable on my Linux system partition, BUT only ONE
QT icon to start the application. .
There are no "properties" associated with the icon.I usually start QT using "Linux " file manager" - that also does not visibly identifies which QT installation is going to be used.
I can identify that when my project is being "build" - little too late.Linux will always execute the LAST QT installed , how ?
How do I select / identify the installed QTCreator executable on Linux PRIOR to executing ?I would like to delete the older QT installation and do not want to break / upset Linux or delete something common to all
QT installations.Help would be appreciated.
Thanks
-
from command line: which qtcreator
then qtcreator -version
you will know which version is used and where it is located.@JoeCFD Here is what I get
q6@q6-desktop:~$ which qtcreator
/usr/bin/qtcreator
q6@q6-desktop:~$ gtcreator -version
Command 'gtcreator' not found, did you mean:
command 'qtcreator' from deb qtcreator (6.0.2-2build1)
Try: sudo apt install <deb name>I have installed QT using offline installer.
Would
sudo apt install <deb name>install from Ubuntu repository ?
Do I really want to do that ?
Add running "qtcreator" give this result
q6@q6-desktop:~$ qtcreator
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
"Previously SDK provided CMakeTool "/mnt/da659056-4bac-42bc-a335-54f4a3167ed0/QT_Nov27/Tools/CMake/bin/cmake" (qt.tools.cmake) dropped."
Warning: No factory found for device 'WebAssembly Device' of type 'WebAssemblyDeviceType'.
Warning: Unable to restore Qt version 'Qt4ProjectManager.QtVersion.WebAssembly' stored in /home/q6/.config/QtProject/qtcreator/qtversion.xml.
Warning: Unable to restore Qt version 'Qt4ProjectManager.QtVersion.WebAssembly' stored in /home/q6/.config/QtProject/qtcreator/qtversion.xml.
Warning: Unable to restore Qt version 'Qt4ProjectManager.QtVersion.WebAssembly' stored in /home/q6/.config/QtProject/qtcreator/qtversion.xml.
Warning: Unable to restore Qt version 'Qt4ProjectManager.QtVersion.WebAssembly' stored in /home/q6/.config/QtProject/qtcreator/qtversion.xml....and this is "kit" used
-
@AnneRanch said in How do select / identify the installed QTCreator executable on Linux?:
q6@q6-desktop:~$ which qtcreator
/usr/bin/qtcreator
q6@q6-desktop:~$ gtcreator -version
Command 'gtcreator' not found, did you mean:Read what you typed and then you might understand the response you received.
There is already a qtcreator in the default location under /usr/bin, probably installed from the Ubuntu repo.
There will be another wherever you told the offline installer to put it (IIRC it defaults to under ~/Qt). If you cannot remember where that is then trylocate qtcreator
-
from command line: which qtcreator
then qtcreator -version
you will know which version is used and where it is located.response
q6@q6-desktop:~$ which qtcreator
/usr/bin/qtcreator
q6@q6-desktop:~$ qtcreator -version
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.Qt Creator 6.0.2 based on Qt 5.15.3
Android 6.0.2 Support for deployment to and execution on Android Devices.
AutoTest 6.0.2 Auto Test plugin.
AutotoolsProjectManager 6.0.2 Autotools project integration.
BareMetal 6.0.2 This plugin adds a target for bare metal development.
Bazaar 6.0.2 Bazaar integration.
Beautifier 6.0.2 Format source files with the help of beautifiers like AStyle, uncrustify or clang-format.
BinEditor 6.0.2 Binary editor component.
Bookmarks 6.0.2 Bookmarks in text editors.
Boot2Qt 6.0.2 Support for the Boot2Qt Device access using the Qt Debug Bridge.
CMakeProjectManager 6.0.2 CMake support.
CVS 6.0.2 CVS integration.
ClangCodeModel 6.0.2 Clang Code Model plugin.
ClangTools 6.0.2 ClangTools Plugin.
ClassView 6.0.2 Class View component.
ClearCase 6.0.2 ClearCase integration.
CodePaster 6.0.2 Codepaster plugin for pushing/fetching diff from server.
CompilationDatabaseProjectManager 6.0.2 Compilation Database project support.
Conan 6.0.2 Conan integration.
Core 6.0.2 The core plugin for the Qt IDE.
CppEditor 6.0.2 C/C++ editor component.
Cppcheck 6.0.2 Cppcheck static analyzer tool integration. See http://cppcheck.sourceforge.net.
CtfVisualizer 6.0.2 Chrome Trace Format Visualizer Plugin.
Debugger 6.0.2 Debugger integration.
Designer 6.0.2 Qt Designer integration.
DiffEditor 6.0.2 Diff editor component.
Docker 6.0.2 Basic support for Docker
EmacsKeys 6.0.2 The main idea behind this plugin is to provide additional actions a typical emacs user would expect. It doesn't claim to provide full emacs emulation. The following actions are available:- Movement [C-f, C-b, C-n, C-p, M-f, M-b, C-a, C-e, M-<, M->]
- Mark-based selection [C-SPC, C-x C-x]
- Cut/copy/yank (doesn't provide kill ring feature) [M-w, C-w, C-y]
- Kill actions, which interact properly with clipboard [C-k, M-d, C-d]
- Scrolling (half of the screen, keeps cursor visible) [C-v, M-v]
- Insert new line and indent [C-j]
IMPORTANT: Actions are not bound to any key combinations by default. You can find them under 'EmacsKeys' section in keyboard shortcuts settings.
Also it's worth mentioning that EmacsKeys plugin forces disabling of menu mnemonics by calling Qt's qt_set_sequence_auto_mnemonic function with false argument. Many of the english menu mnemonics get into the way of typical emacs keys, this includes: Alt+F (File), Alt+B (Build), Alt+W (Window). It's a temporary solution, it remains until there is a better one.
FakeVim 6.0.2 VI-style keyboard navigation.
GLSLEditor 6.0.2 Editor for GLSL.
GenericProjectManager 6.0.2 Generic support.
Git 6.0.2 Git integration.
Help 6.0.2 Help system.
ImageViewer 6.0.2 Image Viewer component.
IncrediBuild 6.0.2 Support for Incredibuild.
Ios 6.0.2 Support for deployment to and execution on iOS Devices.
LanguageClient 6.0.2 Language Server Protocol client component. See https://microsoft.github.io/language-server-protocol/overview for an overview on Language Servers.
Macros 6.0.2 Macros in text editors.
Marketplace 6.0.2 Qt Marketplace plugin.
McuSupport 6.0.2 Helper for MCU related projects.
Mercurial 6.0.2 Mercurial integration.
MesonProjectManager 6.0.2 Meson support.
ModelEditor 6.0.2 Graphical modeling with structured diagrams.
Nim 6.0.2 Plugin for supporting the Nim programming language.
PerfProfiler 6.0.2 Perf Profiler Plugin.
Perforce 6.0.2 Perforce integration.
ProjectExplorer 6.0.2 ProjectExplorer framework that can be extended with different kind of project types.
Python 6.0.2 Plugin for supporting the Python language.
QbsProjectManager 6.0.2 QBS support.
QmakeProjectManager 6.0.2 Provides project type for Qt/QMake .pro files and tools.
QmlJSEditor 6.0.2 Editor for QML and JavaScript.
QmlJSTools 6.0.2 Tools for analyzing Qml/JS code.
QmlPreview 6.0.2 Qml Preview Plugin.
QmlProfiler 6.0.2 Qml Profiler Plugin.
QmlProjectManager 6.0.2 Qt Quick support
Qnx 6.0.2 Adds support for QNX to Qt Creator.
QtSupport 6.0.2 Provides support code for build systems.
RemoteLinux 6.0.2 Support for deployment to and execution on a remote Linux host.
ResourceEditor 6.0.2 Editor for qrc files.
ScxmlEditor 6.0.2 Visual Editor for SCXML (State Chart XML) files.
SerialTerminal 6.0.2 Serial Port Terminal
SilverSearcher 6.0.2 Adds possibility to use SilverSearcher tool as an alternative mechanism of 'find in files'
Subversion 6.0.2 Subversion integration.
TaskList 6.0.2 Use .tasks-files to populate the Issues view.
TextEditor 6.0.2 Text editor framework and the implementation of the basic text editor.
Todo 6.0.2 Adds pane that lists all TODO, FIXME, etc. entries in comments.
UpdateInfo 6.0.2 Displays Update-Infos for Qt Installer Framework-based Updaters.
Valgrind 6.0.2 Valgrind Plugin.
VcsBase 6.0.2 Version Control System Base Plugin.
WebAssembly 6.0.2 Helper for WebAssembly projects.
Welcome 6.0.2 Secondary Welcome Screen Plugin.
WinRt 6.0.2 Helper for Windows Runtime projects.(C) 2021 The Qt Company Ltd
q6@q6-desktop:~$
Is the above qtcreator "installed" from Ubuntu repository ?
Here is the directory structure created by using offline QT installer.
How do I execute that ?
ADDENDUM
Is this normal ?That QT_Nov27 is where my offline installation went.
( I need to get rid of "web assembly " next new install time )q6@q6-desktop:~$ qtcreator
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
"Previously SDK provided CMakeTool "/mnt/da659056-4bac-42bc-a335-54f4a3167ed0/QT_Nov27/Tools/CMake/bin/cmake" (qt.tools.cmake) dropped."Warning: No factory found for device 'WebAssembly Device' of type 'WebAssemblyDeviceType'.
Warning: Unable to restore Qt version 'Qt4ProjectManager.QtVersion.WebAssembly' stored in /home/q6/.config/QtProject/qtcreator/qtversion.xml.
Warning: Unable to restore Qt version 'Qt4ProjectManager.QtVersion.WebAssembly' stored in /home/q6/.config/QtProject/qtcreator/qtversion.xml.
Warning: Unable to restore Qt version 'Qt4ProjectManager.QtVersion.WebAssembly' stored in /home/q6/.config/QtProject/qtcreator/qtversion.xml.
Warning: Unable to restore Qt version 'Qt4ProjectManager.QtVersion.WebAssembly' stored in /home/q6/.config/QtProject/qtcreator/qtversion.xml. -
UPDATE
I have successfully compiled / linked / run my application.
I HAVE NO CLUE HOW "IT GOT FIXED "
At this point I don't really care why I was getting all those errors.
I am using Qt 6.5.0 and did not change anything - with the exception of removing the links to libraries in Linux package.
This final output indicates that QT creator runs from
/media/nov25-1/MDI_RAID_5/...10:10:43: Starting /media/nov25-1/MDI_RAID_5/MDI_WORK_COPY_FOLDER/WORKING_COPY_Nov29_TEMP_COPY/MDI_BT_NOV_16/SOURCE/mdi/mdi...
ORIGINAL MDI int main(int, char **)
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
10:10:50: /media/nov25-1/MDI_RAID_5/MDI_WORK_COPY_FOLDER/WORKING_COPY_Nov29_TEMP_COPY/MDI_BT_NOV_16/SOURCE/mdi/mdi exited with code 0Thanks to all who did contribute to the solution.