Re: [Interest] qmake: enable с++20

2025-01-02 Thread Thiago Macieira
On Thursday 2 January 2025 15:59:29 Brasilia Standard Time Alexander Dyagilev wrote: > Am I right that one needs to use CONFIG += c++2a instead of CONFIG += c++20 > to enable subj? Yes. We haven't (and won't) update the flags for qmake. It's in bug- compatibility mode and no one is devoting time

[Interest] qmake: enable с++20

2025-01-02 Thread Alexander Dyagilev
Hello, Am I right that one needs to use CONFIG += c++2a instead of CONFIG += c++20 to enable subj? ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest

Re: [Interest] qmake: set CFBundleDisplayName?

2023-05-31 Thread Tony Rietwyk
Hi, In our iOS builds we use our own .plist files.  They are included in the .pro file by     QMAKE_INFO_PLIST = $$_PRO_FILE_PWD_/Info.plist The .plist file looks like: "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>     CFBundleDevelopmentRegion     en     CFBundleDisplayName     Cad

Re: [Interest] qmake: set CFBundleDisplayName?

2023-05-31 Thread Alexander Dyagilev
There is a way using QMAKE_SUBSTITUTES (https://forum.qt.io/post/546870) But I would prefer a more simple way. On 5/31/2023 3:29 PM, Alexander Dyagilev wrote: Hello, Is there a way to set this value from within qmake using some of its built-in variables? By default, qmake generates Info.pli

Re: [Interest] qmake: set CFBundleDisplayName?

2023-05-31 Thread Alexander Dyagilev
Unfortunately, this does not work... On 5/31/2023 3:46 PM, Alexandru Croitor wrote: Hi, From https://doc.qt.io/qt-6/ios.html#customizing-xcode-project-settings Something like this should work? product_name.name = PRODUCT_NAME product_name.value = QMAKE_MAC_XCODE_SETTINGS += product_name

Re: [Interest] qmake: set CFBundleDisplayName?

2023-05-31 Thread Alexandru Croitor via Interest
Hi, >From https://doc.qt.io/qt-6/ios.html#customizing-xcode-project-settings Something like this should work? product_name.name = PRODUCT_NAME product_name.value = QMAKE_MAC_XCODE_SETTINGS += product_name > On 31. May 2023, at 14:29, Alexander Dyagilev wrote: > > Hello, > > Is there a wa

[Interest] qmake: set CFBundleDisplayName?

2023-05-31 Thread Alexander Dyagilev
Hello, Is there a way to set this value from within qmake using some of its built-in variables? By default, qmake generates Info.plist with the following content: CFBundleDisplayName ${PRODUCT_NAME} ___ Interest mailing list Interest@qt-project.or

Re: [Interest] qmake to cmake - error: redefinition of 'unit' const QQmlPrivate::CachedQmlUnit unit

2022-12-15 Thread Nuno Santos
Ulf, I found the culprit. I was indeed doing a duplicated import of my qml.cmake file, which was adding each qml twice to the compilation. Thanks for the heads up. Best regards, Nuno > On 15 Dec 2022, at 12:21, Ulf Hermann via Interest > wrote: > >> list(APPEND QML_FILES >> resources/q

Re: [Interest] qmake to cmake - error: redefinition of 'unit' const QQmlPrivate::CachedQmlUnit unit

2022-12-15 Thread Ulf Hermann via Interest
list(APPEND QML_FILES resources/qml/Browser.qml resources/qml/BrowserBank.qml resources/qml/BrowserButton.qml … Are there more files called "Browser.qml" in the same module? That doesn't work. Your QML components need unique names. Or is there some qt_target_qml_sources()

Re: [Interest] qmake to cmake - error: redefinition of 'unit' const QQmlPrivate::CachedQmlUnit unit

2022-12-15 Thread Nuno Santos
Thiago, Thanks for your reply. Too big to paste it here. I have included the errors and content of the shared_qmlcache_loader.cpp here: https://pastebin.com/vV6DjRk6 Thanks! Regards, Nuno > On 14 Dec 2022, at 19:57, Thiago Macieira wrote: > > On Wednesday, 1

Re: [Interest] qmake to cmake - error: redefinition of 'unit' const QQmlPrivate::CachedQmlUnit unit

2022-12-14 Thread Thiago Macieira
On Wednesday, 14 December 2022 16:11:10 -03 Nuno Santos wrote: > error: redefinition of ‘unit' const QQmlPrivate::CachedQmlUnit unit Please paste the full error message. In particular, the compiler must have told you where the other definition was. -- Thiago Macieira - thiago.macieira (AT) inte

[Interest] qmake to cmake - error: redefinition of 'unit' const QQmlPrivate::CachedQmlUnit unit

2022-12-14 Thread Nuno Santos
Hi, I’m trying to start porting my .pro/.pri files to cmake and I’m stumbling on the following error: error: redefinition of ‘unit' const QQmlPrivate::CachedQmlUnit unit The file shared_qmlcache_loader.cpp has a the following content: namespace QmlCacheGeneratedCode { namespace _shared_resourc

Re: [Interest] Qmake to CMake project conversion android build

2022-11-16 Thread Michael Heiser | SYSTRONIK Elektronik und Systemtechnik GmbH
...@gmail.com Cc: interest@qt-project.org Betreff: Re: [Interest] Qmake to CMake project conversion android build I’m using Qt Creator and in Run EuroSoft live is already present: [cid:image002.png@01D8FA58.56189FB0] Regards Michael Von: Alexey Edelev mailto:semla...@gmail.com>> Gesendet: Mi

Re: [Interest] Qmake to CMake project conversion android build

2022-11-16 Thread Michael Heiser | SYSTRONIK Elektronik und Systemtechnik GmbH
: [Interest] Qmake to CMake project conversion android build Hi, Do you use Qt Creator to build, deploy and run the application? If yes I would guess you need to switch the "Run" target on in bottom part of the left panel. Regards, Alexey. ср, 16 нояб. 2022 г. в 12:10, Michael Heiser |

Re: [Interest] Qmake to CMake project conversion android build

2022-11-16 Thread Alexey Edelev
Hi, Do you use Qt Creator to build, deploy and run the application? If yes I would guess you need to switch the "Run" target on in bottom part of the left panel. Regards, Alexey. ср, 16 нояб. 2022 г. в 12:10, Michael Heiser | SYSTRONIK Elektronik und Systemtechnik GmbH : > Hello experts, > curr

[Interest] Qmake to CMake project conversion android build

2022-11-16 Thread Michael Heiser | SYSTRONIK Elektronik und Systemtechnik GmbH
Hello experts, currently trying to move from qmake to cmake. Starting point in my Framework was using qmake2cmake tool. This generated a bunch of heavy cmake files, stripped them down and got it working that my integrated internal libs are building on windows. I have managed to get building and

Re: [Interest] qmake (wasm) : qtlogo.svg

2021-04-30 Thread Morten Sørvig
> On 29 Apr 2021, at 20:56, Nicholas Yue wrote: > > Hi, > > When building a Qt app with qmake that was build as WASM, it generate a > corresponding *.html which references the qtlogo.svg file > > cme.html: style="display:block"> > > Is there some option in the *.pro I can specif

[Interest] qmake (wasm) : qtlogo.svg

2021-04-29 Thread Nicholas Yue
Hi, When building a Qt app with qmake that was build as WASM, it generate a corresponding *.html which references the qtlogo.svg file cme.html: Is there some option in the *.pro I can specify to tell qmake to use a different SVG file instead? Cheers -- Nicholas Yue Graphics - Arnol

Re: [Interest] qmake bug. Any workaround?

2021-01-15 Thread Alexander Dyagilev
I've created additional .cpp file in which I've just included disarm.cpp. This helped. But I would like to get a solution which will work after any changes are made to Detours lib so I do not have to make such modifications in the future. On 1/15/2021 6:36 PM, Allan Sandfeld Jensen wrote: Re

Re: [Interest] qmake bug. Any workaround?

2021-01-15 Thread Allan Sandfeld Jensen
On Freitag, 15. Januar 2021 15:54:25 CET Alexander Dyagilev wrote: > Hello, > > I am trying to create a .pro file to compile Microsoft Detours lib. > > Failed, it generates linker error: > > detours.obj:-1: error: LNK2019: unresolved external symbol > DetourCopyInstruction referenced in function

Re: [Interest] qmake bug. Any workaround?

2021-01-15 Thread Thiago Macieira
On Friday, 15 January 2021 06:54:25 PST Alexander Dyagilev wrote: > Is there one which can be used in a real project? Why is this ugly bug > not fixed yet (8 years has passed)? Because it's not a bug, it's an intentional feature. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Arc

[Interest] qmake bug. Any workaround?

2021-01-15 Thread Alexander Dyagilev
Hello, I am trying to create a .pro file to compile Microsoft Detours lib. Failed, it generates linker error: detours.obj:-1: error: LNK2019: unresolved external symbol DetourCopyInstruction referenced in function DetourAttachEx This function is defined in disasm.cpp in case there are no spe

Re: [Interest] QMake contains and include

2020-05-22 Thread Jérôme Godbout
Kandeler Sent: May 22, 2020 3:34 AM To: interest@qt-project.org Subject: Re: [Interest] QMake contains and include On Thu, 21 May 2020 13:35:08 + Jérôme Godbout wrote: > It would be nice to see the .pri grey out or something more obvious. Or even > better an option to show/hide them

Re: [Interest] QMake contains and include

2020-05-22 Thread Christian Kandeler
On Wed, 20 May 2020 18:44:19 -0700 Thiago Macieira wrote: > The Qt Creator ProParser code has some different error recovery mechanisms > than qmake. Obviously it's going to be non-fatal to interact with a > repository > that is missing. It will also not run $$system() and do some other things

Re: [Interest] QMake contains and include

2020-05-22 Thread Christian Kandeler
On Thu, 21 May 2020 13:35:08 + Jérôme Godbout wrote: > It would be nice to see the .pri grey out or something more obvious. Or even > better an option to show/hide them. The project tree filter has an option "Hide disabled files". Christian ___

Re: [Interest] QMake contains and include

2020-05-21 Thread Jérôme Godbout
an option to show/hide them. -Original Message- From: André Pönitz Sent: May 21, 2020 12:02 AM To: Jérôme Godbout Cc: gm...@ratijas.tk; interest@qt-project.org Subject: Re: [Interest] QMake contains and include On Wed, May 20, 2020 at 04:30:41PM +, Jérôme Godbout wrote: >

Re: [Interest] QMake contains and include

2020-05-21 Thread Jérôme Godbout
org Subject: Re: [Interest] QMake contains and include On Wednesday, 20 May 2020 10:39:50 PDT Jérôme Godbout wrote: > If I may, why I want that in QtCreator exactly? what is the use case > for this? If my project doesn't use a part, why is it parsed at all? > What will happen if that u

Re: [Interest] QMake contains and include

2020-05-20 Thread André Pönitz
On Wed, May 20, 2020 at 04:30:41PM +, Jérôme Godbout wrote: >It kinda work, it’s really weird, but all the project get display, the >.pri and the include/source no matter the condition, but they are grey >out if the include condition is false, so it does scan the .pri no >matter

Re: [Interest] QMake contains and include

2020-05-20 Thread Thiago Macieira
On Wednesday, 20 May 2020 10:39:50 PDT Jérôme Godbout wrote: > If I may, why I want that in QtCreator exactly? what is the use case for > this? If my project doesn't use a part, why is it parsed at all? What will > happen if that unused .pri make a failure for something missing? Will it > failed to

Re: [Interest] QMake contains and include

2020-05-20 Thread Jérôme Godbout
with it would not be include, how would QtCreator react to this? Thanks, -Original Message- From: Interest On Behalf Of Thiago Macieira Sent: May 20, 2020 1:23 PM To: interest@qt-project.org Subject: Re: [Interest] QMake contains and include On Wednesday, 20 May 2020 09:30:41 PDT Jérôme Godbo

Re: [Interest] QMake contains and include

2020-05-20 Thread Thiago Macieira
On Wednesday, 20 May 2020 09:30:41 PDT Jérôme Godbout wrote: > It kinda work, it’s really weird, but all the project get display, the .pri > and the include/source no matter the condition, but they are grey out if > the include condition is false, so it does scan the .pri no matter what but > doesn

Re: [Interest] QMake contains and include

2020-05-20 Thread Jérôme Godbout
condition that include them or not, here what it does (image in attachment) with: if(true) { include(Amotus_Qt_GUI.pri) } if(false){ include(Amotus_Qt_Commands.pri) } From: gm...@ratijas.tk Sent: May 20, 2020 11:41 AM To: Jérôme Godbout ; interest@qt-project.org Subject: Re: [Interest] QMake

Re: [Interest] QMake contains and include

2020-05-20 Thread gmail
r what, but the message is not printed! this is really counter intuitive. Any way to make a conditional include?!?  From: Interest <interest-boun...@qt-project.org> On Behalf Of Jérôme GodboutSent: May 20, 2020 11:17 AMTo: interest@qt-project.orgSubject: [Interest] QMake contains and incl

Re: [Interest] QMake contains and include

2020-05-20 Thread Jérôme Godbout
al include?!? From: Interest On Behalf Of Jérôme Godbout Sent: May 20, 2020 11:17 AM To: interest@qt-project.org Subject: [Interest] QMake contains and include Hi, QMAKE question: anybody manage to use an include inside a contains(){} into QMake? the include is processed no matter w

[Interest] QMake contains and include

2020-05-20 Thread Jérôme Godbout
Hi, QMAKE question: anybody manage to use an include inside a contains(){} into QMake? the include is processed no matter what!?! message("list: '$$AMOTUS_SUBREPOS_OPTIONAL_NAMES' ") contains(AMOTUS_SUBREPOS_OPTIONAL_NAMES, i18n){ message("Using i18n...") HEADERS += $$AMOTUS_Qt_PATH/i18n.h

Re: [Interest] [qmake] COPIES broken for recent QT?

2019-04-12 Thread Olivier B.
Seems fixed in https://code.qt.io/cgit/qt/qtbase.git/commit/mkspecs/features/file_copies.prf?h=dev&id=7227e54445021b8c2ce4f4ab638cc7d43e32a5a7 I'll take back that modif in my qt installs Le ven. 12 avr. 2019 à 04:15, Thiago Macieira a écrit : > > On Thursday, 11 April 2019 06:43:25 PDT Olivier

Re: [Interest] [qmake] COPIES broken for recent QT?

2019-04-11 Thread Thiago Macieira
On Thursday, 11 April 2019 06:43:25 PDT Olivier B. wrote: > I just noticed that my COPIES fail in Qt 5.11.1+ in visual studio > solutions. This seems caused by the change in > mkspecs/features/file_copies.prf; to use $(QINSTALL) instead of the > previous $$QMAKE_COPY. > But unlike in makefiles, QIN

[Interest] [qmake] COPIES broken for recent QT?

2019-04-11 Thread Olivier B.
I just noticed that my COPIES fail in Qt 5.11.1+ in visual studio solutions. This seems caused by the change in mkspecs/features/file_copies.prf; to use $(QINSTALL) instead of the previous $$QMAKE_COPY. But unlike in makefiles, QINSTALL is not defined in the visual studio solutions :( _

Re: [Interest] qmake with release config is called for debug build

2018-11-12 Thread Olivier B.
wonder why it's not as simple as the MSBuild target system (I not a > lover of MSBuild, but that part was clear and simple) where QMake make it > super unfriendly. > > > -Original Message- > From: Interest On Behalf > Of Alexander Dyagilev > Sent: November

Re: [Interest] qmake with release config is called for debug build

2018-11-12 Thread Jérôme Godbout
unfriendly. -Original Message- From: Interest On Behalf Of Alexander Dyagilev Sent: November 10, 2018 3:28 AM To: interest@qt-project.org Subject: [Interest] qmake with release config is called for debug build Hello, I'm using the following .pri file: include(macros.pri) win32:CONFIG(release

[Interest] qmake with release config is called for debug build

2018-11-10 Thread Alexander Dyagilev
Hello, I'm using the following .pri file: include(macros.pri) win32:CONFIG(release, debug|release) {   VC_RUNTIME_FOLDER="c:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/redist/x64/Microsoft.VC140.CRT"   copyFilesToDestdir($$VC_RUNTIME_FOLDER, "msvcp140.dll") } It's supposed to copy ms

[Interest] qmake, pkg-config and "Requires"

2018-10-22 Thread René Hansen
After upgrading to the latest XCode, I had to recompile some native libs and ran into an old familiar bug. Basically it seems qmake doesn't now what to do whenever it runs into a `Requires` directive in a pkg-config file. Here's for example openssl: prefix=/usr/local/Cellar/openssl/1.0.2p exec_pr

[Interest] qmake PRECOMPILED_HEADER when building for Android

2018-08-05 Thread Alexander Dyagilev
Hello, This option works fine for Windows and Mac OS X. But it does not work when building for Android (GCC is used). Is there a way to enable precompiled headers? The building is too slow without it... ___ Interest mailing list Interest@qt-project

[Interest] QMake install

2018-04-09 Thread Jérôme Godbout
Hi, I'm having some trouble to find the proper way to install multiple sources into the same directory. I have a git repos with some java source for Android and some subRepos I want to also contribute to java src. I have hard time to figure out how to install all of them into the android subfo

Re: [Interest] QMake, (static) libraries and LTCG (LTO) on Mac

2017-11-13 Thread Thiago Macieira
On segunda-feira, 13 de novembro de 2017 03:24:46 PST René J. V. Bertin wrote: > Thiago Macieira wrote: > > it's a limitation of your environment. Static linking LTCG precompiled > > code > > requires a special linker. It's not very well supported everywhere. > > Erm, this is on Mac, and I am usin

Re: [Interest] QMake, (static) libraries and LTCG (LTO) on Mac

2017-11-13 Thread René J . V . Bertin
Thiago Macieira wrote: > it's a limitation of your environment. Static linking LTCG precompiled code > requires a special linker. It's not very well supported everywhere. Erm, this is on Mac, and I am using a much more recent linker editor than the one from the system. I've been able to build Q

Re: [Interest] QMake, (static) libraries and LTCG (LTO) on Mac

2017-11-11 Thread Thiago Macieira
On sábado, 11 de novembro de 2017 05:01:53 PST René J.V. Bertin wrote: > Am I doing something wrong or am I simply hitting a limitation? it's a limitation of your environment. Static linking LTCG precompiled code requires a special linker. It's not very well supported everywhere. -- Thiago Maci

Re: [Interest] QMake, (static) libraries and LTCG (LTO) on Mac

2017-11-11 Thread René J . V . Bertin
On Saturday November 11 2017 17:47:14 Konstantin Tokarev wrote: >Well, LTO and missing symbols go hand in hand, you should be ready to deal >with such errors. That shouldn't be the case IMHO, and most of the time it isn't at least not when building Qt. >What is your reason to use LTO? Can you

Re: [Interest] QMake, (static) libraries and LTCG (LTO) on Mac

2017-11-11 Thread Konstantin Tokarev
> On Saturday November 11 2017 16:12:38 Konstantin Tokarev wrote: > >> Note that you should be able to build whole qttools module against any Qt >> install. It should work without any modifications. > > That's what I'd expect but not really what I'm looking for here. I could try > it once to

Re: [Interest] QMake, (static) libraries and LTCG (LTO) on Mac

2017-11-11 Thread René J . V . Bertin
On Saturday November 11 2017 16:12:38 Konstantin Tokarev wrote: >Note that you should be able to build whole qttools module against any Qt >install. It should work without any modifications. That's what I'd expect but not really what I'm looking for here. I could try it once to see if I get the

Re: [Interest] QMake, (static) libraries and LTCG (LTO) on Mac

2017-11-11 Thread Konstantin Tokarev
> Hi, > > I have made some tweaks to the qttools/src/assistant directories so that I > can build the Assistant as a standalone application against any Qt install. Note that you should be able to build whole qttools module against any Qt install. It should work without any modifications. >To

[Interest] QMake, (static) libraries and LTCG (LTO) on Mac

2017-11-11 Thread René J . V . Bertin
Hi, I have made some tweaks to the qttools/src/assistant directories so that I can build the Assistant as a standalone application against any Qt install. To do that, I removed the qtNomakeTools(), load(qt_module) and load(qt_app) statements from the relevant .pro files, set up QtHelp to build

[Interest] QMake: How to add xcconfig file and set for target config

2017-08-30 Thread Patrick Stinson
I am generating an Xcode project from a .pro file and want to set an xcconfig file as the build configuration for a particular target in the project. This means that I need to edit the .pro file to: 1) add the xcconfig file to the project 2) set the xcconfig in the build settings for the target

[Interest] QMake: Way to set capabilities for Xcode project?

2017-08-30 Thread Patrick Stinson
I am dependent on a tool that uses qmake to regenerate an xcodeproject whenever I add a source file, and so I always have to find the way to make any changes to the Xcode project within the .pro file. I have done well until this point with the Info.plist file. But now I need to be able to enabl

[Interest] qmake replaces 'debug'/'release' in DESTDIR

2017-06-21 Thread Benjamin TERRIER
Hi everyone, I have encountered something unexpected with qmake on Windows. If DESTDIR contains either "release" or "debug", qmake will replace it with the one matching the actual build configuration. For instance if I have: "DESTDIR = foo/release/bar" and I run: "qmake CONFIG+=debug" the actual

[Interest] qmake and IDEs

2017-05-20 Thread Roland Hughes
On 05/20/2017 01:02 AM, André Pönitz wrote: I would neither call part of a 'philosophy' around Qt, that'd be probably something with 'cross platform', 'ease of use'. It's a philosophy. I have worked with many "cross platform" toolkits over my 3+ decades. Up until Qt ZAF was the most successful

Re: [Interest] QMake

2017-05-09 Thread Till Oliver Knoll
> Am 08.05.2017 um 20:49 schrieb Hamish Moffatt : > >> On 08/05/17 21:38, Till Oliver Knoll wrote: >> >> >> Am 08.05.2017 um 04:12 schrieb Hamish Moffatt : >> On 08/05/17 17:07, Igor Mironchik wrote: Hi, Is it possible to set in qmake project file to put executable right

Re: [Interest] QMake

2017-05-08 Thread Hamish Moffatt
On 08/05/17 21:38, Till Oliver Knoll wrote: Am 08.05.2017 um 04:12 schrieb Hamish Moffatt mailto:ham...@risingsoftware.com>>: On 08/05/17 17:07, Igor Mironchik wrote: Hi, Is it possible to set in qmake project file to put executable right in "." directory and don't use "debug" and "relea

Re: [Interest] QMake

2017-05-08 Thread Till Oliver Knoll
> Am 08.05.2017 um 04:12 schrieb Hamish Moffatt : > >> On 08/05/17 17:07, Igor Mironchik wrote: >> Hi, >> >> Is it possible to set in qmake project file to put executable right in "." >> directory and don't use "debug" and "release" subdirs? > > Which platform? It does that on linux. > > May

Re: [Interest] QMake

2017-05-08 Thread André Hartmann
Hi Igor, the trick is CONFIG-=debug_and_release BUT BE WARNED: This option is set by default, because on Windows debug and release object CANNOT be mixed. If you disable it, your'e on your own. Please see https://bugreports.qt.io/browse/QTBUG-52347 for more information on this. Best regard

Re: [Interest] QMake

2017-05-08 Thread Igor Mironchik
2017-05-08 10:12, Hamish Moffatt пишет: On 08/05/17 17:07, Igor Mironchik wrote: Hi, Is it possible to set in qmake project file to put executable right in "." directory and don't use "debug" and "release" subdirs? Which platform? It does that on linux. I'm on Windows. Maybe you can u

Re: [Interest] QMake

2017-05-08 Thread Hamish Moffatt
On 08/05/17 17:07, Igor Mironchik wrote: Hi, Is it possible to set in qmake project file to put executable right in "." directory and don't use "debug" and "release" subdirs? Which platform? It does that on linux. Maybe you can use the DESTDIR variable to control where it's output. (I had t

[Interest] QMake

2017-05-08 Thread Igor Mironchik
Hi, Is it possible to set in qmake project file to put executable right in "." directory and don't use "debug" and "release" subdirs? Thank you. --- This email has been checked for viruses by AVG. http://www.avg.com ___ Interest mailing list Inter

Re: [Interest] Qmake one-line Qt version checking?

2017-01-06 Thread André Hartmann
Hi Michael, Am 06.01.2017 um 13:34 schrieb Michael Sué: Hi, #if QT_VERSION < 0x050800 # error "This program requires Qt 5.8 or higher" #endif You can use: lessThan(QT_VERSION, 5.8.0): message(This program requires Qt 5.8 or higher) That works indeed - thank you very much! André -

Re: [Interest] Qmake one-line Qt version checking?

2017-01-06 Thread Michael Sué
Hi, >#if QT_VERSION < 0x050800 ># error "This program requires Qt 5.8 or higher" >#endif You can use: lessThan(QT_VERSION, 5.8.0): message(This program requires Qt 5.8 or higher) - Michael. ___ Interest mailing list Interest@qt-project.org http

Re: [Interest] Qmake one-line Qt version checking?

2017-01-05 Thread Rainer Wiesenfarth
Ah, forget about it, read it the wrong way... -- Software Engineer | Trimble Imaging Division Rotebühlstraße 81 | 70178 Stuttgart | Germany Office +49 711 22881 0 | Fax +49 711 22881 11 http://www.trimble.com/imaging/ | http://www.inpho.de/ Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim

Re: [Interest] Qmake one-line Qt version checking?

2017-01-05 Thread Rainer Wiesenfarth
2017-01-05 16:56 GMT+01:00 André Hartmann : > lessThan(QT_MAJOR_VERSION, 5): message("This program requires Qt 5.8") > else: lessThan(QT_MINOR_VERSION, 8): message("This program...") > > Is there a way to do a comparison here like in C++ in one line? > ​With C++ >= 11, ... static_assert(QT_VERSI

[Interest] Qmake one-line Qt version checking?

2017-01-05 Thread André Hartmann
Hi, in C++ code I can do a Qt version comparison in one line like this: #if QT_VERSION < 0x050800 # error "This program requires Qt 5.8 or higher" #endif To do something similar in a .pro file, I have to use a construct like this: lessThan(QT_MAJOR_VERSION, 5): message("This program requ

[Interest] qmake path wrong in boot2qt on device

2016-10-14 Thread 心翔
Hi, I compiled boot2qt with qtbase-tools and also *-dev package, but when run qmake -query ,the qmake environment variable points to the host, so I can't use qmake in target. Does anybody know how fix this problem? Thanks. ___ Interest mailing list Inte

[Interest] qmake replace functions

2016-06-03 Thread Igor Mironchik
Hi, with Qt5 I can do like this: $$shell_path( $$absolute_path( $${OUT_PWD}/../../executable ) ) but in Qt4 there is no shell_path() and absolute_path() functions. So my question is it possible to do something similar with Qt4? Thank you. ___ Intere

Re: [Interest] Qmake: Detecting if QSerialPort is installed

2016-03-10 Thread André Hartmann
Hi Thiago, This looks like the best solution. I already get a message when load() fails*, and I can use it as test expression for conditional compile. Maybe the wiki https://wiki.qt.io/Qt_Serial_Port should be updated, as load() seems the best way to do it. @Kai: QT_CONFIG seems to include ev

Re: [Interest] Qmake: Detecting if QSerialPort is installed

2016-03-10 Thread Thiago Macieira
On quinta-feira, 10 de março de 2016 09:10:49 PST André Hartmann wrote: > Hi all, > > I'm working on a library that (optionally) depends on QSerialPort. > > This library should also compile on Qt 4, so I did the following in the > project file: > > greaterThan(QT_MAJOR_VERSION, 4) { > Q

Re: [Interest] Qmake: Detecting if QSerialPort is installed

2016-03-10 Thread Koehne Kai
> -Original Message- > From: Interest [mailto:interest- > bounces+kai.koehne=theqtcompany@qt-project.org] On Behalf Of > Koehne Kai > Sent: Thursday, March 10, 2016 1:57 PM > To: André Hartmann ; Interest@qt- > project.org > Subject: Re: [Interest] Qmake: Det

Re: [Interest] Qmake: Detecting if QSerialPort is installed

2016-03-10 Thread Koehne Kai
> -Original Message- > From: Interest [mailto:interest- > bounces+kai.koehne=theqtcompany@qt-project.org] On Behalf Of > Andre Hartmann > Sent: Thursday, March 10, 2016 9:11 AM > To: Interest@qt-project.org > Subject: [Interest] Qmake: Detecting if QSerialPort

[Interest] Qmake: Detecting if QSerialPort is installed

2016-03-10 Thread André Hartmann
Hi all, I'm working on a library that (optionally) depends on QSerialPort. This library should also compile on Qt 4, so I did the following in the project file: greaterThan(QT_MAJOR_VERSION, 4) { QT += serialport } else { CONFIG += serialport } Thats fine so far, but if QSeri

Re: [Interest] Qmake "requires" function

2016-02-22 Thread Carel Combrink
Thiago, > MY_ENV_VAR_TEST=$$(MY_ENV_VAR) > > isEmpty(MY_ENV_VAR_TEST) { > > error("The env var MY_ENV_VAR must be set when enabling this > library") > > } > > > > *PS: Is there a better way to check if an environmental variable is set > > using qmake that is cross platform for Linux, Windows a

Re: [Interest] Qmake "requires" function

2016-02-22 Thread Thiago Macieira
On terça-feira, 23 de fevereiro de 2016 07:51:13 PST Carel Combrink wrote: > I had the following code in my pro file: > > requires(true) > requires(false) > > To force it to fail, to test the requires() function. As I said, the requires(false) predicate does work: it produces a Makefile that pr

Re: [Interest] Qmake "requires" function

2016-02-22 Thread Carel Combrink
Morning Thiago, > Please give a concrete usecase. > I have developed a framework that contains a set of libraries using subdirs template. One library needs specific tools to be installed before it can be built. My initial implementation was to pass a argument to qmake to enable this library if y

Re: [Interest] Qmake "requires" function

2016-02-22 Thread Thiago Macieira
On segunda-feira, 22 de fevereiro de 2016 12:44:30 PST Carel Combrink wrote: > I have tested with the following but cant seem to get a positive result: Please give a concrete usecase. Obviously you don't have both > requires(true) > > requires(false) In your .pro file. Please also explain what

[Interest] Qmake "requires" function

2016-02-22 Thread Carel Combrink
Hi All, What is the syntax for using the qmake "requires" function? The documentation states the following: *Evaluates condition. If the condition is false, qmake skips this project (and its SUBDIRS) when building.* I

Re: [Interest] Qmake: execute two different link steps?

2015-12-04 Thread André Hartmann
Wow. With full example :) Thanks a lot Elvis, this works indeed fine. I've also added the following common lines to myProg-sources.pri: QT += core network QT -= gui CONFIG += console CONFIG -= app_bundle TEMPLATE = app List of sources goes here... The both .pro files now simply contain the

Re: [Interest] Qmake: execute two different link steps?

2015-12-03 Thread André Hartmann
Hi Elvis and Konstantin, thanks for your suggestions. I think I will take the SUBDIRS way. Best regards, André Am 03.12.2015 um 13:04 schrieb Elvis Stansvik: 2015-12-03 13:02 GMT+01:00 Konstantin Tokarev : 03.12.2015, 15:00, "Elvis Stansvik" : Hi André, 2015-12-03 10:51 GMT+01:00 André H

Re: [Interest] Qmake: execute two different link steps?

2015-12-03 Thread Elvis Stansvik
2015-12-03 13:02 GMT+01:00 Konstantin Tokarev : > > > 03.12.2015, 15:00, "Elvis Stansvik" : >> Hi André, >> >> 2015-12-03 10:51 GMT+01:00 André Hartmann : >>> Hello, >>> >>> I have a Qmake based project that is developed in Qt Creator (currently >>> compiled with Linux/gcc and Windows/MinGW). >>

Re: [Interest] Qmake: execute two different link steps?

2015-12-03 Thread Konstantin Tokarev
03.12.2015, 15:00, "Elvis Stansvik" : > Hi André, > > 2015-12-03 10:51 GMT+01:00 André Hartmann : >>  Hello, >> >>  I have a Qmake based project that is developed in Qt Creator (currently >>  compiled with Linux/gcc and Windows/MinGW). >> >>  Depending on a configuration variable the PRO file my

Re: [Interest] Qmake: execute two different link steps?

2015-12-03 Thread Elvis Stansvik
Hi André, 2015-12-03 10:51 GMT+01:00 André Hartmann : > Hello, > > I have a Qmake based project that is developed in Qt Creator (currently > compiled with Linux/gcc and Windows/MinGW). > > Depending on a configuration variable the PRO file my program links to one > of two librarys: > > TARGET = my

[Interest] Qmake: execute two different link steps?

2015-12-03 Thread André Hartmann
Hello, I have a Qmake based project that is developed in Qt Creator (currently compiled with Linux/gcc and Windows/MinGW). Depending on a configuration variable the PRO file my program links to one of two librarys: TARGET = myProg CONFIG += TESTLIB CONFIG(TESTLIB): LIBS += libXXXtest else

[Interest] qmake findmocs randomly skips header files (about 1 in 1000 times)

2015-10-12 Thread Pieter-Jan Busschaert
Hello, We have a software project which consists of roughly 50 QT components, each with their own .pro file. On our continuous build server we run qmake on all of them after every commit. About 1 in 20 builds we have a random linking error due to not finding the metaobject related code for some (

Re: [Interest] Qmake/ make check

2015-08-26 Thread Gregory Redder
Thiago, Thanks for the help. tracked it to what seems to be an issue with our test code. On Wed, Aug 26, 2015 at 11:22 AM, Thiago Macieira wrote: > On Wednesday 26 August 2015 10:35:44 Gregory Redder wrote: > > Hello all, > > > > I'm setting up a CI build script for my qt project and I'm runni

Re: [Interest] Qmake/ make check

2015-08-26 Thread Thiago Macieira
On Wednesday 26 August 2015 10:35:44 Gregory Redder wrote: > Hello all, > > I'm setting up a CI build script for my qt project and I'm running into > issues. > > qmake $project -r -spec linux-g++ CONFIG+=debug CONFIG+=declarative_debug > CONFIG+=qml_debug CONFIG+=testcase > > running make and ma

[Interest] Qmake/ make check

2015-08-26 Thread Gregory Redder
Hello all, I'm setting up a CI build script for my qt project and I'm running into issues. qmake $project -r -spec linux-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug CONFIG+=testcase running make and make install. everything is fine but when I run make check it attempts to run a

Re: [Interest] qmake Library VERSION issues on Windows

2015-07-29 Thread Thiago Macieira
On Thursday 30 July 2015 07:58:15 Carel Combrink wrote: > How does the Linux side know which version to link to, I am assuming this > is then a feature of gcc/make and not qmake? No, it's really qmake. It creates symlinks. When you pass -lXXX, the linker searches for libXXX.so and then libXXX.a.

Re: [Interest] qmake Library VERSION issues on Windows

2015-07-29 Thread Carel Combrink
Thanks Thiago, I was afraid of that. For now I have the following in my project file: win32:unset(VERSION) Just out of curiosity: How does the Linux side know which version to link to, I am assuming this is then a feature of gcc/make and not qmake? I can't see that my dependent lib knows the ver

Re: [Interest] qmake Library VERSION issues on Windows

2015-07-29 Thread Thiago Macieira
On Tuesday 28 July 2015 14:26:12 Carel Combrink wrote: > Is there something that I am missing? You're not missing anything. What you see is what you get. On Windows, you need to specify the exact name of the library. So either don't put the version number there or do specify it in the LIBS varia

Re: [Interest] qmake Library VERSION issues on Windows

2015-07-29 Thread Carel Combrink
Any help? I forgot to mention my environment: Windows 7 x64 Qt 5.4.2 mingw 4.9.1 32bit Regards, Carel On Tue, Jul 28, 2015 at 2:26 PM, Carel Combrink wrote: > Hi, > > I have developed a few libraries in Linux and everything is working > correctly. > The libraries set the VERSION variable in th

[Interest] qmake Library VERSION issues on Windows

2015-07-28 Thread Carel Combrink
Hi, I have developed a few libraries in Linux and everything is working correctly. The libraries set the VERSION variable in the project file and some depend on others. I am now trying to test the code on Windows but have issues due to the versioning of the libraries. I get linker errors for libr

Re: [Interest] qmake, executable & static libs...

2015-06-17 Thread Igor Mironchik
Hi. On 18.06.2015 09:48, Thiago Macieira wrote: > On Thursday 18 June 2015 09:24:38 Igor Mironchik wrote: >> Hi guys, >> >> I'm porting Qt 5 application to Linux and ran into a problem of linking. >> >> This application depends on two external static libs (let's say libs A >> and B). But this libs

Re: [Interest] qmake, executable & static libs...

2015-06-17 Thread Thiago Macieira
On Thursday 18 June 2015 09:24:38 Igor Mironchik wrote: > Hi guys, > > I'm porting Qt 5 application to Linux and ran into a problem of linking. > > This application depends on two external static libs (let's say libs A > and B). But this libs is in the tree of the project. > > And this project d

[Interest] qmake, executable & static libs...

2015-06-17 Thread Igor Mironchik
Hi guys, I'm porting Qt 5 application to Linux and ran into a problem of linking. This application depends on two external static libs (let's say libs A and B). But this libs is in the tree of the project. And this project depends on two yet internal static libs (let's say libs C and D). Libs

Re: [Interest] qmake: Test if environment variable is set.

2015-05-27 Thread Carel Combrink
Thiago, > So TEST_3 isn't empty. Only the output from message was empty because it > performed an extra expansion. > Thanks for the explanation, it makes a sense now. Michael, > I would use TEST_3=$$(FOO) instead of TEST_3=$(FOO) This does work correctly thanks. Reading the documentation on

Re: [Interest] qmake: Test if environment variable is set.

2015-05-27 Thread Thiago Macieira
On Wednesday 27 May 2015 00:10:19 Thiago Macieira wrote: > On Wednesday 27 May 2015 09:03:24 Carel Combrink wrote: > > Am I doing something wrong? > > Yes, you're expecting qmake to observe environment variables. It does not. > Make honours and processes them, but that's run after qmake has finish

  1   2   3   >