qmake

How to import and use QObject in a BB10 Cocos2D based app

流过昼夜 提交于 2019-12-13 05:22:11
问题 I am currently working on building a Cocos2d-x game for the BB10 platform using the BBTemplateProject sample provided with Cocos2dx. I am new to C++ programming, and the current game is a port of a java project Iv been working on for a while. In order to save game data (scores, some settings etc), I intend to use the QtSQl Library which BB10 provides. I have successfully run some sample Qtsql code in a sample Cascades application and it works fine. However, integrating the same code into my

Qt Linking with Firmata

倖福魔咒の 提交于 2019-12-13 05:10:07
问题 I am running on a Windows 7 with Qt SDK(C++), Firmata, and Arduino Softaware I was wondering why the firmata.h is not working #ifndef Firmata_Boards_h #define Firmata_Boards_h #include <inttypes.h> #if defined(ARDUINO) && ARDUINO >= 100 #include "Arduino.h" // for digitalRead, digitalWrite, etc #else #include "WProgram.h" #endif the problem is when i try to compile using Qt it says D:\SGU\Semester 8\Program\OpenCVMultithreaded\Boards.h:9: error: Arduino.h: No such file or directory can we

ERROR: C:\OpenCV-Qt\build\bin\libopencv_core320.dll:-1: error: LNK1107: invalid or corrupt file: cannot read at 0x3D0

℡╲_俬逩灬. 提交于 2019-12-13 04:40:59
问题 I have been following this tutorial and I did all of them carefully. But afterwards I ran the simple code: I saw this error and how can I fix it? Tutorial: https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows I removed qt and opencv and I used the version that used in the tutorial that I mentioned but I got the same error. And also I added "img.jpg" to my project directory. #include "mainwindow.h" #include "ui_mainwindow.h" #include <opencv2/core/core.hpp> #include <opencv2/highgui

Copy files and folders from directory in QT pro file

我怕爱的太早我们不能终老 提交于 2019-12-13 03:11:33
问题 I want to copy all the files and directory from source folder to some other directory the code I tried is below mentioned BINARY_PATH = $$PWD/../Bin/ RESOURCE_PATH = $$PWD/../resources/ QT += core QT -= gui CONFIG += c++11 TARGET = untitled CONFIG += console CONFIG -= app_bundle TEMPLATE = app SOURCES += main.cpp win32 { QMAKE_POST_LINK +=$$quote(cmd /c xcopy /s /q /y /i $${RESOURCE_PATH} $${BINARY_PATH}$$escape_expand(\n\t)) } RESOURCE_PATH contain 2 files and 1 folder The above code is not

undefined reference when using c++11 qmake flags

試著忘記壹切 提交于 2019-12-13 02:27:16
问题 I have a Qt C++ application that includes a third-party library (along with its .h header file). However, when I set QMAKE_CCFLAGS += -std=c++11 and CONFIG += c++11 , I get undefined reference for function calls to this third-party library. It compiles without c++11 flags. Is there a way to resolve this? This is qmake specific when using c++11 flags in the qmake configuration. The DLL file is linked with qmake LIBS and is compiling without the c++11 qmake configuration flag. Once I set: QMAKE

qmake not generating binary resource files

不羁岁月 提交于 2019-12-13 02:25:34
问题 Specs: Qt Creator 2.5.1, Qt 4.7.4(32bit) It is my understanding from the Qt documentation that including a resource (.qrc) in the .pro file of Qt is all that is required to get qmake to generate the correct qrc_*.cpp files. That doesn't seem to be the case for my project. When running qmake the makes files are created and there are references to the qrc_ file I'm looking for under compiler_rcc_clean, just not in the build chain. [Update] At a suggestion from comments below the makefile

Using conditional expression for Kits in Qt qmake

烈酒焚心 提交于 2019-12-13 02:15:26
问题 I have a qmake (Qt 4.8.6) .pro file and I need to add conditional expressions based on the compiled kits: I currently have 2 Kits (with different compilers), one for the Desktop and one for the Embedded Platform , my application is linked to some libraries, that are compiled both for Desktop and for Embedded in two different folders. So what I'd like to achieve is: unix { embedded-platform { LIBS+= -lonearm -ltwoarm etc... }} unix { desktop { LIBS += -lonex86 -ltwox86 etc... }} I read the

QtCreator's code inspector breaks when I use -isystem flag instead of INCLUDEPATH

↘锁芯ラ 提交于 2019-12-13 00:53:53
问题 I wanted to suppress warning from external libraries which can be done by marking them as system libraries. I figured out this is how to do it in .pro QtCreator project file: QMAKE_CXXFLAGS += -isystem ../libs/boost159/ The problem is that QtCreator relies on the INCLUDEPATH setting, expects this: INCLUDEPATH += ../libs/boost159/ If I remove it, the QtCreator no longer can find boost libraries: I originally wanted to report this as a bug but after some reports I no longer believe the

How to create a single native shared library with no dependency for Android using Qt Creator

无人久伴 提交于 2019-12-12 22:43:59
问题 I have created a shared library using Qt Creator and I have added the Android SDK, Android NDK and Android Qt kit. Then I compiled my library for Android successfully. I even tested it in an Android application successfully. As I am not using the Qt libraries, my library does not depend on huge Qt libraries. But unexpectedly, here is my dependencies: [matin@Lenovo-X1-Fedora ~]$ ndk-depends libMatinChess.so WARNING: Could not find library: libgnustl_shared.so libMatinChess.so libz.so libstdc++

Qt version in centos7

*爱你&永不变心* 提交于 2019-12-12 16:47:03
问题 I am using centos 7. To check the version of qt installed I am using the command qmake --version which returns Qmake version: 1.07a (Qt 3.3.8b). Qmake is free software from Trolltech ASA. However when I give the command yum install qt , I get the message Package 1:qt-4.8.5-13.el7.x86_64 already installed and latest version. Nothing to do. I am not sure which version of qt is installed in my system! I need to have a qt version > 4.7. 回答1: Qt is designed to support multiple parallel