Bug#396034: closed by Brian Nelson [EMAIL PROTECTED] (Re: Bug#396034: qmake-qt4: CONFIG+=opengl doesn't add QtOpenGL include path or link -lQtOpenGL)

2006-10-31 Thread Tim Day
On Mon, 2006-10-30 at 19:48 -0800, Debian Bug Tracking System wrote:
 Brian Nelson wrote:
  Use QT += opengl, not CONFIG.  See the Qt4 qmake documentation for
  more info.

Thanks for the tip; QT += opengl (instead of CONFIG += opengl) does
exactly what I was expecting.

However, the current etch docs may be out of date.  My
  file:///usr/share/qt4/doc/html/qmake-variable-reference.html
makes no mention at all of a QT variable, and lists opengl along
with all the others used via CONFIG.

Tim




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#396034: qmake-qt4: CONFIG+=opengl doesn't add QtOpenGL include path or link -lQtOpenGL

2006-10-29 Thread Tim Day
Package: qt4-dev-tools
Version: 4.1.4-1.1
Severity: minor


I have a Qt4 app built from a qmake-qt4 / .pro generated Makefile.
Builds and works fine.

I wanted to add some OpenGL code to it, using QGLWidget.
I changed the CONFIG line of the .pro file from
  CONFIG+= qt thread stl exceptions precompile_header release
to 
  CONFIG+= qt opengl thread stl exceptions precompile_header release

I was suprised that all this seems to do was to add -lGLU and -lGl
to the Makefile LIBS path: to get a QGLWidget I had to include
  #include QtOpenGL/QGLWidget
(rather than simply QGLWidget as expected from the docs)
and to get a successful link I had to manually add 
  LIBS += -lQtOpenGL
to the .pro file.

I'd expect adding opengl to the .pro CONFIG to add the QtOpenGL
directory to the Makefile's -I include paths, and -lQtOpenGL to the
linked libs.  (This is certainly the case with the qmake in
qt3 3.3.4 in Sarge).

If this is fixed in the qmake with 4.2.1, apologies.


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686-smp
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages qt4-dev-tools depends on:
ii  libaudio2   1.8-2The Network Audio System (NAS). (s
ii  libc6   2.3.6.ds1-4  GNU C Library: Shared libraries
ii  libfontconfig1  2.4.1-2  generic font configuration library
ii  libfreetype62.2.1-5  FreeType 2 font engine, shared lib
ii  libgcc1 1:4.1.1-13   GCC support library
ii  libice6 1:1.0.1-2X11 Inter-Client Exchange library
ii  libpng12-0  1.2.8rel-5.2 PNG library - runtime
ii  libqt4-core 4.1.4-1.1Qt 4 core non-GUI functionality ru
ii  libqt4-gui  4.1.4-1.1Qt 4 core GUI functionality runtim
ii  libsm6  1:1.0.1-3X11 Session Management library
ii  libstdc++6  4.1.1-13 The GNU Standard C++ Library v3
ii  libx11-62:1.0.3-2X11 client-side library
ii  libxcursor1 1.1.7-4  X cursor management library
ii  libxext61:1.0.1-2X11 miscellaneous extension librar
ii  libxi6  1:1.0.1-3X11 Input extension library
ii  libxinerama11:1.0.1-4.1  X11 Xinerama extension library
ii  libxrandr2  2:1.1.0.2-4  X11 RandR extension library
ii  libxrender1 1:0.9.1-3X Rendering Extension client libra
ii  libxt6  1:1.0.2-2X11 toolkit intrinsics library
ii  zlib1g  1:1.2.3-13   compression library - runtime

Versions of packages qt4-dev-tools recommends:
ii  libqt4-dev4.1.4-1.1  Qt 4 development files
pn  qt4-designer  none (no description available)
ii  qt4-doc   4.1.4-1.1  Qt 4 API documentation

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]