[Qt-creator] Qt Creator variables in Run settings for Bare Metal device

Eike Ziller Eike.Ziller at qt.io
Thu May 16 14:16:06 CEST 2024



> Am 15.05.2024 um 13:25 schrieb Toralf Lund <toralf at toralf.net>:
> 
> Hi
> 
> I'm trying to set up Qt Creator for debugging on a "bare metal" device. (ARM system, using JTAG POD with built-in GDB server.)
> 
> I think I can generally get this to work, but I'm experiencing an issue with the Run configuration: It seems like Qt Creator variables can't be used in "Executable" and "Working directory" settings. I mean, I get the normal "variables" icon and can select from a list etc., but it looks like nothing is ever expanded; if for instance I set Executable to "%{sourceDir}/executablename" and try to start debugging, I get
> 
> Cannot debug: Could not find executable for "%{sourceDir}/exectablename".
> 
> in the Application Output view.
> 
> Note that I see this only for settings connected to the kit for my device. With the same configuration under Desktop, the debugger is started as expected, or if the file is actually missing, "%{sourceDir}" is replaced by the real source directory path in error messages.
> 
> Has anyone else seen this? Is it a known error or limitation? Or am I missing something? Should I set up something else somewhere or use different variables or something?
> 
> My goal is to avoid hard-coded full paths, for a shareable/version control system-friendly configuration...
> 
> Some meta question (kind of) while I'm at it: I don't see a lot of traffic on this list. Does this mean there is a different (better) alternative way of asking questions? Or could it mean nobody is actually using Qt Creator. :-/ ?

There is also the more general Qt Interest mailing list, https://forum.qt.io, a Qt Discord, a bit of IRC, and the bugtracker, plus other channels like stackoverflow etc.

Br, Eike

-- 
Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Erich-Thilo-Str. 10
12489 Berlin, Germany
eike.ziller at qt.io
https://qt.io

Geschäftsführer: Mika Pälsi,
Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B




More information about the Qt-creator mailing list