trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: February 2012

Re: [trinity-devel] Non fatal tqt3 build error and patch

From: "Timothy Pearson" <kb9vqf@...>
Date: Tue, 28 Feb 2012 15:05:36 -0600
> Building tqt3 from GIT updated today. I received the following non fatal
> error message:
>
> ====================================================
> cd qmag && make -f Makefile
> make[3]: Entering directory `/dev/shm/tqt3/examples/qmag'
> /dev/shm/tqt3/bin/moc qmag.cpp -o .moc/release-shared-mt/qmag.moc
> g++ -c -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden
> -I/usr/include/mysql -I/usr/include/freetype2/freetype -fno-exceptions
> -Wall -W -O2 -D_REENTRANT  -DQT_TABLET_SUPPORT -DQT_NO_DEBUG
> -DQT_THREAD_SUPPORT -DQT_SHARED -I/dev/shm/tqt3/mkspecs/linux-g++ -I.
> -I/usr/include/freetype2 -I../../include -I/usr/include
> -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qmag.o qmag.cpp
> g++ -fno-exceptions  -Wl,-rpath,/opt/trinity/lib -o qdir
> .obj/release-shared-mt/qdir.o .obj/release-shared-mt/dirview.o
> .obj/release-shared-mt/moc_ntqdir.o .obj/release-shared-mt/moc_dirview.o
> -L/dev/shm/tqt3/lib -L/usr/X11R6/lib -ltqt-mt -ljpeg -lpng -lz -lXi
> -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig
> -lXext -lX11 -lm -lSM -lICE -ldl -lpthread
> make[3]: Leaving directory `/dev/shm/tqt3/examples/qdir'
> cd qtl && make -f Makefile
> make[3]: Entering directory `/dev/shm/tqt3/examples/qtl'
> g++ -c -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden
> -I/usr/include/mysql -I/usr/include/freetype2/freetype -fno-exceptions
> -Wall -W -O2 -D_REENTRANT  -DQT_TABLET_SUPPORT -DQT_NO_DEBUG
> -DQT_THREAD_SUPPORT -DQT_SHARED -I/dev/shm/tqt3/mkspecs/linux-g++ -I.
> -I/usr/include/freetype2 -I../../include -I/usr/include
> -I.moc/release-shared-mt/ -o .obj/release-shared-mt/qvaluelistiterator.o
> qvaluelistiterator.cpp
> g++ -c -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden
> -I/usr/include/mysql -I/usr/include/freetype2/freetype -fno-exceptions -w
> -O2 -D_REENTRANT  -DQT_INTERNAL_ICONVIEW -DQT_INTERNAL_WORKSPACE
> -DQT_INTERNAL_CANVAS -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
> -DQT_SHARED -I/dev/shm/tqt3/mkspecs/linux-g++ -I. -I/usr/include/freetype2
> -I. -I../../include -I/usr/include -I/usr/include
> -I.moc/release-shared-mt/ -o .obj/release-shared-mt/moc_glcontrolwidget.o
> .moc/release-shared-mt/moc_glcontrolwidget.cpp
> g++ -c -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden
> -I/usr/include/mysql -I/usr/include/freetype2/freetype -fno-exceptions -w
> -O2 -D_REENTRANT  -DQT_INTERNAL_ICONVIEW -DQT_INTERNAL_WORKSPACE
> -DQT_INTERNAL_CANVAS -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
> -DQT_SHARED -I/dev/shm/tqt3/mkspecs/linux-g++ -I. -I/usr/include/freetype2
> -I. -I../../include -I/usr/include -I/usr/include
> -I.moc/release-shared-mt/ -o .obj/release-shared-mt/moc_gltexobj.o
> .moc/release-shared-mt/moc_gltexobj.cpp
> qmag.cpp: In constructor 'MagWidget::MagWidget(TQWidget*, const char*)':
> qmag.cpp:165: error: 'qApp' was not declared in this scope
> make[3]: [.obj/release-shared-mt/qmag.o] Error 1 (ignored)
> g++ -fno-exceptions  -Wl,-rpath,/opt/trinity/lib -o qmag
> .obj/release-shared-mt/qmag.o    -L/dev/shm/tqt3/lib -L/usr/X11R6/lib
> -ltqt-mt -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor -lXinerama
> -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread
> g++: .obj/release-shared-mt/qmag.o: No such file or directory
> make[3]: [qmag] Error 1 (ignored)
> ====================================================
>
>
> The following patch seemed to resolve the problem:
>
>
> ====================================================
> diff -urN tqt3/examples/qmag/qmag.cpp tqt3.new/examples/qmag/qmag.cpp
> --- tqt3/examples/qmag/qmag.cpp 2012-02-28 09:49:59.000000000 -0600
> +++ tqt3.new/examples/qmag/qmag.cpp 2012-02-28 14:22:29.000000000 -0600
> @@ -162,7 +162,7 @@
>
>      setMouseTracking( TRUE );  // and do let me know what pixel I'm at,
> eh?
>
> -    grabAround( TQPoint(grabx=qApp->desktop()->width()/2,
> graby=qApp->desktop()->height()/2) );
> +    grabAround( TQPoint(grabx=tqApp->desktop()->width()/2,
> graby=tqApp->desktop()->height()/2) );
>  }
>
>
> ====================================================
>
> Darrell

As you probably guessed I recently pushed another compatibility change
through to tqt3.

Good catch!  I am currently running a check to ensure that no other
instances of that form were missed and will commit the fix shortly.

Tim