[Qt-creator] tool chain detection problem on FreeBSD

HU Dong itechbear at gmail.com
Sun Aug 12 15:16:17 CEST 2012


Hi, everyone!
    I'm using qt creator 2.5.0 on FreeBSD 9.0 release i386. When I started
qt creator after installation, I found it failed to automatically detect
tool chains, with no items in Tools->Options->Build & Run->Tool Chains. So
I added Clang (/usr/bin/clang(ver 3.0) and /usr/local/bin/gdb(ver 7.4))
with mkspec freebsd-clang. It automatically detected the correct ABI
version. Everything seemed fine until I found that the GDB debugger didn't
work properly. It simply skipped all breakpoints so that it was impossible
to trace the code(I was sure I had chosen debug build target and the binary
file it generated could be debugged manually without any problem). Then I
tried to debug the binary file using Debug->Start Debugging->Start and
Debug External Application. I was surprised to see that the tool chain
section is empty and not editable. So I think there must be some problem
with tool chain detection. Now what can I do?

    Here's toolChains.xml:
$cat .config/Nokia/toolChains.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorToolChains>
<!-- Written by Qt Creator 2.5.0, 2012-08-12T20:56:12. -->
<qtcreator>
 <data>
  <variable>ToolChain.0</variable>
  <valuemap type="QVariantMap">
   <value type="QString"
key="ProjectExplorer.GccToolChain.Debugger">/usr/local/bin/gdb</value>
   <value type="QString"
key="ProjectExplorer.GccToolChain.Path">/usr/bin/clang</value>
   <valuelist type="QVariantList"
key="ProjectExplorer.GccToolChain.SupportedAbis">
    <value type="QString">x86-bsd-freebsd-elf-32bit</value>
   </valuelist>
   <value type="QString"
key="ProjectExplorer.GccToolChain.TargetAbi">x86-bsd-freebsd-elf-32bit</value>
   <value type="bool"
key="ProjectExplorer.ToolChain.Autodetect">false</value>
   <value type="QString"
key="ProjectExplorer.ToolChain.DisplayName">Clang</value>
   <value type="QString" key="ProjectExplorer.ToolChain.Id
">ProjectExplorer.ToolChain.Clang:{18ef2585-be44-4cf5-9f2d-e38452d5bb69}</value>
   <value type="QString"
key="ProjectExplorer.ToolChain.MkSpecOverride">freebsd-clang</value>
  </valuemap>
 </data>
 <data>
  <variable>ToolChain.Count</variable>
  <value type="int">1</value>
 </data>
 <data>
  <variable>Version</variable>
  <value type="int">1</value>
 </data>
</qtcreator>

B.R.
HU Dong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120812/1ea97195/attachment.html>


More information about the Qt-creator mailing list