Re: [Interest] Is it possible to override dll in runtime in Qt?
Hi manish, Thanks for the reply. I am totally new to QPlugin and QLibrary. I don't quite understand your meaning. With your method below, can I load A/Prmt.dll then unload A/Prmt.dll and then load B/Prmt.dll in runtime without restarting Application? BTW, Core.dll is dependent on Prmt.dll, how can Core.dll know access symbols in Prmt.dll after changing Prmt.dll? Regards, Vincent. From: manish sharma [mailto:83.man...@gmail.com] Sent: Wednesday, April 09, 2014 2:42 PM To: Vincent Cai Cc: interest@qt-project.org Subject: Re: [Interest] Is it possible to override dll in runtime in Qt? i think it should work using pluginloader something like below: QObject* getPrmt(QString path) { QDir pluginsDir(path) QPluginLoader loader(pluginsDir.absoluteFilePath(fileName)); return loader.instance(); } and call getPrmt function with any of A/Prmt.dll, B/Prmt.dll? On Wed, Apr 9, 2014 at 10:34 AM, Vincent Cai w...@cypress.commailto:w...@cypress.com wrote: Dear All, I have an Qt application, which uses 2 dll, one is Prmt.dll and the other is Core.dll. Core.dll is dependent on Prmt.dll. Prmt.dll has multiple instances in different folders, for example: A/Prmt.dll, B/Prmt.dll... The Qt application provides an option to choose Prmt.dll, so it need to override Prmt.dll in runtime. Is it possible to override dll in runtime in Qt? Regards, Vincent. This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.orgmailto:Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Is it possible to override dll in runtime in Qt?
Thanks a lot! I have already implemented Core.dll and Prmt.dll in the way you suggested. Will learn how to use QPluginLoder for such case. If anyone can provide a sample code, that would be greatly helpful. :) From: manish sharma [mailto:83.man...@gmail.com] Sent: Wednesday, April 09, 2014 6:06 PM To: Vincent Cai Cc: interest@qt-project.org Subject: Re: [Interest] Is it possible to override dll in runtime in Qt? you might want to take a look at http://qt-project.org/doc/qt-5/qtwidgets-tools-plugandpaint-example.html On Wed, Apr 9, 2014 at 3:29 PM, manish sharma 83.man...@gmail.commailto:83.man...@gmail.com wrote: I think you might have to design your application something like below: For instance all the Prmt.dlls should implement a common interface for instance: PrmtInterface and place it under PrmtInterface.h And your Core.dll only know about PrmtInterface.h, it should not link to any of the Prmt.dll. And then you go on implementing Prmt.dlls and place it to different folders. And at run time you should use QPluginLoader to load/unload appropriate plugin. Hope this help! On Wed, Apr 9, 2014 at 12:22 PM, Vincent Cai w...@cypress.commailto:w...@cypress.com wrote: Hi manish, Thanks for the reply. I am totally new to QPlugin and QLibrary. I don't quite understand your meaning. With your method below, can I load A/Prmt.dll then unload A/Prmt.dll and then load B/Prmt.dll in runtime without restarting Application? BTW, Core.dll is dependent on Prmt.dll, how can Core.dll know access symbols in Prmt.dll after changing Prmt.dll? Regards, Vincent. From: manish sharma [mailto:83.man...@gmail.commailto:83.man...@gmail.com] Sent: Wednesday, April 09, 2014 2:42 PM To: Vincent Cai Cc: interest@qt-project.orgmailto:interest@qt-project.org Subject: Re: [Interest] Is it possible to override dll in runtime in Qt? i think it should work using pluginloader something like below: QObject* getPrmt(QString path) { QDir pluginsDir(path) QPluginLoader loader(pluginsDir.absoluteFilePath(fileName)); return loader.instance(); } and call getPrmt function with any of A/Prmt.dll, B/Prmt.dll? On Wed, Apr 9, 2014 at 10:34 AM, Vincent Cai w...@cypress.commailto:w...@cypress.com wrote: Dear All, I have an Qt application, which uses 2 dll, one is Prmt.dll and the other is Core.dll. Core.dll is dependent on Prmt.dll. Prmt.dll has multiple instances in different folders, for example: A/Prmt.dll, B/Prmt.dll... The Qt application provides an option to choose Prmt.dll, so it need to override Prmt.dll in runtime. Is it possible to override dll in runtime in Qt? Regards, Vincent. This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.orgmailto:Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Is it possible to override dll in runtime in Qt?
Dear All, I have an Qt application, which uses 2 dll, one is Prmt.dll and the other is Core.dll. Core.dll is dependent on Prmt.dll. Prmt.dll has multiple instances in different folders, for example: A/Prmt.dll, B/Prmt.dll... The Qt application provides an option to choose Prmt.dll, so it need to override Prmt.dll in runtime. Is it possible to override dll in runtime in Qt? Regards, Vincent. This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Qt5.2: QtCore/private/qwineventnotifier_p.h: No such file or directory
Dear All, I just update Qt from 4.7.3 to 5.2, when build qserialdevice, below error reported: In file included from ../TSA_Data/UART/SRC/qserialdevice/abstractserialnotifier.cpp:2:0: ../TSA_Data/UART/SRC/qserialdevice/nativeserialnotifier.h:8:50: fatal error: QtCore/private/qwineventnotifier_p.h: No such file or directory #include QtCore/private/qwineventnotifier_p.h Anybody help? Thanks, VIncent. This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Qt5.2: QtCore/private/qwineventnotifier_p.h: No such file or directory
Hi kai, Thanks for your reply. Per your suggestion, I met below compiling error: In file included from ../TSA_Data/UART/SRC/qserialdevice/abstractserialnotifier.cpp:2:0: ../TSA_Data/UART/SRC/qserialdevice/nativeserialnotifier.h:37:5: error: 'OVERLAPPED' in namespace '::' does not name a type ::OVERLAPPED o; ^ ../TSA_Data/UART/SRC/qserialdevice/nativeserialnotifier.h:38:5: error: 'DWORD' in namespace '::' does not name a type ::DWORD currentMask; ^ ../TSA_Data/UART/SRC/qserialdevice/nativeserialnotifier.h:39:5: error: 'DWORD' in namespace '::' does not name a type ::DWORD setMask; ^ the related source code: private: ::OVERLAPPED o; ::DWORD currentMask; ::DWORD setMask; How can I fix it? Thanks, VIncent. -Original Message- From: Koehne Kai [mailto:kai.koe...@digia.com] Sent: Wednesday, January 15, 2014 9:24 PM To: Vincent Cai; interest@qt-project.org Subject: RE: [Interest] Qt5.2: QtCore/private/qwineventnotifier_p.h: No such file or directory -Original Message- From: interest-bounces+kai.koehne=digia@qt-project.org [mailto:interest-bounces+kai.koehne=digia@qt-project.org] On Behalf Of Vincent Cai Sent: Wednesday, January 15, 2014 2:11 PM To: interest@qt-project.org Subject: [Interest] Qt5.2: QtCore/private/qwineventnotifier_p.h: No such file or directory Dear All, I just update Qt from 4.7.3 to 5.2, when build qserialdevice, below error reported: In file included from ../TSA_Data/UART/SRC/qserialdevice/abstractserialnotifier.cpp:2:0: ../TSA_Data/UART/SRC/qserialdevice/nativeserialnotifier.h:8:50: fatal error: QtCore/private/qwineventnotifier_p.h: No such file or directory #include QtCore/private/qwineventnotifier_p.h Anybody help? Qwineventnotifier is a public class in 5.2, so qserialdevice should rather include QtCore/qwineventnotifier.h. And it does so for me (git stable branch). Where did you get the sources from? Regards Kai This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] C structure display
Dear All, In Qt debug mode, we can watch and edit any variable. My question: is there any existing class that can do the same thing which mean can display all the members of a C structure variable in a table and can edit value of members? Best Regards, Vincent. This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] how to make ToolTip always visible
Dear All, I have an application which show a Circle on the screen based on (X, Y, Z) value. X, Y determine the position of circle and Z determine size of the circle. I want to show text of (X, Y, Z) around the circle all the time. One of way is set (X, Y, Z) as ToolTip of the circle, but the ToolTip is not visible without mouse hovering on the circle. My questions are: 1. Is there any way to make the ToolTip always visible? 2. If not, could anybody guide me another way the show (X, Y, Z) around the circle all the time Best Regards, Vincent. This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] question about Qt Regx to match hexdecimal
Dear all, I tried to create a Qt Regx to match hexdecimal, below is the strings I have tried, but all failed. l ([0-9a-fA-F]+) l ([A-Fa-f0-9]+) l ([\\dA-Fa-f]+) The symptom is only 0-9 is returned, for example: 12345ABC - 12345 12AB34EF - 12 Hope you can help! Thanks, Vincent. This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] question about string to C array/struct in Qt
Dear, I have a log file which contains logged data and report. In Qt project, I need to parse the log file and collect the data and report. The collected data will then be assigned to an C array and structure. This seems to be complicated for me due to lack experience on Qt String class. Could anybody guide me some reference code or document? Thanks a lot, Vincent. Below is an example of the log file content. ***FrameCounter: 138 Data Begin /* 0 1 2 3 4 5 6 7 8 91011 */ /* 0*/ 0,0, -1,0,1, -2,4,0, -1,4,0, -5, /* 1*/ 1, -1,6,2,2,0,1, -3, -2,3,0, -2, /* 2*/ 1,1,5,2,4,2,1,5, -1, -2, -2, -4, /* 3*/ 1, -16, -46, -87, -99, -48, -5,6,4, -10,1,1, /* 4*/ 21, -2, -1, -3, -27, -12, -3,8, -1, -5, -4,1, /* 5*/ 66, 213, 120, 38, -1, -9, -10, -7, -15, -13, -4,1, /* 6*/ 308, 1847, 921, 32, -1, -2, -45, -88, -102, -76, -3,1, /* 7*/ 137, 1263, 674, 31, -8, -1, -24, -58, -87, -77, -15,1, /* 8*/ 5, 39, 42, 25, -17,1, -1, -26, -35, -42, -19,0, /* 9*/ -7, -10,4, -2, -24,2, 44, 53,7, -2, -10, -7, /*10*/ -35, -78, -97, -58, -57,1, 672, 1250, 150, -21, -31, -27, /*11*/ -37, -122, -127, -132,0,4, 972, 1659, 224, -24, -13, -27, /*12*/ -1, -14, -14, -28, -28, 30, 80, 150, 53, 18, -19, -32, /*13*/ -1, 34, 738, 516, -22, 13,1, -6, 152, 120, -1, -25, /*14*/ -15, 118, 1761, 1137, 35,1, -87, -55, 1593, 1082, -1, -22, /*15*/ 1,2, 341, 229, 15,1, -27, -5, 839, 685,4,0, /*16*/ 4,1, -1, -21, -32, -19, -13, -15, 27,2, -34, -3, /*17*/ 2, -1, -19, -62, -81, -49, -7, -1, -1, -43, -46, -1, /*18*/ 1, 13,5, -18, -57, -49, -13,3, 11, -19, -37, -3, /*19*/ 4, 12, 18, -1, -32, -33, -1, 11, 16,8,1,3, /*20*/ 0,5, 18,3, -13, -16,1, 11, 14,9,5,1, /*21*/ 2, 13, 26, 12,2, -3,3,8, 15,7,3,1, Data End Report Begin TouchNum = 4 Unit[0].x = 109 Unit[0].y = 148 Unit[0].Flag = 0 Unit[0].Id = 0 Unit[0].z = 255 Unit[0].Type = 152 Unit[1].x = 452 Unit[1].y = 242 Unit[1].Flag = 0 Unit[1].Id = 3 Unit[1].z = 255 Unit[1].Type = 152 Unit[2].x = 179 Unit[2].y = 313 Unit[2].Flag = 0 Unit[2].Id = 2 Unit[2].z = 255 Unit[2].Type = 152 Unit[3].x = 557 Unit[3].y = 322 Unit[3].Flag = 0 Unit[3].Id = 1 Unit[3].z = 255 Unit[3].Type = 152 Report End This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ***FrameCounter: 138 Data Begin /* 0 1 2 3 4 5 6 7 8 91011 */ /* 0*/ 0,0, -1,0,1, -2,4,0, -1,4,0, -5, /* 1*/ 1, -1,6,2,2,0,1, -3, -2,3,0, -2, /* 2*/ 1,1,5,2,4,2,1,5, -1, -2, -2, -4, /* 3*/ 1, -16, -46, -87, -99, -48, -5,6,4, -10,1,1, /* 4*/ 21, -2, -1, -3, -27, -12, -3,8, -1, -5, -4,1, /* 5*/ 66, 213, 120, 38, -1, -9, -10, -7, -15, -13, -4,1, /* 6*/ 308, 1847, 921, 32, -1, -2, -45, -88, -102, -76, -3,1, /* 7*/ 137, 1263, 674, 31, -8, -1, -24, -58, -87, -77, -15,1, /* 8*/ 5, 39, 42, 25, -17,1, -1, -26, -35, -42, -19,0, /* 9*/ -7, -10,4, -2, -24,2, 44, 53,7, -2, -10, -7, /*10*/ -35, -78, -97, -58, -57,1, 672, 1250, 150, -21, -31, -27, /*11*/ -37, -122, -127, -132,0,4, 972, 1659, 224, -24, -13, -27, /*12*/ -1, -14, -14, -28, -28, 30, 80, 150, 53, 18, -19, -32, /*13*/ -1, 34, 738, 516, -22, 13,1, -6, 152, 120, -1, -25, /*14*/ -15, 118, 1761, 1137, 35,1, -87, -55, 1593, 1082, -1, -22, /*15*/ 1,2, 341, 229, 15,1, -27, -5, 839, 685,4,0, /*16*/ 4,1, -1, -21, -32, -19, -13, -15, 27,2, -34, -3, /*17*/ 2, -1, -19, -62, -81, -49, -7, -1, -1, -43, -46, -1, /*18*/ 1, 13,5, -18, -57, -49, -13,3, 11, -19, -37, -3, /*19*/ 4, 12, 18, -1, -32, -33, -1, 11, 16,8,1,3, /*20*/ 0,5, 18,3, -13, -16,1, 11, 14,9,5,1, /*21*/ 2, 13, 26, 12,2, -3,3,8, 15,7,3,1, Data End Report Begin TouchNum = 4 Unit[0].x = 109 Unit[0].y = 148 Unit[0].Flag = 0 Unit[0].Id = 0 Unit[0].z = 255 Unit[0].Type = 152 Unit[1].x = 452 Unit[1].y = 242 Unit[1].Flag = 0 Unit[1].Id = 3 Unit[1].z =
Re: [Interest] how to define string variable in *.pro based on other string variables?
Thanks a lot! From: 1+1=2 [mailto:dbzhang...@gmail.com] Sent: 2013年1月23日 16:02 To: Mandeep Sandhu Cc: Vincent Cai; interest@qt-project.org Subject: Re: [Interest] how to define string variable in *.pro based on other string variables? You should use: TSA_LibFullName = $$TSA_LibPath/$${TSA_LibName}.lib because $$TSA_LibName.lib equals to $${TSA_LibName.lib}, which is empty. On Wed, Jan 23, 2013 at 3:59 PM, Mandeep Sandhu mandeepsandhu@gmail.commailto:mandeepsandhu@gmail.com wrote: On Wed, Jan 23, 2013 at 1:23 PM, Vincent Cai w...@cypress.commailto:w...@cypress.com wrote: Dear, I have below variable definition in *.pro file. n TSA_LibName = TSA_Base_X86_GCC n TSA_LibPath = D:/TSA/TSA_Lib/trunk/dev/build/make/solutions/Base/lib Then how can I define a variable which equal to below value D:/TSA/TSA_Lib/trunk/dev/build/make/solutions/Base/lib/TSA_Base_X86_GCC.lib I have tried below, but failed. TSA_LibFullName = $$TSA_LibPath/$$TSA_LibName.lib SUFFIX=.lib TSA_LibFullName = $$TSA_LibPath/$$TSA_LibName$$SUFFIX HTH, -mandeep Vincent. This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.orgmailto:Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.orgmailto:Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] How to rebuild a Qt project which linked with a static library?
Dear All, I have a Qt project which is linked with a static library. When I updated the static library, and try build the project, the project can't detect that the library is updated and need to rebuild. So that I have to rebuild the whole project. Could anybody tell me how to fix this issue? Thanks, Vincent. This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] How to rebuild a Qt project which linked with a static library?
This will force to rebuild the whole project or just force re-link? -Original Message- From: interest-bounces+wcai=cypress@qt-project.org [mailto:interest-bounces+wcai=cypress@qt-project.org] On Behalf Of Thiago Macieira Sent: 2013年1月23日 12:52 To: interest@qt-project.org Subject: Re: [Interest] How to rebuild a Qt project which linked with a static library? On quarta-feira, 23 de janeiro de 2013 03.29.59, Vincent Cai wrote: Dear All, I have a Qt project which is linked with a static library. When I updated the static library, and try build the project, the project can't detect that the library is updated and need to rebuild. So that I have to rebuild the whole project. Could anybody tell me how to fix this issue? Remove the target file and make again. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] How to rebuild a Qt project which linked with a static library?
Hi Stefan, Thanks for your reply. Unfortunately, when I add the lib the PRE_TARGETDEPS, I can’t pass compiling, which report below error: mingw32-make[2]: *** No rule to make target `TSA_Base_X86_GCC', needed by `debug/tst_unittesttest.exe'. Stop. TSA_Base_X86_GCC is my static lib name which is created by other application. Vincent. From: interest-bounces+wcai=cypress@qt-project.org [mailto:interest-bounces+wcai=cypress@qt-project.org] On Behalf Of Stefan Walter Sent: 2013年1月23日 15:06 To: interest@qt-project.org Subject: Re: [Interest] How to rebuild a Qt project which linked with a static library? The qmake variable PRE_TARGETDEPS might be what you are looking for. By using this variable in your project file, you should be able to specify the dependencies to the static library. Von: Vincent Cai w...@cypress.commailto:w...@cypress.com An: Thiago Macieira thiago.macie...@intel.commailto:thiago.macie...@intel.com, interest@qt-project.orgmailto:interest@qt-project.org interest@qt-project.orgmailto:interest@qt-project.org Datum: 23.1.2013 10:53 Betreff: Re: [Interest] How to rebuild a Qt project which linked with astatic library? This will force to rebuild the whole project or just force re-link? -Original Message- From: interest-bounces+wcai=cypress@qt-project.orgmailto:interest-bounces+wcai=cypress@qt-project.org [mailto:interest-bounces+wcai=cypress@qt-project.org] On Behalf Of Thiago Macieira Sent: 2013年1月23日 12:52 To: interest@qt-project.orgmailto:interest@qt-project.org Subject: Re: [Interest] How to rebuild a Qt project which linked with a static library? On quarta-feira, 23 de janeiro de 2013 03.29.59, Vincent Cai wrote: Dear All, I have a Qt project which is linked with a static library. When I updated the static library, and try build the project, the project can't detect that the library is updated and need to rebuild. So that I have to rebuild the whole project. Could anybody tell me how to fix this issue? Remove the target file and make again. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.orgmailto:Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest __ The content of this e-mail is confidential and restricted for the use of the intended recipient only. If you are not the intended recipient please inform the sender immediately and delete this e-mail and any attachments. We cannot accept liability for any damage incurred as a result of software viruses and advise that you carry out your own virus checks before opening any attachment. Der Inhalt dieses E-Mails ist vertraulich und für die alleinige Verwendung durch den beabsichtigten Empfänger bestimmt. Falls Sie nicht der beabsichtigte Empfänger sind, bitten wir Sie den Absender umgehend zu informieren und dieses E-Mail samt angeschlossenen Dateien zu löschen. Wir können keine Haftung für allfällige Schäden übernehmen, die aufgrund von Software-Viren entstehen, und empfehlen Ihnen, selbst Virenprüfungen durchzuführen, bevor Sie eine Anlage öffnen. This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] How to rebuild a Qt project which linked with a static library?
My mistake, I should give the full name of lib to PRE_TARGETDEPS. Thanks a lot! From: interest-bounces+wcai=cypress@qt-project.org [mailto:interest-bounces+wcai=cypress@qt-project.org] On Behalf Of Stefan Walter Sent: 2013年1月23日 15:42 To: interest@qt-project.org Subject: Re: [Interest] How to rebuild a Qt project which linked with a static library? Hi Vincent, please post also your .pro file content with the PRE_TARGETDEPS specification of yours. Thanks, Stefan Von: Vincent Cai w...@cypress.commailto:w...@cypress.com An: Stefan Walter stefan.wal...@lisec.commailto:stefan.wal...@lisec.com, interest@qt-project.orgmailto:interest@qt-project.org interest@qt-project.orgmailto:interest@qt-project.org Datum: 23.1.2013 11:31 Betreff: Re: [Interest] How to rebuild a Qt project which linked with astatic library? Hi Stefan, Thanks for your reply. Unfortunately, when I add the lib the PRE_TARGETDEPS, I can’t pass compiling, which report below error: mingw32-make[2]: *** No rule to make target `TSA_Base_X86_GCC', needed by `debug/tst_unittesttest.exe'. Stop. TSA_Base_X86_GCC is my static lib name which is created by other application. Vincent. From: interest-bounces+wcai=cypress@qt-project.orgmailto:interest-bounces+wcai=cypress@qt-project.org [mailto:interest-bounces+wcai=cypress@qt-project.org] On Behalf Of Stefan Walter Sent: 2013年1月23日 15:06 To: interest@qt-project.orgmailto:interest@qt-project.org Subject: Re: [Interest] How to rebuild a Qt project which linked with a static library? The qmake variable PRE_TARGETDEPS might be what you are looking for. By using this variable in your project file, you should be able to specify the dependencies to the static library. Von: Vincent Cai w...@cypress.commailto:w...@cypress.com An: Thiago Macieira thiago.macie...@intel.commailto:thiago.macie...@intel.com, interest@qt-project.orgmailto:interest@qt-project.org interest@qt-project.orgmailto:interest@qt-project.org Datum: 23.1.2013 10:53 Betreff: Re: [Interest] How to rebuild a Qt project which linked with astatic library? This will force to rebuild the whole project or just force re-link? -Original Message- From: interest-bounces+wcai=cypress@qt-project.orgmailto:interest-bounces+wcai=cypress@qt-project.org [mailto:interest-bounces+wcai=cypress@qt-project.org] On Behalf Of Thiago Macieira Sent: 2013年1月23日 12:52 To: interest@qt-project.orgmailto:interest@qt-project.org Subject: Re: [Interest] How to rebuild a Qt project which linked with a static library? On quarta-feira, 23 de janeiro de 2013 03.29.59, Vincent Cai wrote: Dear All, I have a Qt project which is linked with a static library. When I updated the static library, and try build the project, the project can't detect that the library is updated and need to rebuild. So that I have to rebuild the whole project. Could anybody tell me how to fix this issue? Remove the target file and make again. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.orgmailto:Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest __ The content of this e-mail is confidential and restricted for the use of the intended recipient only. If you are not the intended recipient please inform the sender immediately and delete this e-mail and any attachments. We cannot accept liability for any damage incurred as a result of software viruses and advise that you carry out your own virus checks before opening any attachment. Der Inhalt dieses E-Mails ist vertraulich und für die alleinige Verwendung durch den beabsichtigten Empfänger bestimmt. Falls Sie nicht der beabsichtigte Empfänger sind, bitten wir Sie den Absender umgehend zu informieren und dieses E-Mail samt angeschlossenen Dateien zu löschen. Wir können keine Haftung für allfällige Schäden übernehmen, die aufgrund von Software-Viren entstehen, und empfehlen Ihnen, selbst Virenprüfungen durchzuführen, bevor Sie eine Anlage öffnen. This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. __ The content of this e-mail is confidential and restricted for the use of the intended recipient only. If you are not the intended recipient please inform the sender immediately and delete this e-mail and any attachments. We cannot accept liability for any damage incurred as a result of software viruses and advise that you carry out your
[Interest] how to define string variable in *.pro based on other string variables?
Dear, I have below variable definition in *.pro file. n TSA_LibName = TSA_Base_X86_GCC n TSA_LibPath = D:/TSA/TSA_Lib/trunk/dev/build/make/solutions/Base/lib Then how can I define a variable which equal to below value D:/TSA/TSA_Lib/trunk/dev/build/make/solutions/Base/lib/TSA_Base_X86_GCC.lib I have tried below, but failed. TSA_LibFullName = $$TSA_LibPath/$$TSA_LibName.lib Vincent. This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] why debug_and_release can't be removed from CONFIG
Actually, I have done what you said as below shown: CONFIG -= debug_and_release #TODO: why can't remove this configuration CONFIG -= release CONFIG += debug -Original Message- From: interest-bounces+wcai=cypress@qt-project.org [mailto:interest-bounces+wcai=cypress@qt-project.org] On Behalf Of Konrad Rosenbaum Sent: 2012年1月19日 17:37 To: interest@qt-project.org Subject: Re: [Interest] why debug_and_release can't be removed from CONFIG On Thursday 19 January 2012 08:15:21 Vincent Cai wrote: When I try remove debug_and_release from CONFIG, CONFIG -= debug_and_release I don't think debug_and_release is a valid configuration beyond building Qt itself. Instead of removing this class of config option you should either do CONFIG+=release or CONFIG+=debug. You can do this multiple times and the CONFIG+last one wins. Konrad This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] undefined reference to xxx error
Dear all, My project report errors during link stage. Issue Description, please also refer to attached pro file. # #Error on this line #(1) if comment below line, error occurs #(2) if assign TARGET with AppGui, error occurs #(3) if assign TARGET with name not equal to AppGui, error disappear TARGET = AppGui Error Info: ./debug\mainwindow.o: In function `MainWindow': E:\wcai_perforce\LTS_R3\CFT members\WCAI\Projects\TSA\Qt\TSA_IDE\TSA_Data\UART\AppGui/mainwindow.cpp:11: undefined reference to `QSerialUI::QSerialUI(QWidget*)' E:\wcai_perforce\LTS_R3\CFT members\WCAI\Projects\TSA\Qt\TSA_IDE\TSA_Data\UART\AppGui/mainwindow.cpp:12: undefined reference to `QSerialUI::Initialization()' E:\wcai_perforce\LTS_R3\CFT members\WCAI\Projects\TSA\Qt\TSA_IDE\TSA_Data\UART\AppGui/mainwindow.cpp:11: undefined reference to `QSerialUI::QSerialUI(QWidget*)' E:\wcai_perforce\LTS_R3\CFT members\WCAI\Projects\TSA\Qt\TSA_IDE\TSA_Data\UART\AppGui/mainwindow.cpp:12: undefined reference to `QSerialUI::Initialization()' collect2: ld returned 1 exit status mingw32-make[2]: *** [build\debug\exe\AppGui.exe] Error 1 mingw32-make[1]: *** [debug] Error 2 mingw32-make: *** [sub-AppGui-make_default] Error 2 Thanks, Vincent. This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. AppGui.pro Description: AppGui.pro ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] undefined reference to xxx error
Thanks for the reply. The issue has been solved after delete the generated makefiles manually and re-generate them again. From: interest-bounces+wcai=cypress@qt-project.org [mailto:interest-bounces+wcai=cypress@qt-project.org] On Behalf Of Pritam Sent: 2012年1月18日 17:11 To: interest@qt-project.org Subject: Re: [Interest] undefined reference to xxx error have a look at the generated Makefile. I often turn to that when I dont find anything wrong with my .pro files. On Wednesday 18 January 2012 02:24 PM, Vincent Cai wrote: Dear all, My project report errors during link stage. Issue Description, please also refer to attached pro file. # #Error on this line #(1) if comment below line, error occurs #(2) if assign TARGET with AppGui, error occurs #(3) if assign TARGET with name not equal to AppGui, error disappear TARGET = AppGui Error Info: ./debug\mainwindow.o: In function `MainWindow': E:\wcai_perforce\LTS_R3\CFT members\WCAI\Projects\TSA\Qt\TSA_IDE\TSA_Data\UART\AppGui/mainwindow.cpp:11: undefined reference to `QSerialUI::QSerialUI(QWidget*)' E:\wcai_perforce\LTS_R3\CFT members\WCAI\Projects\TSA\Qt\TSA_IDE\TSA_Data\UART\AppGui/mainwindow.cpp:12: undefined reference to `QSerialUI::Initialization()' E:\wcai_perforce\LTS_R3\CFT members\WCAI\Projects\TSA\Qt\TSA_IDE\TSA_Data\UART\AppGui/mainwindow.cpp:11: undefined reference to `QSerialUI::QSerialUI(QWidget*)' E:\wcai_perforce\LTS_R3\CFT members\WCAI\Projects\TSA\Qt\TSA_IDE\TSA_Data\UART\AppGui/mainwindow.cpp:12: undefined reference to `QSerialUI::Initialization()' collect2: ld returned 1 exit status mingw32-make[2]: *** [build\debug\exe\AppGui.exe] Error 1 mingw32-make[1]: *** [debug] Error 2 mingw32-make: *** [sub-AppGui-make_default] Error 2 Thanks, Vincent. This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. -- Regards, Pritam CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS*** This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest