trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: February 2012

Non fatal tqt3 build error and patch

From: Darrell Anderson <humanreadable@...>
Date: Tue, 28 Feb 2012 12:58:36 -0800 (PST)
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