November 2, 2011

Yordan Ivanov Yordan Ivanov
Lab Rat
42 posts

Qt Creator debugger in Ubuntu

 

In previous versions of Qt SDK I never had a problem like this.
I’m running Qt Creator 2.3.1 with Qt SDK 1.1.3 on Ubuntu 11.10 ×86 Desktop.
Everytime when I try to debug an application the debugger just “fly” trough it.
I putted breakpoint’s and I have an return app.exec() in the main(), but the only thing I see is an flashing terminal. When I open the Application Output I see

Debugging starts
Debugging has finished

When I start the application manually my application runs normally and without any errors or warnings.
Does anyone encountered a similar problem like mine?

14 replies

November 2, 2011

Franzk Franzk
Lab Rat
830 posts

Might be a stupid question, but does it actually try to start the correct app?

 Signature 

“Horse sense is the thing a horse has which keeps it from betting on people.”—W.C. Fields

http://www.catb.org/~esr/faqs/smart-questions.html

November 2, 2011

Yordan Ivanov Yordan Ivanov
Lab Rat
42 posts

:D Yes off course. In most cases I have only one active project. For the last project I’m using shadow build only for one platform.

November 3, 2011

Yordan Ivanov Yordan Ivanov
Lab Rat
42 posts

New try.
I tried to run the Bearer Manager example from Qt Creator and the application flashed again. I haven’t do that on Ubuntu 11.10 before. If no one knows any reason for that I’ll report it as a bug. It’s very possible to be while the SDK maintenance tool crashes without parameter for other style.

November 3, 2011

Franzk Franzk
Lab Rat
830 posts

I haven’t seen any such issues on gentoo.

 Signature 

“Horse sense is the thing a horse has which keeps it from betting on people.”—W.C. Fields

http://www.catb.org/~esr/faqs/smart-questions.html

November 3, 2011

Yordan Ivanov Yordan Ivanov
Lab Rat
42 posts

That’s what I mean. Ubuntu uses Unity Desktop Environment. And I guess Qt doesn’t supports It. However there wasn’t any problem with the old versions of Ubuntu and Unity.

November 3, 2011

Franzk Franzk
Lab Rat
830 posts

Yordan Ivanov wrote:
That’s what I mean. Ubuntu uses Unity Desktop Environment. And I guess Qt doesn’t supports It.

I would find that odd, given that unity uses Qt. However, you could try to install another window manager (apt-get install fluxbox kde gnome xfce whatever) and try and see what happens there.

 Signature 

“Horse sense is the thing a horse has which keeps it from betting on people.”—W.C. Fields

http://www.catb.org/~esr/faqs/smart-questions.html

November 4, 2011

fluca1978 fluca1978
Ant Farmer
524 posts

I had a similar problem using kubuntu, but it was not related to the distro or the desktop, just the fact I was compiling the release version of the application. Have you checked the build options?

November 4, 2011

Yordan Ivanov Yordan Ivanov
Lab Rat
42 posts

Yes. I’m using Debug version. However I’ will install other Desktop environment to check if the problem for me comes from it.

November 4, 2011

Eddy Eddy
Area 51 Engineer
1296 posts

I installed ubuntu 11.10 64bit yesterday and Qt Creator 2.3.1 behaves as it should.

I did use a trick to get all the dependencies right at once by installing the Qt sdk using the ubuntu package manager and afterwards additionally installing the latest Qt sdk using the online installer.

 Signature 

Qt Certified Specialist
Qt Ambassador

November 4, 2011

Yordan Ivanov Yordan Ivanov
Lab Rat
42 posts

Hi again.
I uninstalled the SDK and followed the above steps. During the installation I saw an error t for which I forgotten that I’ve seen during the last installation:

Error during installation process (com.nokia.ndk.tools.simulator.qtgcc):
The output of
/opt/QtSDK/Simulator/Qt/gcc/bin/qmake -query
is not parseable. Please file a bugreport with this dialog http://bugreports.qt.nokia.com.
output: “”

So I think that it’s the reason for my problem.

November 4, 2011

Tobias Hunger Tobias Hunger
Mad Scientist
3149 posts

Did you file a bug report then?

November 6, 2011

Yordan Ivanov Yordan Ivanov
Lab Rat
42 posts

Yes off course. :)

November 7, 2011

Volker Volker
Robot Herder
5428 posts
Yordan Ivanov wrote:
Yes off course. :)

Please enlighten us and share the bug id with the forum audience :-) It helps others to refer to it in case they are bitten by the same problem. Thanks.

November 7, 2011

Yordan Ivanov Yordan Ivanov
Lab Rat
42 posts

QTIFW-66 [bugreports.qt.nokia.com]

 
  ‹‹ osx weak link framework/dylib      Set Current Working Directory for Visual Studio Projects ››

You must log in to post a reply. Not a member yet? Register here!