Message: previous - next
Month: August 2012

Re: [trinity-devel] tdevelop FTBFS 3.5.13-sru, error: 'App' was not declared in this scope

From: "David C. Rankin" <drankinatty@...>
Date: Fri, 10 Aug 2012 10:18:36 -0500
On 08/10/2012 09:34 AM, David C. Rankin wrote:
> On 08/10/2012 09:30 AM, David C. Rankin wrote:
>>    If there was a problem with my tqtinterface, I would have expected to see
>> it pop up in a lot more places. The only includes in listeditor.ui.h are:
>> #include <tqheader.h>
>> #include <tqapplication.h>
>> Will that pull in the tqApp->qApp definition?
>    I find the definition in /usr/include/tqt/tqt.h:
> tqt.h:#define tqApp     qApp
> Is there any reason you can think of that tdevelop/kdevdesigner/designer would
> miss pulling it in? CMakeLists.txt?

Something is really strange here! I included tqt.h directly in the 
listeditor.ui.h file and it still complains about no App:

10:03 archangel:/dat_e/ch35/david/build> head -n20 
** ui.h extension file, included from the uic-generated form implementation.
** If you wish to add, delete or rename slots use Qt Designer which will
** update this file, preserving your code. Create an init() slot in place of
** a constructor, and a destroy() slot in place of a destructor.

#include <tqheader.h>
#include <tqapplication.h>
#include <tqt.h>

Same error. I also notice tqt.h is included directly in the compile command as 

[ 89%] Building CXX object 
cd /build/src/build/kdevdesigner/designer && /usr/bin/c++ 
-Dlibkdevdesignerpart_module_EXPORTS -DHAVE_CONFIG_H -DQT_NO_ASCII_CAST 
-DQT_THREAD_SUPPORT -D_REENTRANT -DDESIGNER -march=x86-64 -mtune=generic -O2 
-pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 
-Wno-deprecated -include tqt.h -fPIC -I/build/src/build/kdevdesigner/designer 
-I/build/src/tdevelop/lib/interfaces/external -I/opt/trinity/include 
-I/opt/qt3/include -I/usr/include/tqt    -include tqt.h -UQT_NO_ASCII_CAST -o 
CMakeFiles/libkdevdesignerpart-module.dir/listeditor.cpp.o -c 
In file included from /build/src/build/kdevdesigner/designer/listeditor.cpp:22:0:
/build/src/build/kdevdesigner/designer/listeditor.ui.h: In member function 
'virtual void ListEditor::addItem()':
/build/src/build/kdevdesigner/designer/listeditor.ui.h:34:5: error: 'App' was 
not declared in this scope
make[2]: *** 
Error 1
make[2]: Leaving directory `/build/src/build'
make[1]: *** 
[kdevdesigner/designer/CMakeFiles/libkdevdesignerpart-module.dir/all] Error 2
make[1]: Leaving directory `/build/src/build'
make: *** [all] Error 2

   With '#define tqApp     qApp' in tqt.h, why the heck is this failing when 
it gets to:

void ListEditor::addItem()
     QListViewItem *i = new QListViewItem( listview, listview->lastItem() );
     i->setRenameEnabled( 0, TRUE );
     i->startRename( 0 );

SMACK!!! (where the hell is the 'q' or 'tq' in front of 'App'?)

SOMEBODY DROPPED A 'q' OR 'tq' in the CMake files. It is 
'tqApp->processEvents();' in the GIT tree, but 'App->processEvents();' when it 
gets to the CMake build/ directory...... Who is the guilty dog...

David C. Rankin, J.D.,P.E.