<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Trouble debugging with Qt Creator and MCIMX6Q-SDP in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Trouble-debugging-with-Qt-Creator-and-MCIMX6Q-SDP/m-p/428531#M65111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I followed instruction posted here (&lt;A href="https://community.nxp.com/message/510890"&gt;Re: Setup QT Creator with Yocto Build&lt;/A&gt; ) to setup development environment and Qt Creator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have both the development PC (Ubuntu 14.04.3 LTS) and the MCIMX6Q-SDP on the same Ethernet network where both can ping each other.&amp;nbsp; I configured the device and the test pass for it with out a problem (Please see attachment: &lt;STRONG&gt;QtCreator_Device_Test_Pass.png&lt;/STRONG&gt;). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I create a simple console application in Qt Creator, build it, and the try to debug it fails to launch the debug session.&amp;nbsp; The indication shows "Launching Debugger":&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Debugging starts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Listening to port 10000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Debugging has failed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Debugging has finished&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attachment for screenshot (&lt;STRONG&gt;QtCreator_ConsoleApplication_DebugError.png&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I determine what is wrong this this?&amp;nbsp; Why is it not able to run the application debugging on the target?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Sep 2015 20:18:51 GMT</pubDate>
    <dc:creator>kriszawada</dc:creator>
    <dc:date>2015-09-04T20:18:51Z</dc:date>
    <item>
      <title>Trouble debugging with Qt Creator and MCIMX6Q-SDP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trouble-debugging-with-Qt-Creator-and-MCIMX6Q-SDP/m-p/428531#M65111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I followed instruction posted here (&lt;A href="https://community.nxp.com/message/510890"&gt;Re: Setup QT Creator with Yocto Build&lt;/A&gt; ) to setup development environment and Qt Creator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have both the development PC (Ubuntu 14.04.3 LTS) and the MCIMX6Q-SDP on the same Ethernet network where both can ping each other.&amp;nbsp; I configured the device and the test pass for it with out a problem (Please see attachment: &lt;STRONG&gt;QtCreator_Device_Test_Pass.png&lt;/STRONG&gt;). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I create a simple console application in Qt Creator, build it, and the try to debug it fails to launch the debug session.&amp;nbsp; The indication shows "Launching Debugger":&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Debugging starts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Listening to port 10000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Debugging has failed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Debugging has finished&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attachment for screenshot (&lt;STRONG&gt;QtCreator_ConsoleApplication_DebugError.png&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I determine what is wrong this this?&amp;nbsp; Why is it not able to run the application debugging on the target?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 20:18:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trouble-debugging-with-Qt-Creator-and-MCIMX6Q-SDP/m-p/428531#M65111</guid>
      <dc:creator>kriszawada</dc:creator>
      <dc:date>2015-09-04T20:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble debugging with Qt Creator and MCIMX6Q-SDP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trouble-debugging-with-Qt-Creator-and-MCIMX6Q-SDP/m-p/428532#M65112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, I had to resolve 2 issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) The built application was not getting deployed to the target because I did not have a path set so that Qt Creator knew where to put it on the target.&amp;nbsp; I needed to go to my application specific project file and add to the *.pro file (project setting file, in this case "TestConsole.pro") the following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;target.path = /home/root&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;INSTALLS += target&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This caused the application to be deployed to the target into directory '/home/root'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The second issue that I noticed was that when I would run the binary on the target board I would get an error with finding Qt libraries as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;./TestConsole: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To resolve this I needed a SD card image that contained all the Qt libraries in /usr/lib directory.&amp;nbsp; To do this I needed to update '/home/kris/fsl-release-bsp/build-x11/conf/local.conf' by adding the following line of text:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;IMAGE_INSTALL_apped=" qtbase qtbase-tools qtbase-plugins"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I re-ran bitbake and got an update SD card image which I programmed the SD card with.&amp;nbsp; Now the image included all the Qt libraries needed for running my application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 14:49:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trouble-debugging-with-Qt-Creator-and-MCIMX6Q-SDP/m-p/428532#M65112</guid>
      <dc:creator>kriszawada</dc:creator>
      <dc:date>2015-09-10T14:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble debugging with Qt Creator and MCIMX6Q-SDP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trouble-debugging-with-Qt-Creator-and-MCIMX6Q-SDP/m-p/428533#M65113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Struggle a bit more with this because I was trying to figure out how to get more debug information from QT Creator and GDB.&amp;nbsp; To get more information the output has to be viewable and to do this from Qt Creator select from the menu bar Window-&amp;gt;Views-&amp;gt;Debugger Log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This opened up quite a lot more information as shown in the attachment (QtCreator_DebuggerLog.png).&amp;nbsp; The full log details are attached as QtCreator_DebuggerLog_LeftPane.txt and QtCreator_DebuggerLog_RightPane.txt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To summarize the log there is an error that indicates the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;amp;"Traceback (most recent call last):\n"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;amp;"&amp;nbsp; File \"&amp;lt;string&amp;gt;\", line 1, in &amp;lt;module&amp;gt;\n"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;amp;"&amp;nbsp; File \"/home/kris/qtcreator-3.4.2/share/qtcreator/debugger/gdbbridge.py\", line 20, in &amp;lt;module&amp;gt;\n"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;amp;"&amp;nbsp;&amp;nbsp;&amp;nbsp; from dumper import *\n"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;amp;"&amp;nbsp; File \"/home/kris/qtcreator-3.4.2/share/qtcreator/debugger/dumper.py\", line 37, in &amp;lt;module&amp;gt;\n"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;amp;"&amp;nbsp;&amp;nbsp;&amp;nbsp; import importlib\n"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;amp;"ImportError: No module named importlib\n"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;amp;"Error while executing Python code.\n"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;33^error,msg="Error while executing Python code."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;amp;"Traceback (most recent call last):\n"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;amp;"&amp;nbsp; File \"&amp;lt;string&amp;gt;\", line 1, in &amp;lt;module&amp;gt;\n"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;amp;"NameError: name 'theDumper' is not defined\n"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;&amp;amp;"Error while executing Python code.\n"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;gt;34^error,msg="Error while executing Python code."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Ubuntu development machine that I am using has the following python version:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;$ python --version&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Python 2.7.6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A quick search for this error indicates that it is either a Python version problem (&amp;lt;=2.7) or GDB needs to be rebuilt with '--with-python' option (&lt;A href="http://stackoverflow.com/questions/30661671/qt-creator-failed-to-start-debugger" title="http://stackoverflow.com/questions/30661671/qt-creator-failed-to-start-debugger"&gt;http://stackoverflow.com/questions/30661671/qt-creator-failed-to-start-debugger&lt;/A&gt; ).&amp;nbsp; Since my version of Python is 2.7.6 I am assuming that I need to follow the second option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone ran into this issue?&amp;nbsp; Where in the Yocto build configuration does '--with-python' need to be used?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 15:05:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trouble-debugging-with-Qt-Creator-and-MCIMX6Q-SDP/m-p/428533#M65113</guid>
      <dc:creator>kriszawada</dc:creator>
      <dc:date>2015-09-10T15:05:45Z</dc:date>
    </item>
  </channel>
</rss>

