Bug#576207: libqt4-dev: Compiling a source that uses Wine headers and QT fails
Package: libqt4-dev
Version: 4.4.3-1+lenny1
Severity: normal
I've developed v3c-dcom http://sourceforge.net/projects/v3c-dcom/ .
It uses Wine headers and on Debian amd64 this requires that
-D_WIN64 -D_USRDLL -DWINE_UNICODE_NATIVE -fshort-wchar
are included on the command line, as well as
-D__linux__ -D_FILE_OFFSET_BITS=64 -DLINUX -D_REENTRANT
Unfortunately this is enough for QtCore/qglobal.h to define Q_WS_WIN.
In /usr/include/qt4/QtCore/qglobal.h, line 189:
#elif !defined(SAG_COM)...
needs to be changed to
#elif !(defined(SAG_COM) || defined(LINUX))
to account for this, at least that's what I've done on my system to fix this.
Obviously there are a couple of other possible approaches.
Should I define my own preprocessor variable, like V3C_COM ?
Philip
-- System Information:
Debian Release: 5.0.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libqt4-dev depends on:
ii libc6 2.7-18lenny2 GNU C Library: Shared libraries
ii libgcc1 1:4.4.2-9 GCC support library
ii libqt4-assistant 4.4.3-1+lenny1 Qt 4 assistant module
ii libqt4-dbus 4.4.3-1+lenny1 Qt 4 D-Bus module
ii libqt4-designer 4.4.3-1+lenny1 Qt 4 designer module
ii libqt4-help 4.4.3-1+lenny1 Qt 4 help module
ii libqt4-network 4.4.3-1+lenny1 Qt 4 network module
ii libqt4-qt3support 4.4.3-1+lenny1 Qt 3 compatibility library for Qt
ii libqt4-script 4.4.3-1+lenny1 Qt 4 script module
ii libqt4-sql 4.4.3-1+lenny1 Qt 4 SQL module
ii libqt4-svg 4.4.3-1+lenny1 Qt 4 SVG module
ii libqt4-test 4.4.3-1+lenny1 Qt 4 test module
ii libqt4-webkit 4.4.3-1+lenny1 Qt 4 WebKit module
ii libqt4-xml 4.4.3-1+lenny1 Qt 4 XML module
ii libqt4-xmlpatterns 4.4.3-1+lenny1 Qt 4 XML patterns module
ii libqtcore4 4.4.3-1+lenny1 Qt 4 core module
ii libqtgui4 4.4.3-1+lenny1 Qt 4 GUI module
ii libstdc++6 4.4.2-9 The GNU Standard C++ Library v3
ii qt4-qmake 4.4.3-1+lenny1 Qt 4 qmake Makefile generator tool
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
Versions of packages libqt4-dev recommends:
ii libqt4-opengl-dev 4.4.3-1+lenny1 Qt 4 OpenGL library development fi
Versions of packages libqt4-dev suggests:
pn firebird2.0-dev <none> (no description available)
pn libiodbc2-dev <none> (no description available)
ii libmysqlclient15-dev 5.0.51a-24+lenny3 MySQL database development files
ii libpq-dev 8.3.9-0lenny1 header files for libpq5 (PostgreSQ
pn libsqlite0-dev <none> (no description available)
ii libsqlite3-dev 3.5.9-6 SQLite 3 development files
ii qt4-dev-tools 4.4.3-1+lenny1 Qt 4 development tools
ii qt4-doc 4.4.3-1+lenny1 Qt 4 API documentation
-- no debconf information
Reply to: