Re: [Qt-creator] Cannot step through source code with Qtcreator
On Monday 15 November 2010 19:21:58 ext Haipeng Jin wrote: Hi, I am learning to use qtcreator and encountered the following problem: when I launch debugger in qtcreator, the disassembly windows always pops out. As a result, I can only step through the disassembly code instead of the c source code. Trying to close the disassembly window and switching to c source code window does not help, as soon as I press F10 again, the disassembly window shows up again. I tried to toggle the “Operate by instruction” setting, it does not help either. I am running qtcreator 2.0.1 under Linux with Qt-4.7.0. The debugger is default gdb. Any idea on what is happening? This might be a build without debug information. Check whether there's a -g present on the compiler command lines in the Compile Output pane. If it is, send the debugger log ({Windows,Debug}-Views-Debugger, right pane). Andre' ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] my first request of help
Hi Leonel, when you switch to Qt 4.2 or newer you can use QSystemTrayIcon. Btw this kind of questions should be asked on qt-interest mailing list. This list is for problem with qt-creator only. Regards, Sven 2010/11/15 Leonel Florin Selles leonel06...@cfg.jovenclub.cu: Hi: I need create and QT application that stay in execution in the system try, i'm usign QT 3.3.8. ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator -- Sven Bergner Registered Linux-User #65111 GPG-FP: EB58 78D0 C350 395F 7C2F 3ADD E9CA AE6C E7E9 AA06| Public-Key: www.linuxtaskforce.de/files/svenbergner.asc www.linuxtaskforce.de ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
[Qt-creator] Unable to build on Solaris
I'm trying to build QtCreator on Solaris, and I'm hitting the following snag: make cd src/ /data1/u/murphy/qt-4.7.1/bin/qmake /data1/u/murphy/qt-creator-2.1.0-beta1-src/src/src.pro -o Makefile cd src/ make -f Makefile cd libs/ /data1/u/murphy/qt-4.7.1/bin/qmake /data1/u/murphy/qt-creator-2.1.0-beta1-src/src/libs/libs.pro -o Makefile cd libs/ make -f Makefile cd qtconcurrent/ /data1/u/murphy/qt-4.7.1/bin/qmake /data1/u/murphy/qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent/qtconcurrent.pro -o Makefile cd qtconcurrent/ make -f Makefile /data1/u/murphy/qt-4.7.1/bin/moc -DBUILD_QTCONCURRENT -DIDE_LIBRARY_BASENAME=\lib\ -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../qt-4.7.1/mkspecs/solaris-cc-64-stlport -I../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent -I../../../../qt-4.7.1/include/QtCore -I../../../../qt-4.7.1/include/QtGui -I../../../../qt-4.7.1/include -I../../../../qt-creator-2.1.0-beta1-src/src/libs -I/data1/u/murphy/qt-creator-2.1.0-beta1-src/tools -I.moc/release-shared -I/usr/sfw/include -I. ../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent/multitask.h -o .moc/release-shared/moc_multitask.cpp CC -c -m64 -library=stlport4 -O -xldscope=hidden -mt -KPIC -DBUILD_QTCONCURRENT -DIDE_LIBRARY_BASENAME=\lib\ -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../qt-4.7.1/mkspecs/solaris-cc-64-stlport -I../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent -I../../../../qt-4.7.1/include/QtCore -I../../../../qt-4.7.1/include/QtGui -I../../../../qt-4.7.1/include -I../../../../qt-creator-2.1.0-beta1-src/src/libs -I/data1/u/murphy/qt-creator-2.1.0-beta1-src/tools -I.moc/release-shared -I/usr/sfw/include -I. -o .obj/release-shared/moc_multitask.o .moc/release-shared/moc_multitask.cpp .moc/release-shared/../../../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent/runextensions.h, line 354: Error: Templates can only declare classes or functions. snip many more similar errors I'm using Qt 4.7.1, Solaris Studio 12. I've tried building both QtCreator 2.0.1, and 2.1.0 beta1, with the same results. Sean ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Unable to build on Solaris
On Nov 16, 2010, at 2:49 PM, ext Oswald Buddenhagen wrote: hi, On Tue, Nov 16, 2010 at 02:34:12PM +0100, ext Murphy, Sean M. wrote: .moc/release-shared/../../../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent/runextensions.h, line 354: Error: Templates can only declare classes or functions. snip many more similar errors I'm using Qt 4.7.1, Solaris Studio 12. I've tried building both QtCreator 2.0.1, and 2.1.0 beta1, with the same results. solaris is not a nokia-supported platform for creator. please post a patch (or make a merge request on gitorious) if you come up with a solution. At the very least you need to use a compiler that is supported by Qt Concurrent, Qt Webkit, and CLucene: http://doc.qt.nokia.com/4.7/compiler-notes.html ++ Eike ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Unable to build on Solaris
As I recall, Solaris's C++ compiler has almost as many template issues as MSVC6. Is there a Solaris port of gcc? Might try that. /s/ Adam On Tue, Nov 16, 2010 at 8:34 AM, André Pönitz andre.poen...@nokia.com wrote: On Tuesday 16 November 2010 14:34:12 ext Murphy, Sean M. wrote: I'm trying to build QtCreator on Solaris, and I'm hitting the following snag: make cd src/ /data1/u/murphy/qt-4.7.1/bin/qmake /data1/u/murphy/qt-creator-2.1.0-beta1-src/src/src.pro -o Makefile cd src/ make -f Makefile cd libs/ /data1/u/murphy/qt-4.7.1/bin/qmake /data1/u/murphy/qt-creator-2.1.0-beta1-src/src/libs/libs.pro -o Makefile cd libs/ make -f Makefile cd qtconcurrent/ /data1/u/murphy/qt-4.7.1/bin/qmake /data1/u/murphy/qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent/qtconcurrent.pro -o Makefile cd qtconcurrent/ make -f Makefile /data1/u/murphy/qt-4.7.1/bin/moc -DBUILD_QTCONCURRENT -DIDE_LIBRARY_BASENAME=\lib\ -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../qt-4.7.1/mkspecs/solaris-cc-64-stlport -I../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent -I../../../../qt-4.7.1/include/QtCore -I../../../../qt-4.7.1/include/QtGui -I../../../../qt-4.7.1/include -I../../../../qt-creator-2.1.0-beta1-src/src/libs -I/data1/u/murphy/qt-creator-2.1.0-beta1-src/tools -I.moc/release-shared -I/usr/sfw/include -I. ../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent/multitask.h -o .moc/release-shared/moc_multitask.cpp CC -c -m64 -library=stlport4 -O -xldscope=hidden -mt -KPIC -DBUILD_QTCONCURRENT -DIDE_LIBRARY_BASENAME=\lib\ -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../qt-4.7.1/mkspecs/solaris-cc-64-stlport -I../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent -I../../../../qt-4.7.1/include/QtCore -I../../../../qt-4.7.1/include/QtGui -I../../../../qt-4.7.1/include -I../../../../qt-creator-2.1.0-beta1-src/src/libs -I/data1/u/murphy/qt-creator-2.1.0-beta1-src/tools -I.moc/release-shared -I/usr/sfw/include -I. -o .obj/release-shared/moc_multitask.o .moc/release-shared/moc_multitask.cpp .moc/release-shared/../../../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent/runextensions.h, line 354: Error: Templates can only declare classes or functions. That line does declare a function template and looks correct. Andre' ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Unable to build on Solaris
CC -c -m64 -library=stlport4 -O -xldscope=hidden -mt -KPIC - DBUILD_QTCONCURRENT -DIDE_LIBRARY_BASENAME=\lib\ - DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS - DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB - DQT_SHARED -I../../../../qt-4.7.1/mkspecs/solaris-cc-64-stlport - I../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent - I../../../../qt-4.7.1/include/QtCore -I../../../../qt- 4.7.1/include/QtGui -I../../../../qt-4.7.1/include -I../../../../qt- creator-2.1.0-beta1-src/src/libs -I/data1/u/murphy/qt-creator-2.1.0- beta1-src/tools -I.moc/release-shared -I/usr/sfw/include -I. -o .obj/release-shared/moc_multitask.o .moc/release- shared/moc_multitask.cpp .moc/release-shared/../../../../../../qt-creator-2.1.0-beta1- src/src/libs/qtconcurrent/runextensions.h, line 354: Error: Templates can only declare classes or functions. That line does declare a function template and looks correct. Agreed, I didn't see anything wrong with it, but Sun's compiler doesn't seem to like it for some reason. I could try to recompile Qt using gcc on our machine, but I thought I tried previously and I couldn't get it to compile. I'm starting that now, we'll see where I end up! Sean ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Unable to build on Solaris
On 16/11/10 15:14, Murphy, Sean M. wrote: CC -c -m64 -library=stlport4 -O -xldscope=hidden -mt -KPIC - DBUILD_QTCONCURRENT -DIDE_LIBRARY_BASENAME=\lib\ - DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS - DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB - DQT_SHARED -I../../../../qt-4.7.1/mkspecs/solaris-cc-64-stlport - I../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent - I../../../../qt-4.7.1/include/QtCore -I../../../../qt- 4.7.1/include/QtGui -I../../../../qt-4.7.1/include -I../../../../qt- creator-2.1.0-beta1-src/src/libs -I/data1/u/murphy/qt-creator-2.1.0- beta1-src/tools -I.moc/release-shared -I/usr/sfw/include -I. -o .obj/release-shared/moc_multitask.o .moc/release- shared/moc_multitask.cpp .moc/release-shared/../../../../../../qt-creator-2.1.0-beta1- src/src/libs/qtconcurrent/runextensions.h, line 354: Error: Templates can only declare classes or functions. That line does declare a function template and looks correct. Agreed, I didn't see anything wrong with it, but Sun's compiler doesn't seem to like it for some reason. I could try to recompile Qt using gcc on our machine, but I thought I tried previously and I couldn't get it to compile. I'm starting that now, we'll see where I end up! I don't know if this is relevant or helpful (I haven't looked at the code in question), but Sun's CC 11 didn't support template specialisation, which might be the issue if it hasn't been added in 12 and Qt uses it... Peter Pearson ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Cannot step through source code with Qtcreator
Andre Thanks for your reply. The problem was not the “-g” flag as I had “CONFIG += debug” and was able to load the binary in gdb and debug by stepping through source code (all the symbols are loaded properly). I did some more testing after sending the previous message. It seems that now I am able to step through the source code (without incurring the disassembly window) if I start qtcreator in the project’s directory. For example, if my project is /work_dir/test/test.pro, then I have to start qtcreator in /work_dir/test and the debugging would work fine. This is kind of strange as I won’t be able to switch to other projects without closing qtcreator and debug. HJ From: qt-creator-boun...@trolltech.com [mailto:qt-creator-boun...@trolltech.com] On Behalf Of André P?nitz Sent: Tuesday, November 16, 2010 1:20 AM To: qt-creator@trolltech.com Subject: Re: [Qt-creator] Cannot step through source code with Qtcreator On Monday 15 November 2010 19:21:58 ext Haipeng Jin wrote: Hi, I am learning to use qtcreator and encountered the following problem: when I launch debugger in qtcreator, the disassembly windows always pops out. As a result, I can only step through the disassembly code instead of the c source code. Trying to close the disassembly window and switching to c source code window does not help, as soon as I press F10 again, the disassembly window shows up again. I tried to toggle the “Operate by instruction” setting, it does not help either. I am running qtcreator 2.0.1 under Linux with Qt-4.7.0. The debugger is default gdb. Any idea on what is happening? This might be a build without debug information. Check whether there's a -g present on the compiler command lines in the Compile Output pane. If it is, send the debugger log ({Windows,Debug}-Views-Debugger, right pane). Andre' ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator No virus found in this message. Checked by AVG - www.avg.comhttp://www.avg.com Version: 10.0.1153 / Virus Database: 424/3258 - Release Date: 11/15/10 ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Unable to build on Solaris
I'm giving that a shot now, although I think our admin's have something screwed up, while attempting to build qmake, it's having trouble finding libstdc++ libraries that match up. I'm trying to build the solaris-g++-64 mkspec, but it's trying to link against a libstdc++ that appears to be built in 32 bit mode. This is turning into a bit more effort than I was hoping for! Sean -Original Message- From: qt-creator-boun...@trolltech.com [mailto:qt-creator- boun...@trolltech.com] On Behalf Of Coda Highland Sent: Tuesday, November 16, 2010 10:12 AM To: qt-creator@trolltech.com Subject: Re: [Qt-creator] Unable to build on Solaris As I recall, Solaris's C++ compiler has almost as many template issues as MSVC6. Is there a Solaris port of gcc? Might try that. /s/ Adam On Tue, Nov 16, 2010 at 8:34 AM, André Pönitz andre.poen...@nokia.com wrote: On Tuesday 16 November 2010 14:34:12 ext Murphy, Sean M. wrote: I'm trying to build QtCreator on Solaris, and I'm hitting the following snag: make cd src/ /data1/u/murphy/qt-4.7.1/bin/qmake /data1/u/murphy/qt- creator-2.1.0-beta1-src/src/src.pro -o Makefile cd src/ make -f Makefile cd libs/ /data1/u/murphy/qt-4.7.1/bin/qmake /data1/u/murphy/qt- creator-2.1.0-beta1-src/src/libs/libs.pro -o Makefile cd libs/ make -f Makefile cd qtconcurrent/ /data1/u/murphy/qt-4.7.1/bin/qmake /data1/u/murphy/qt-creator-2.1.0-beta1- src/src/libs/qtconcurrent/qtconcurrent.pro -o Makefile cd qtconcurrent/ make -f Makefile /data1/u/murphy/qt-4.7.1/bin/moc -DBUILD_QTCONCURRENT - DIDE_LIBRARY_BASENAME=\lib\ -DQT_NO_CAST_TO_ASCII - DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG - DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../qt- 4.7.1/mkspecs/solaris-cc-64-stlport -I../../../../qt-creator-2.1.0- beta1-src/src/libs/qtconcurrent -I../../../../qt-4.7.1/include/QtCore - I../../../../qt-4.7.1/include/QtGui -I../../../../qt-4.7.1/include - I../../../../qt-creator-2.1.0-beta1-src/src/libs -I/data1/u/murphy/qt- creator-2.1.0-beta1-src/tools -I.moc/release-shared -I/usr/sfw/include -I. ../../../../qt-creator-2.1.0-beta1- src/src/libs/qtconcurrent/multitask.h -o .moc/release- shared/moc_multitask.cpp CC -c -m64 -library=stlport4 -O -xldscope=hidden -mt -KPIC - DBUILD_QTCONCURRENT -DIDE_LIBRARY_BASENAME=\lib\ - DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS - DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB - DQT_SHARED -I../../../../qt-4.7.1/mkspecs/solaris-cc-64-stlport - I../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent - I../../../../qt-4.7.1/include/QtCore -I../../../../qt- 4.7.1/include/QtGui -I../../../../qt-4.7.1/include -I../../../../qt- creator-2.1.0-beta1-src/src/libs -I/data1/u/murphy/qt-creator-2.1.0- beta1-src/tools -I.moc/release-shared -I/usr/sfw/include -I. -o .obj/release-shared/moc_multitask.o .moc/release- shared/moc_multitask.cpp .moc/release-shared/../../../../../../qt-creator-2.1.0-beta1- src/src/libs/qtconcurrent/runextensions.h, line 354: Error: Templates can only declare classes or functions. That line does declare a function template and looks correct. Andre' ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
[Qt-creator] About compile QTcreator with mingw
Hello everybody ( If there is anyone...) I have spent a lot of time trying to compile QTCreator with mingw (The main reason: if not, I cannot view my own custom widget plugins) Can give me the complete instructions to get it ? I follow the next steps : 1,. Download QTCreator source from QT . 2.- Unzip. 3.- I work at my d:/ drive, so I create a QTCreator and I copy the last unzipped files 4.- I open a QT command propmt 5.- I run : qmake d:\QtCreatorSource\qtcreator.pro -spec win32-g++ -r CONFIG+=release mingw32-make release After 2 hours I have a QTCreator exe and some dlls at my d:\qtcreator\bin folder. (And the original 70Mb folder now has 180 Mb) If I want to run QTcreator, I have a messagebox tell me 'There is not QTCore4.dll' , If I copy the originals QT's dlls I have a messagebox tell me 'There is no entry point at Qtcore4.dll blah, blah..) Please help ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] About compile QTcreator with mingw
It sounds like you copied the wrong Qt dll's. Use the ones you built QtCreator with. ~ af On Tue, Nov 16, 2010 at 12:37 PM, Antonio P aperezca...@yahoo.es wrote: Hello everybody ( If there is anyone...) I have spent a lot of time trying to compile QTCreator with mingw (The main reason: if not, I cannot view my own custom widget plugins) Can give me the complete instructions to get it ? I follow the next steps : 1,. Download QTCreator source from QT . 2.- Unzip. 3.- I work at my d:/ drive, so I create a QTCreator and I copy the last unzipped files 4.- I open a QT command propmt 5.- I run : qmake d:\QtCreatorSource\qtcreator.pro -spec win32-g++ -r CONFIG+=release mingw32-make release After 2 hours I have a QTCreator exe and some dlls at my d:\qtcreator\bin folder. (And the original 70Mb folder now has 180 Mb) If I want to run QTcreator, I have a messagebox tell me 'There is not QTCore4.dll' , If I copy the originals QT's dlls I have a messagebox tell me 'There is no entry point at Qtcore4.dll blah, blah..) Please help ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
[Qt-creator] pro file bug in latest creator snapshot?
Hi, I just installed the latest snapshot of qt-crator for windows (16.11.10) and my lib projects are not expandable in qtcreator anymore. The offending line is this !include( ../common.pri ):error( Couldn't find the common.pri file! as the first line of my pro files. If I remove the line everything works fine (at least it gets displayed right) Am I using a wrong syntax here or is it really a bug in the latest creator binarys ? A minimal example - test1.pro !include( ../common.pri ):error( Couldn't find the common.pri file! ) HEADERS += test1.h - only the project test is shown in creator its not expanable - test2.pro include( ../common.pri ) HEADERS += test2.h - the above works fine. ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
[Qt-creator] Fwd: Where to input compiler options in Qt creator
Andre; I very appreciate your reply. What I am trying to do with Qt creator is to build ITK libraries via cmake. Previously I use Code:Blocks that contains lots of compilation options for debug/release modes. I am wondering if Qt creator has such function or the options have to be added in cMakeCache.txt after running cmake. BTW: Could you please let me know about which version of Qt Creator can make cmake built-in like qmake? Regards, Sam On Sat, Nov 06, 2010 at 09:31:55PM -0400, Sam Sun wrote: * Could you please let me know where to put compiler options in Qt creator ** such as -g, -o, etc? thank you. * One possibility is to have a line QMAKE_CXXFLAGS += -g or such in your .pro file. -o does not seem to make much sense, though. What exactly do you want to achieve? Andre' ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator