On 10/04/2012 10:19 AM, Slávek Banko wrote:
On Thursday 04 of October 2012 10:55:46 Jerry
Nettrouer II wrote:
[100%] Building CXX object
tqt3integration/libqtkde/CMakeFiles/qtkde-shared.dir/qtkde.cpp.o
cd /tmp/tdebase-3.5.13.1/build/tqt3integration/libqtkde&&
/usr/bin/c++ -Dqtkde_shared_EXPORTS -DHAVE_CONFIG_H -O2 -march=i486
-mtune=i686 -fvisibility=hidden -fvisibility-inlines-hidden
-DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h
-I/usr/lib/qt3/include -I/usr/include/tqt -DQT_NO_ASCII_CAST
-DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
-DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -fPIC
-I/tmp/tdebase-3.5.13.1/build/tqt3integration/libqtkde
-I/tmp/tdebase-3.5.13.1/tqt3integration/libqtkde
-I/tmp/tdebase-3.5.13.1/build
-I/tmp/tdebase-3.5.13.1/build/tqt3integration/utils
-I/usr/lib/qt3/include -I/usr/include/tqt -o
CMakeFiles/qtkde-shared.dir/qtkde.cpp.o -c
/tmp/tdebase-3.5.13.1/tqt3integration/libqtkde/qtkde.cpp
In file included from
/tmp/tdebase-3.5.13.1/tqt3integration/libqtkde/qtkde.cpp:145:0:
/tmp/tdebase-3.5.13.1/build/tqt3integration/utils/tqtkde_functions.cpp:
In function 'QStringList getOpenFileNames(const QString&, QString*, long
int, const QCString&, const QString&, QString*, bool)':
/tmp/tdebase-3.5.13.1/build/tqt3integration/utils/tqtkde_functions.cpp:34:2
62: error: 'tqAppClass' was not declared in this scope
/tmp/tdebase-3.5.13.1/build/tqt3integration/utils/tqtkde_functions.cpp:
In function 'QString getSaveFileName(const QString&, const QString&,
QString*, long int, const QCString&, const QString&, QString*)':
/tmp/tdebase-3.5.13.1/build/tqt3integration/utils/tqtkde_functions.cpp:64:2
70: error: 'tqAppClass' was not declared in this scope
/tmp/tdebase-3.5.13.1/build/tqt3integration/utils/tqtkde_functions.cpp:
In function 'QString getExistingDirectory(const QString&, long int,
const QCString&, const QString&)':
/tmp/tdebase-3.5.13.1/build/tqt3integration/utils/tqtkde_functions.cpp:93:9
4: error: 'tqAppClass' was not declared in this scope
/tmp/tdebase-3.5.13.1/build/tqt3integration/utils/tqtkde_functions.cpp:
In function 'QColor getColor(const QColor&, long int, const QCString&)':
/tmp/tdebase-3.5.13.1/build/tqt3integration/utils/tqtkde_functions.cpp:116:
72: error: 'tqAppClass' was not declared in this scope
/tmp/tdebase-3.5.13.1/build/tqt3integration/utils/tqtkde_functions.cpp:
In function 'QFont getFont(bool*, const QFont&, long int, const
QCString&)':
/tmp/tdebase-3.5.13.1/build/tqt3integration/utils/tqtkde_functions.cpp:139:
102: error: 'tqAppClass' was not declared in this scope
/tmp/tdebase-3.5.13.1/build/tqt3integration/utils/tqtkde_functions.cpp:
In function 'int messageBox1(int, long int, const QString&, const
QString&, int, int, int)':
/tmp/tdebase-3.5.13.1/build/tqt3integration/utils/tqtkde_functions.cpp:165:
115: error: 'tqAppClass' was not declared in this scope
/tmp/tdebase-3.5.13.1/build/tqt3integration/utils/tqtkde_functions.cpp:
In function 'int messageBox2(int, long int, const QString&, const
QString&, const QString&, const QString&, const QString&, int,
int)':
/tmp/tdebase-3.5.13.1/build/tqt3integration/utils/tqtkde_functions.cpp:190:
160: error: 'tqAppClass' was not declared in this scope
make[2]: ***
[tqt3integration/libqtkde/CMakeFiles/qtkde-shared.dir/qtkde.cpp.o] Error 1
make[2]: Leaving directory `/tmp/tdebase-3.5.13.1/build'
make[1]: *** [tqt3integration/libqtkde/CMakeFiles/qtkde-shared.dir/all]
Error 2
make[1]: Leaving directory `/tmp/tdebase-3.5.13.1/build'
make: *** [all] Error 2
Are you sure you have all the source code in version equal
to 3.5.13.1?
tqAppClass is not located anywhere in the entire source tree for 3.5.13.1.
If you plan to build the entire TDE 3.5.13.1, I recommend to checkout from GIT
complete source tree - all modules:
git clone -b 3.5.13-sru
http://scm.trinitydesktop.org/scm/git/tde
cd tde
scripts/switch_all_submodules_to_head_and_clean
Slavek
"tqAppClass is not located anywhere in the entire source tree for 3.5.13.1"
Finding tqAppClass
using the command:
git clone
http://system@scm.trinitydesktop.org/scm/git/tdebase
cd tdebase
git submodule init
git submodule update
Findind tqAppClass
In tdebase/tqt3integration/utils/gen.cpp
Declaring the structure of Arg
struct Arg
{
Arg() : ignore( false ), needs_deref( false ), const_ref( false ),
out_argument( false ), parent( false ) {}
TQString name;
TQString type;
TQString orig_type;
TQString orig_conversion;
bool ignore;
bool needs_deref;
bool const_ref;
bool out_argument;
TQString conversion;
TQString back_conversion;
TQString create; // <- tqAppClass gets declared as
bool parent;
};
then within the function declaration of ...
void parseFunction( const TQString& details )
arg.create = "tqAppClass";
Then during the build prossess it can be found in
tdebase/build/tqt3integration/utils/tqtkde_functions.cpp
TQStringList getOpenFileNames( const TQString& filter, TQString*
workingDirectory, long parent, const TQCString& name, const TQString&
caption, TQString* selectedFilter, bool multiple )
{
if( tqt_xdisplay() != NULL )
XSync( tqt_xdisplay(), False );
if( parent == 0 )
DCOPRef( "kded", "MainApplication-Interface" ).call(
"updateUserTimestamp", tqt_x_time );
TQByteArray data, replyData;
TQCString replyType;
TQDataStream datastream( data, IO_WriteOnly );
datastream << convertFileFilter( filter ) << ( workingDirectory !=
NULL ? *workingDirectory : TQString()) << parent << name << caption
<<
convertFileFilter( ( selectedFilter != NULL ? *selectedFilter :
TQString()) ) << multiple << tqAppName() << tqAppClass(); // <- This
is
the first place it errors out
if( !dcopClient()->call( "kded",
"kdeintegration","getOpenFileNames(TQString,TQString,long,TQCString,TQString,TQString,bool,TQCString,TQCString)",
data, replyType, replyData, true ))
{
TQStringList ret;
dcopTypeInit( ret ); // set to false/0/whatever
return ret;
}
TQDataStream replystream( replyData, IO_ReadOnly );
TQStringList ret;
replystream >> ret;
TQString workingDirectory_dummy;
TQString selectedFilter_dummy;
replystream >> ( workingDirectory != NULL ? *workingDirectory :
workingDirectory_dummy ) >> selectedFilter_dummy;
if( selectedFilter != NULL )
*selectedFilter = convertBackFileFilter( selectedFilter_dummy );
return ret;
}
TQString getSaveFileName( const TQString& initialSelection, const
TQString& filter,
TQString* workingDirectory, long parent, const TQCString& name,
const TQString& caption,
TQString* selectedFilter )
{
if( tqt_xdisplay() != NULL )
XSync( tqt_xdisplay(), False );
if( parent == 0 )
DCOPRef( "kded", "MainApplication-Interface" ).call(
"updateUserTimestamp", tqt_x_time );
TQByteArray data, replyData;
TQCString replyType;
TQDataStream datastream( data, IO_WriteOnly );
datastream << initialSelection << convertFileFilter( filter ) << (
workingDirectory != NULL ? *workingDirectory : TQString()) << parent <<
name << caption << convertFileFilter( ( selectedFilter != NULL ?
*selectedFilter : TQString()) ) << tqAppName() << tqAppClass(); // <-
This is the second place it errors out
if( !dcopClient()->call( "kded",
"kdeintegration","getSaveFileName(TQString,TQString,TQString,long,TQCString,TQString,TQString,TQCString,TQCString)",
data, replyType, replyData, true ))
{
TQString ret;
dcopTypeInit( ret ); // set to false/0/whatever
return ret;
}
TQDataStream replystream( replyData, IO_ReadOnly );
TQString ret;
replystream >> ret;
TQString workingDirectory_dummy;
TQString selectedFilter_dummy;
replystream >> ( workingDirectory != NULL ? *workingDirectory :
workingDirectory_dummy ) >> selectedFilter_dummy;
if( selectedFilter != NULL )
*selectedFilter = convertBackFileFilter( selectedFilter_dummy );
return ret;
}