I am building with Qt 5.2 with the Mingw 4.8.0 on windows 8 and I am trying to trouble shoot the following error, cc1plus.exe:-1: error: out of memory allocating 262575 bytes.
From my searches, I saw a bug report that the Mingw was the cause of this error. https://bugreports.qt-project.org/browse/QTBUG-29099.
Does anyone have an idea of what the problem and fix might be?
Thanks.
↧
cc1plus.exe:-1: error: out of memory allocating 262575 bytes
↧
Qt Android: Incompatible device message when adding the Fairphone [SOLVED]
Hi
I tried to deploy onto my Fairphone, but when getting the “Select Android device” Window, I got the Message “ABI is incompatible, device supports ABIs: .”
Using a Sony Tablet instead, makes no problem. Also it is possible to copy the SDK to my phone and run it from there.
Phone is in developer Mode.
Host system is Ubuntu 12.04
Any idea what I’m missing?
↧
↧
[install_target] error deploying on Android
Hey everybody,
I’m new to Qt and I created a program I wanted to deploy on Android.
I installed the SDK, NDK, JDK and Qt 5.2.0 for Android.
My program runs just fine if I run it on Windows, and for Android it seems to compile,
but when it wants to deploy the program to my Phone (Xperia U, st25i) it just doesn’t work.
The same problem if I try to deploy it to an AVD.
I activated the SDK USB driver and Qt does detect it.
I also enabled USB debugging. I have Android 4.0.4.
I searched a lot on Google, but nothing on my problem.
When it tries to deploy it gives the error:
:-1: error: [install_target] Error 1
I really don’t know what to do.
Please help me.
↧
Tool definition for linux cross-compilation on windows
I hit a strange problem.
While trying to do the cross-compilation for an embedded linux on windows 7 the tool definition in the makefiles are suddenly linux based on a windows system. The result is that the command “test” cannot be found.
A bit of inspection shows that the makefiles contain:
first: make_first
QMAKE = C:\Qt\Qt5\5.1.0\Qt5.1.0_Source_Windows\qtbase\bin\qmake
DEL_FILE = rm -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
COPY = cp -f
COPY_FILE = cp -f
COPY_DIR = cp -f -R
INSTALL_FILE = install -m 644 -p
INSTALL_PROGRAM = install -m 755 -p
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = rm -f
SYMLINK = ln -f -s
DEL_DIR = rmdir
MOVE = mv -f
Config.cache is
-platform
win32-g++
-xplatform
linux-arm-gnueabi-g++-uclinux
-D
QT_NO_CURSOR
-static
-opensource
-no-angle
The funny thing is that I have been able to obtain the proper tool definition yesterday with the same configuration settings:
QMAKE = C:\Qt\Qt5\5.1.0\Qt5.1.0_Source_Windows\qtbase\bin\qmake
DEL_FILE = del
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
COPY = copy /y
COPY_FILE = $(COPY)
COPY_DIR = xcopy /s /q /y /i
INSTALL_FILE = $(COPY_FILE)
INSTALL_PROGRAM = $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = del
SYMLINK = copy /y
DEL_DIR = rmdir
MOVE = move
In both cases the source has been extracted from the same open source .7z archive.
Has anyone an idea why I am hitting this problem?
↧
Compile Qt 4.8.5 on RHEL 3.9
Hello,
I had to compile a project on RHEL 3.9, using gcc 3.2.3. If someone has to do the same (I don’t wish it to anyone…), here’s some modifications I made :
cd $HOME
tar xvzf qt-everywhere-opensource-src-4.8.5.tar.gz
cd qt-everywhere-opensource-src-4.8.5
./configure --prefix=$HOME/Qt-4.8.5 -no-dbus -release -nomake examples -nomake demos -opensource -confirm-license -no-declarative -no-script -no-javascript-jit -noscripttools -no-webkit
patch -p0 < patch_Qt-4.8.5_RHEL-3.9.txt
export CPLUS_INCLUDE_PATH=/usr/kerberos/include
make
make install
The patch file :
diff -r orig/src/corelib/kernel/qobject.h patched/src/corelib/kernel/qobject.h
356c356
< { return o->findChild<T>(name); }
---
> { return o->template findChild<T>(name); }
361c361
< return o->findChildren<T>(name);
---
> return o->template findChildren<T>(name);
368c368
< return o->findChildren<T>(re);
---
> return o->template findChildren<T>(re);
diff -r orig/src/corelib/thread/qthread_unix.cpp patched/src/corelib/thread/qthread_unix.cpp
118c118
< #define HAVE_TLS
---
> //#define HAVE_TLS
288c288
< prctl(PR_SET_NAME, (unsigned long)name, 0, 0, 0);
---
> //prctl(PR_SET_NAME, (unsigned long)name, 0, 0, 0);
diff -r orig/src/corelib/tools/qchar.cpp patched/src/corelib/tools/qchar.cpp
922c922
< enum {
---
> enum namedEnum {
diff -r orig/src/corelib/tools/qmap.h patched/src/corelib/tools/qmap.h
67c67
< enum { LastLevel = 11, Sparseness = 3 };
---
> enum namedEnum { LastLevel = 11, Sparseness = 3 };
diff -r orig/src/gui/dialogs/qcolordialog.cpp patched/src/gui/dialogs/qcolordialog.cpp
684c684
< enum { foff = 3, coff = 4 }; //frame and contents offset
---
> enum namedEnum { foff = 3, coff = 4 }; //frame and contents offset
diff -r orig/src/gui/itemviews/qlistview.cpp patched/src/gui/itemviews/qlistview.cpp
2924c2924
< QRect rect(QPoint(), topLeft);
---
> QRect rect ; rect.setBottomRight(topLeft);
diff -r orig/src/gui/painting/qtessellator.cpp patched/src/gui/painting/qtessellator.cpp
172c172
< enum { default_alloc = 32 };
---
> enum namedEnum { default_alloc = 32 };
diff -r orig/src/gui/widgets/qcalendarwidget.cpp patched/src/gui/widgets/qcalendarwidget.cpp
67c67
< enum {
---
> enum namedEnum {
diff -r orig/src/gui/widgets/qsplashscreen.cpp patched/src/gui/widgets/qsplashscreen.cpp
244c244
< QRect r(QPoint(), d->pixmap.size());
---
> QRect r(0,0,d->pixmap.size().width(),d->pixmap.size().height());
diff -r orig/src/network/socket/qnativesocketengine.cpp patched/src/network/socket/qnativesocketengine.cpp
133c133
< return (returnValue); \
---
> return returnValue; \
138c138
< return (returnValue); \
---
> return returnValue; \
144c144
< return (returnValue); \
---
> return returnValue; \
150c150
< return (returnValue); \
---
> return returnValue; \
diff -r orig/src/network/socket/qudpsocket.cpp patched/src/network/socket/qudpsocket.cpp
168c168
< return (a); \
---
> return a; \
diff -r orig/src/plugins/graphicssystems/trace/qgraphicssystem_trace.cpp patched/src/plugins/graphicssystems/trace/qgraphicssystem_trace.cpp
82c82,83
< QFile outputFile(QString(QLatin1String("qtgraphics-%0.trace")).arg(winId));
---
> QLatin1String tmpLatin1String("qtgraphics-%0.trace");
> QFile outputFile(QString(tmpLatin1String).arg(winId));
diff -r orig/src/sql/drivers/psql/qsql_psql.cpp patched/src/sql/drivers/psql/qsql_psql.cpp
211,212c211
< const char *sCode = PQresultErrorField(result, PG_DIAG_SQLSTATE);
< msg += QString::fromLatin1("(%1)").arg(QString::fromLatin1(sCode));
---
> msg += QString::fromLatin1("(%1)").arg(QString::number(PQresultStatus(result)));
diff -r orig/tools/assistant/tools/assistant/helpenginewrapper.cpp patched/tools/assistant/tools/assistant/helpenginewrapper.cpp
74c74,75
< const QString VersionKey(QString(QLatin1String("qtVersion%1$$$%2")).
---
> QLatin1String tmpLatin1String("qtVersion%1$$$%2");
> const QString VersionKey(QString(tmpLatin1String).
diff -r orig/tools/assistant/tools/assistant/helpviewer_qtb.cpp patched/tools/assistant/tools/assistant/helpviewer_qtb.cpp
61c61
< , d(new HelpViewerPrivate(zoom))
---
> , d(new HelpViewerPrivate(int(zoom)))
350c350
< QMenu menu(QString(), 0);
---
> QMenu menu;
diff -r orig/tools/linguist/lupdate/qdeclarative.cpp patched/tools/linguist/lupdate/qdeclarative.cpp
229,232c229
< TranslatorMessage msg(QString(), sourcetext,
< QString(), QString(), m_fileName,
< node->firstSourceLocation().startLine, QStringList(),
< TranslatorMessage::Unfinished, plural);
---
> TranslatorMessage msg;
diff -r orig/tools/linguist/shared/ioutils.cpp patched/tools/linguist/shared/ioutils.cpp
66c66
< struct ::stat st;
---
> struct stat st;
Mathieu
↧
↧
first impressions of Qt 5.2 install
I installed qt 5.2 from
http://qt-project.org/downloads, using “Qt Online Installer for Windows (13 MB) (Info)”
After a long download, I opened qt creator, and clicked on
tutorials, then on building and running an application.
It says “in the Welcome mode…”, but never says how to get to welcome mode.
I clicked on the welcome button at last.
Then examples, then, I clicked on flickr view example.
Then I clicked on green Play icon, since it was in the building and running tutorials, and got an error:
“:-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.”
Why does an tutorial example give you an error? Error, or this error message is not mentioned anywhere in the tutorial,
Or the possibility of the error.
Why can’t installer select MiniGW complier by default, seeing as it was downloaded?
Why is location of the kit selector not mentioned in the error message? (tools/options, or pc icon?)
Although, there is a message about kit selector. “To check that the application code can be compiled and linked for a device,
click the Kit Selector and select a kit for the device.”
Even though it does not tell you which kit to select, or what kit is.
And how do I exit from the kit selection window? Click on Debug? Double click?
First, time I run it if failed. The second time it worked, but gave a lot of error messages, such as:
“getProcAddress: Unable to resolve ‘glBindFramebuffer”
So I closed it, (File / close all projects and editors.), and selected another example.
I selected Text editor, cliked, play, and it gave error:
Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.”
so I had to select kit again …
(I apologize if this is the wrong forum for this post.)
↧
Customising Installers
I have managed to successfully create an ‘AdminProgram’ which is used to build the installer for my main project. It creates the required config/packages file system correctly, updates all .xml files and copies all the required element into the correct places before building the installer, which is pretty great.
However, I am now looking to customise my installer a little more so that it is able to install a few drivers into the windows registry and at a later date remove existing installs before proceeding with a new one. I have studied the ‘instructions’ ( http://doc-snapshot.qt-project.org/qtifw-1.4/scripting.html#predefined-variables) for some time now and have been unable to quite grasp how exactly these Custom Operations are implemented (where the example code is supposed to be written, how the overridden operations are accessed etc.).
I find that the instruction are a little ambiguous for a programmer as inexperienced as myself and would very much appreciate some help from anyone who can give it?
↧
Failed to find platform after deploy Qt5.2 compiled desktop app
I downloaded and installed qt-windows-opensource-5.2.0-msvc2012-x86_64-offline.exe on Win7, with VS2012.
After successfully compiled a desktop app, I want to deploy it to a different machine. To test it, I removed “QtDir\bin” from my PATH environment variable. The app starts to complain missing various dlls.
I copied all necessary dlls to the same directory as the app executable, until I saw a strange error message:
This application failed to start because it could not find or load the Qt platform plugin “windows”.
After searching the forum, I have created directory containing platform dlls with path
platforms\qwindows.dll
However, the error still persist unless I add back “QtDir\bin” to PATH.
Could someone help find out what could the possible problems?
Thanks.
↧
QT 5.2 Raspberry Compile
Hello all,
i tried to compile qt 5.2 on the raspberry. But i get alwasy follow error. My last try was to add -qt-xcb on the configure flags.
Is there any solution for the problem?
/usr/bin/g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DXCB_USE_XLIB -DXCB_USE_XINPUT2 -DXCB_USE_EGL -DSUPPORT_X11 -DXCB_USE_RENDER -DDFLT_XKB_CONFIG_ROOT=\"/usr/share/X11/xkb\" -DDEFAULT_XKB_RULES=\"evdev\" -DDEFAULT_XKB_MODEL=\"pc105\" -DDEFAULT_XKB_LAYOUT=\"us\" -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PLATFORMSUPPORT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../mkspecs/devices/linux-rasp-pi-g++ -I. -I../../../3rdparty/xcb/include -I../../../3rdparty/xcb/sysinclude -I../../../3rdparty/xkbcommon -I../../../3rdparty/xkbcommon/src -I../../../3rdparty/xkbcommon/src/xkbcomp -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I../../../../include -I../../../../include/QtPlatformSupport -I../../../../include/QtPlatformSupport/5.2.2 -I../../../../include/QtPlatformSupport/5.2.2/QtPlatformSupport -I../../../../include/QtGui/5.2.2 -I../../../../include/QtGui/5.2.2/QtGui -I../../../../include/QtCore/5.2.2 -I../../../../include/QtCore/5.2.2/QtCore -I../../../../include/QtGui -I../../../../include/QtCore -I.moc -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -o .obj/qxcbconnection.o qxcbconnection.cpp
qxcbconnection.cpp: In constructor ‘QXcbConnection::QXcbConnection(QXcbNativeInterface*, bool, const char*)’:
qxcbconnection.cpp:280:45: error: invalid conversion from ‘EGLNativeDisplayType {aka void*}’ to ‘Display* {aka _XDisplay*}’ [-fpermissive]
/usr/include/X11/Xlib-xcb.h:13:19: error: initializing argument 1 of ‘xcb_connection_t* XGetXCBConnection(Display*)’ [-fpermissive]
qxcbconnection.cpp:281:51: error: invalid conversion from ‘EGLNativeDisplayType {aka void*}’ to ‘Display* {aka _XDisplay*}’ [-fpermissive]
/usr/include/X11/Xlib-xcb.h:16:6: error: initializing argument 1 of ‘void XSetEventQueueOwner(Display*, XEventQueueOwner)’ [-fpermissive]
make[6]: *** [.obj/qxcbconnection.o] Error 1
make[6]: Leaving directory `/home/pi/opt/qt5/qtbase/src/plugins/platforms/xcb'
make[5]: *** [sub-xcb-plugin-pro-make_first-ordered] Error 2
make[5]: Leaving directory `/home/pi/opt/qt5/qtbase/src/plugins/platforms/xcb'
make[4]: *** [sub-xcb-make_first] Error 2
make[4]: Leaving directory `/home/pi/opt/qt5/qtbase/src/plugins/platforms'
make[3]: *** [sub-platforms-make_first] Error 2
make[3]: Leaving directory `/home/pi/opt/qt5/qtbase/src/plugins'
make[2]: *** [sub-plugins-make_first] Error 2
make[2]: Leaving directory `/home/pi/opt/qt5/qtbase/src'
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory `/home/pi/opt/qt5/qtbase'
make: *** [module-qtbase-make_first] Error 2
↧
↧
Error Linking VOCE library in Qt
I am trying to use the C++ version of VOCE voice recognition API. It is an API built in Java, with support to C++ as well.
It works totally fine when I am working with VC2010. In vc2010 I have put all the necessary include files in the Vc++ Directories->Include Directories, and the library D:\Program Files\Java\jdk1.7.0_45\lib in Linker->Additional Library Directories, and i added jvm.lib in *Linker->input * And everything works great
However, whenever I am trying to execute it in Qt, I am getting the error:
thread.obj:-1: error: LNK2019: unresolved external symbol __imp__JNI_CreateJavaVM@12 referenced in function "void __cdecl voce::init(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool,bool,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?init@voce@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N100@Z)
This is my .pro content:
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = ProjectX
TEMPLATE = app
INCLUDEPATH += D:\boost_1_55_0 \
D:\voce-0.9.1\src\c++ \
"D:\Program Files\Java\jdk1.7.0_45\include" \
"D:\Program Files\Java\jdk1.7.0_45\include\win32"
LIBS += -LD:\boost_1_55_0\stage\lib \
-L"D:\Program Files\Java\jdk1.7.0_45\lib"
How can I get rid of this error? I am using QT, the latest version which use the Visual c++ 2010 compiler.
Please help!
↧
Qt3D in Qt5
Hello, here:
http://doc-snapshot.qt-project.org/qt3d-1.0/qt3d-building.html
I read:
If you’re looking for Qt 3D on Qt 5, please check for a recent Qt 5 release or source package, as Qt 3D is now a Qt 5 Essential and ships as part of Qt 5 and the Qt SDK
I installed the SDK of 5.2.0 but I can’t find any Qt3D reference. I checked I selected both QtEssential and QtAddOn modules.
Mark
↧
qt msvc mysql driver, ERROR addExclusiveBuilds() requires at least two arguments
I have qt built with msvc, installed the msvs plugin, everything works wonderfully.
I wanted to open a mysql db connection; this failed with “mysql driver not installed” or something like.
No problem. The instructions are clear:
cd QTDIR\src\plugins\sqldrivers\mysql
qmake “INCLUDEPATH+=C:/MySQL/include” “LIBS+=C:/MYSQL/MySQL Server <version>/lib/opt/libmysql.lib” mysql.pro
nmake
This seemed clear, and I replaced the paths with the locations for my headers and lib.
However, I get Project ERROR: addExclusiveBuilds() requires at least two arguments.
I have been unable to locate any posts addressing this sequence of events.
I would be grateful if anyone could suggest a solution. Thank you.
↧
Static build webkit module unkown
I get this error: “:-1: error: Unknown module(s) in QT: webkitwidgets”
When I do a static build using the kit made from this tutorial http://qt-project.org/wiki/How-to-build-a-static-Qt-for-Windows-MinGW
Can anyone help? Thanks.
↧
↧
newbie trying build Qt4 project with maia openSSL library
Hello,
I have a software designed with Qt4 from an other developper and I am trying to build again. I passed some difficulties but now I cannot find solution for a new problem : I have some errors due to incomplete type around QSslConfiguration.
In file *.pro I checked have QT += network
I see in code of Qt there are some macro #ifndef QT_NO_OPENSSL disabling the code after (using Qt Creator IDE). Should I use an openssl option somewhere ?
I am using Qt4.8.5 compiler but may be I should use an older one.
Thank you for your attention.
Vincent
↧
Qt5UiTools.lib not being built Windows/VS2013
Hi,
I’m trying to build using the qt-windows-opensource-5.2.0-msvc2012_opengl-x86_64-offline installation using VS2013 on Windows 7.
It is mostly OK but it isn’t building (or installing to my install directory) the Qt5UiToolsd.lib. I need the QUiLoader class from this library (or did in Qt4, I’m assuming nothing has changed).
I’m using configure parameters as follows:
configure -debug-and-release -developer-build -opensource -confirm-license -mp -platform win32-msvc2013 -qt-style-windows -qt-style-windowsxp -qt-style-windowsvista -opengl desktop
What am I missing here?
Thanks.
↧
Why can't cmake find Qt5LinguistTools?
I’m in the process of ramping up on Qt5 (previously we used Qt4) and I’m encountering a strange problem. My project is based on CMakeLists.txt (not a PRO file) and I had that working fine until I tried to add in translation capability.
I added these lines to my CMakeLists.txt:
file (GLOB tsFiles translations/*.ts )
qt5_add_translation(qmFiles ${tsFiles})
but it told me “Unknown CMake command qt5_add_translation” which I read on the Internet meant I needed to add:
find_package(Qt5LinguistTools REQUIRED)
which I did, but now it gives me this:
CMake Error at CMakeLists.txt:25 (find_package):
By not providing “FindQt5LinguistTools.cmake” in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
“Qt5LinguistTools”, but CMake did not find one.
Could not find a package configuration file provided by “Qt5LinguistTools”
with any of the following names:
Qt5LinguistToolsConfig.cmake
qt5linguisttools-config.cmake
This is on OSX 10.8.5 where I have Qt5 installed in ~/Qt/5.2.0. The file clang_64/lib/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake definitely exists, and seems to be exactly parallel to clang_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake which it isn’t having any problem finding.
So why can cmake find Qt5Widgets but not Qt5LinguistTools?
Thanks,
Chris
p.s. Here’s my entire CMakeLists.txt:
CMAKE_MINIMUM_REQUIRED( VERSION 2.8.9 FATAL_ERROR )
PROJECT(Project)
set(CMAKE_AUTOMOC TRUE)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5LinguistTools REQUIRED)
file (GLOB_RECURSE cppFiles src/*.cpp )
file (GLOB_RECURSE hFiles include/*.h )
file (GLOB uiFiles src/ui/*.ui )
file (GLOB tsFiles translations/*.ts )
qt5_wrap_ui(uihfiles ${uiFiles})
add_executable(Project ${cppFiles} ${hFiles} ${uiFiles})
qt5_use_modules(Project Widgets)
qt5_add_translation(qmFiles ${tsFiles})
include_directories(include)
↧
QT for embedded linux on windows
Hi all!
I’m new to Qt and want to develop an application for embedded linux. can someone please guide me where to start from? I have ubuntu and windows 8 installed on my PC with dual boot. However I’d like to develop on windows if possible. Can anyone please recommend some guide (whether windows or ubuntu) as I need to know about configuration of compiler and environment.
Thanks
↧
↧
Qt Creator 3.0 Welcome Mode not working in VirtualBox VM
I originally installed Qt 5.20 with Qt Creator 3.0 on my Win7 64 bit machine and it worked flawlessly. Then I wanted to install it into a Win7 32 bit virtual machine (using VirtualBox). In the VM I start off on the qt-project.org site and download a version. I’ve tried both the Qt Online Installer for Windows (13 MB) (Info) link and the Qt 5.2.0 for Windows 32-bit (MinGW 4.8, OpenGL, 689 MB) (Info) link. Both installs work and I can compile a simple Hello world demo. However, when Qt starts the Qt Welcome Mode is just a transparent window showing the contents of the desktop. If you change modes and go back to the Welcome mode it will then just show the contents of the previous mode. I would like to have access to the examples and tutorial links. Something similar happened when I did an install in a virtual box for Kubuntu.
I’m using VirtualBox 4.3.6 and I have Guest Additions Installed. I’m running a copy of Win 7 Ultimate. The VM is very clean, it has Chrome installed, the latest Win updates and MS Security Essentials and that’s about it. The virtual hard disk (vdi) has about 50 Gigabytes of free space after the install.
I’ve tried
1. turning off Windows Firewall and MS Security Essential real time protection.
2. running as administrator.
3. running in xp SP2 and SP3, and win95 compatibility modes
4. running with Aero disabled
Nothing has helped. Any suggestions? If it’s known that VirtualBox isn’t compatible I can buy VMWare if that works better.
↧
Can't figure out how to build QSerialPort with 5.2.0
Hi guys,
I’m trying to compile my own set of Windows 64-bit Qt libraries using MSVC2010. In particular, I’m using the -no-icu and -opengl desktop flags. For whatever reason, every time I build the complete set of libraries, it seems to leave out Qt5SerialPort.dll, which is another library my application needs.
I was under the impression that QSerialPort was now part of the standard Qt build from 5.1 onwards. Is there some reason it refuses to build for me? Is there a special flag I need to pass to specifically build that library along with everything else?
If it helps, here is the exact command I was using:
configure.exe -prefix C:\Qt\Qt5.2.0\5.2.0\msvc2010x64 -debug-and-release -opengl desktop -no-icu -no-audio-backend -mp -nomake examples -platform win32-msvc2010
Thanks!
↧
Microsoft Compiler does not recognize #warning (specifically in qglfunctions.h)
I’m hoping that an existing Qt developer will be willing to submit the following patch so that a warning can be issued by any Microsoft C++ compiler, instead of an error about an unrecognized preprocessor command. This is regarding 4.8, but may also apply to 5.x.
diff --git a/src/opengl/qglfunctions.h b/src/opengl/qglfunctions.h
index e142b1e..fce919e 100644
--- a/src/opengl/qglfunctions.h
+++ b/src/opengl/qglfunctions.h
@@ -43,9 +43,14 @@
#define QGLFUNCTIONS_H
#ifdef __GLEW_H__
+#ifdef _MSC_VER
+#pragma message (__FILE__ ": qglfunctions.h is not compatible with GLEW, GLEW defines will be undefined")
+#pragma message (__FILE__ ": To use GLEW with Qt, do not include <QtOpenGL> or <QGLFunctions> after glew.h")
+#else
#warning qglfunctions.h is not compatible with GLEW, GLEW defines will be undefined
#warning To use GLEW with Qt, do not include <QtOpenGL> or <QGLFunctions> after glew.h
#endif
+#endif
#include <QtOpenGL/qgl.h>
↧