trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: December 2013

Compiling TQt3 with -debug/-release --- reversed?

From: "Darrell Anderson" <darrella@...>
Date: Thu, 12 Dec 2013 21:08:51 -0600
All,

I am noticing a peculiarity when I compile TQt3. When I compile 
with the -release option, my final package size is about 35MB 
(txz). When I compile with the -debug option the final package size 
is about 13.6 MB. I expected the opposite.

When I use -debug the build log is filled with -DQT_NO_DEBUG. When 
I use -release I do not see -DQT_NO_DEBUG at all in the build log. 
I expected the opposite.

I am presuming -debug means compiling with debugging symbols and -
release means do not compile debugging symbols.

Here are my build script configure options, where $DEBUG is either -
debug or -release:

echo "yes" | \
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
  -v \
  -prefix $INSTALL_PREFIX \
  -libdir $LIBDIR \
  $DEBUG \
  -I/usr/include/mysql \
  -I/usr/include/freetype2/freetype \
  -L/usr/lib${LIBDIRSUFFIX} \
  -qt-imgfmt-png \
  -qt-imgfmt-mng \
  -qt-imgfmt-jpeg \
  -qt-gif \
  -qt-style-motif \
  -system-zlib \
  -system-libpng \
  -system-libmng \
  -system-libjpeg \
  -shared \
  -no-pch \
  -thread \
  -stl \
  -no-exceptions \
  -platform ${PLATFORM} \
  -cups \
  -ipv6 \
  -nis \
  -sm \
  -largefile \
  -xshape \
  -xinerama \
  -xcursor \
  -xrandr \
  -xrender \
  -tablet \
  -xkb \
  -xft \
  -plugin-imgfmt-mng \
  -plugin-sql-mysql \
  -plugin-sql-sqlite \
  -plugin-style-cde \
  -plugin-style-compact \
  -plugin-style-motifplus \
  -plugin-style-platinum \
  -plugin-style-sgi \
  -plugin-style-windows \
  -lfontconfig \
  -inputmethod \
  -enable-opengl \
  -dlopen-opengl \
  $GLIBMAINLOOP \
  || exit 1

Am I doing something wrong or are the -debug/-release configure 
options reversed?

Darrell