Message: previous - next
Month: April 2012

Building against Qt3 Fails

From: Darrell Anderson <humanreadable@...>
Date: Sat, 7 Apr 2012 18:34:51 -0700 (PDT)
I decided to build against Qt3 rather than TQt3. First time in a long time.

The patch we used recently to build avahi-tqt against TQt3 can't be used when building against Qt3. The patch is good only when building against TQt3. I presume the proper way to implement the patch is to add some preprocessor checks so packagers don't have to worry about the issue. For myself I added the following test in my avahi-tqt build script:

if [ -r ${PREFIX}/lib/pkgconfig/tqt-mt.pc ] || [ -r /usr/lib/pkgconfig/tqt-mt.pc ]; then
  cat $CWD/avahi-tqt-fixes.diff | patch -p1 --verbose --no-backup-if-mismatch || exit 1

tdebase fails to build:

/dev/shm/ error: 't_xdisplay' was not declared in this scope

As neither tqt_xdisplay nor qt_xdisplay is used in the source file, why does the file compile against TQt3 and not Qt3?