Re: [Qbs] How to add -pthread option into projects? a bug in qbs ?

2019-07-04 Thread Christian Kandeler
On Thu, 4 Jul 2019 14:20:09 +0800 Vincent Hui wrote: > cpp.cppFlags: ["-pthread"] cpp.driverFlags: "-pthread" Christian ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs

Re: [Qbs] How to add -pthread option into projects? a bug in qbs ?

2019-07-04 Thread Richard Weickelt
> How to add -pthread option into projects? > ... >     cpp.cppFlags: ["-pthread"] Try using cpp.cxxFlags or cpp.driverFlags instead. cpp.cppFlags has a different meaning. See https://doc.qt.io/qbs/qml-qbsmodules-cpp.html#cppFlags-prop > I encountered this error too when use qbs file generated

Re: [Qbs] How to add -pthread option into projects? a bug in qbs ?

2019-07-04 Thread Richard Weickelt
> How to add -pthread option into projects? > ... >     cpp.cppFlags: ["-pthread"] Try using cpp.cxxFlags or cpp.driverFlags instead. cpp.cppFlags has a different meaning. See https://doc.qt.io/qbs/qml-qbsmodules-cpp.html#cppFlags-prop > I encountered this error too when use qbs file generated

Re: [Qbs] How to add -pthread option into projects? a bug in qbs ?

2019-07-04 Thread Christian Stenger
Hi, try using cpp.dynamicLibraries: [ "pthread" ] instead of the cpp.cppFlags part BR, Christian From: Qbs on behalf of Vincent Hui Sent: Thursday, July 4, 2019 8:20:09 AM To: qbs Subject: [Qbs] How to add -pthread option into projects? a bug in

[Qbs] How to add -pthread option into projects? a bug in qbs ?

2019-07-04 Thread Vincent Hui
Hi, I am using qbs 1.13.1. When I built a simple project generated by Qt Creator, I got an error message. "cc1plus: error: command line option ‘-pthread’ is valid for the driver but not for C++" I encountered this error too when use qbs file generated by conan to add dependency of opencv 4.0.1