Any automake gurus want to help with this one?
The new tqca-tls package will not build with tqt3.
The problem appears to be the configure script can't find the include/tqt or include/tqt3 header files or both.
Take a look at the config.log. The error messages are all similar to what we have been discussing recently with building packages against tqt3.
The challenge is how to patch the configure files.
Thanks!
Darrell
Darrell,
thx for the update. This is some very useful information, like tqtinterface has to be installed in /usr wich I didn't do :(. That might also be the reason why tdelibs fails to build with automake complaining that qt4 cannot be found although tqtinterface has been build only with qt3 and no kde4/qt4 is found anywhere on my system. I'll give your workaround a try tonight. If you find the time, please post the info on the howto pages to avoid double posts :-)
Cheers,
Nic
-----Ursprüngliche Nachricht-----
Von: "Darrell Anderson" <humanreadable(a)yahoo.com>
Gesendet: Jan 26, 2012 7:31:04 PM
An: trinity-devel(a)lists.pearsoncomputing.net
Betreff: Re: [trinity-devel] tdelibs refuses to build
>> another tdelibs cmake build issue:
>>
>> /home/temp/tde/main/tdelibs/tdecore/klibloader.cpp: In
>> member function 'KLibrary* KLibLoader::globalLibrary(const
>> char*)':
>> /hometemp/tde/main/tdelibs/tdecore/klibloader.cpp:377:23:
>> error: 'lt_dlopen_flag' was not declared in this scope
>> make[2]: ***
>> [tdecore/CMakeFiles/tdecore-shared.dir/klibloader.cpp.o]
>> Error 1
>>
>> source is latest git.
>>
>> cmake command was:
>>
>> cmake ../tde/main/tdelibs
>> -DCMAKE_INSTALL_PREFIX=/opt/trinity
>> -DCMAKE_VERBOSE_MAKEFILE=ON -DWITH_QT3=ON
>> -DQTDIR=/opt/lib/qt3-3.3.8d
>> -DQT_LIBRARY_DIRS=/opt/lib/qt3-3.3.8d/lib -DBUILD_ALL=ON
>> -DCMAKE_SKIP_RPATH=OFF
>>
>> Any Clues?
>
>Are you building with tqt3 or qt3? If tqt3, then check that tqtinterface is building with the internal cmake variable TQT_REAL_TQT=1. That internal cmake variable is set in CMakeCache.txt, which gets generated during the configure process.
>
>Also build the core packages with both tqt3 and qt3. If tdelibs builds with qt3 but not tqt3, then that information will help resolve bugs with tqt3.
>
>Another oddball bug is with -DWITH_GCC_VISIBILITY=ON in arts that option must be set to ON in tdelibs and tdebase too. I have seen tdebase fail when that option was set to ON in arts but OFF in tdelibs. So set all three to ON or OFF only.
>
>Also know that tqtinterface must be installed to /usr. There remain some hard-coding in some of the packages that look for tqtinterface only in /usr.
>
>Darrell
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: trinity-devel-unsubscribe(a)lists.pearsoncomputing.net
>For additional commands, e-mail: trinity-devel-help(a)lists.pearsoncomputing.net
>Read list messsages on the Web archive: http://trinity-devel.pearsoncomputing.net/
>Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
>
___________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
Hi Folks,
another tdelibs cmake build issue:
/home/temp/tde/main/tdelibs/tdecore/klibloader.cpp: In member function 'KLibrary* KLibLoader::globalLibrary(const char*)':
/hometemp/tde/main/tdelibs/tdecore/klibloader.cpp:377:23: error: 'lt_dlopen_flag' was not declared in this scope
make[2]: *** [tdecore/CMakeFiles/tdecore-shared.dir/klibloader.cpp.o] Error 1
source is latest git.
cmake command was:
cmake ../tde/main/tdelibs -DCMAKE_INSTALL_PREFIX=/opt/trinity -DCMAKE_VERBOSE_MAKEFILE=ON -DWITH_QT3=ON -DQTDIR=/opt/lib/qt3-3.3.8d -DQT_LIBRARY_DIRS=/opt/lib/qt3-3.3.8d/lib -DBUILD_ALL=ON -DCMAKE_SKIP_RPATH=OFF
Any Clues?
Regards
Nic
___________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
We have discussed how we want to maintain some of the automake files in the source tree after a package is converted to cmake. Those files provide us an historical record of what was.
I notice the subdirs text file no longer is included. That file played a role with using the DO_NOT_COMPILE environment variable, which is helpful with troubleshooting. The DO_NOT_COMPILE options are replaced in cmake with -DWITH options, but the subdirs text file lets us know the cmake conversion is good.
Could we get those subdirs files restored to the sources?
Darrell
>> Well that doesn't look right. :-) Can you also post
>> your tmoc and
>> tqt-replace-stream files (and also verify that there is only
>> one of each
>> file on your system)?
> http://humanreadable.nfshost.com/trinity/build_logs/tmoc
> http://humanreadable.nfshost.com/trinity/build_logs/tqt-replace
> http://humanreadable.nfshost.com/trinity/build_logs/tqt-replace-stream
Only one of all three installed.
> Darrell
OK, I see the problem. Now to figure out why it happens... :-)
In the tqtinterface qtinterface/CMakeLists.txt file, there is an if
statement that looks like this:
if ( NOT HAVE_REAL_TQT )
For anything to work properly on native tqt3, HAVE_REAL_TQT *must* be set.
Yet in the CMakeCache.txt file you sent earlier, HAVE_REAL_TQT does not
show up anywhere.
If HAVE_REAL_TQT was set, the string "Native TQt3 detected" needs to show
up in the tqtinterface build log. Once again I don't see it anywhere in
the build log you sent earlier.
There is a chunk of logic in the tqtinterface ConfigureChecks.cmake file
that looks like this:
if( NOT DEFINED QT_INCLUDE_DIR )
if( QT_PREFIX_DIR STREQUAL "/usr" )
if( EXISTS "${QT_PREFIX_DIR}/include/tqt${QT_VERSION}" )
set( QT_INCLUDE_DIR "${QT_PREFIX_DIR}/include/tqt${QT_VERSION}" )
set( HAVE_REAL_TQT ON CACHE BOOL "Native TQt3 detected" )
Note the number of ways that the set(HAVE_REAL_TQT) statement can be
bypassed. This logic is incomplete and needs to be repaired.
Specifically, I will need to figure out a way for CMake to load the
qglobal.h file and unambiguously determine the nature of the Qt version
installed.
Tim
I am unable to build tdelibs when I use tqt3 rather than qt3. I can build tdelibs with qt3.
GIT 2805.
Build log failure:
In file included from /dev/shm/tdelibs/dcop/dcopclient.cpp:2285:
/dev/shm/tdelibs.build/dcop/dcopclient.moc:121: error: ISO C++ forbids declaration of 'QCString' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:121: error: expected ',' or '...' before '&' token
/dev/shm/tdelibs.build/dcop/dcopclient.moc:121: error: prototype for 'void DCOPClient::applicationRegistered(int)' does not match any in class 'DCOPClient'
/dev/shm/tdelibs/dcop/dcopclient.h:745: error: candidate is: void DCOPClient::applicationRegistered(const TQCString&)
/dev/shm/tdelibs.build/dcop/dcopclient.moc:134: error: ISO C++ forbids declaration of 'QCString' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:134: error: expected ',' or '...' before '&' token
/dev/shm/tdelibs.build/dcop/dcopclient.moc:134: error: prototype for 'void DCOPClient::applicationRemoved(int)' does not match any in class 'DCOPClient'
/dev/shm/tdelibs/dcop/dcopclient.h:754: error: candidate is: void DCOPClient::applicationRemoved(const TQCString&)
/dev/shm/tdelibs.build/dcop/dcopclient.moc:166: error: ISO C++ forbids declaration of 'QCString' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:166: error: expected ',' or '...' before '&' token
/dev/shm/tdelibs.build/dcop/dcopclient.moc:166: error: prototype for 'void DCOPClient::callBack(int, int)' does not match any in class 'DCOPClient'
/dev/shm/tdelibs/dcop/dcopclient.h:794: error: candidate is: void DCOPClient::callBack(int, const TQCString&, const TQByteArray&)
/dev/shm/tdelibs.build/dcop/dcopclient.moc: In member function 'virtual bool DCOPClient::qt_emit(int, TQUObject*)':
/dev/shm/tdelibs.build/dcop/dcopclient.moc:196: error: ISO C++ forbids declaration of 'type name' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:196: error: ISO C++ forbids declaration of 'type name' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:196: error: expected primary-expression before 'const'
/dev/shm/tdelibs.build/dcop/dcopclient.moc:196: error: expected ')' before 'const'
/dev/shm/tdelibs.build/dcop/dcopclient.moc:197: error: ISO C++ forbids declaration of 'type name' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:197: error: ISO C++ forbids declaration of 'type name' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:197: error: expected primary-expression before 'const'
/dev/shm/tdelibs.build/dcop/dcopclient.moc:197: error: expected ')' before 'const'
/dev/shm/tdelibs.build/dcop/dcopclient.moc:200: error: ISO C++ forbids declaration of 'type name' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:200: error: ISO C++ forbids declaration of 'type name' with no type
/dev/shm/tdelibs.build/dcop/dcopclient.moc:200: error: expected primary-expression before 'const'
/dev/shm/tdelibs.build/dcop/dcopclient.moc:200: error: expected ')' before 'const'
make[2]: *** [dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o] Error 1
make[2]: Leaving directory `/dev/shm/tdelibs.build'
make[1]: *** [dcop/CMakeFiles/DCOP-shared.dir/all] Error 2
make[1]: Leaving directory `/dev/shm/tdelibs.build'
make: *** [all] Error 2
Darrell
I'm trying to compile tdesvn from 3.5.13 tarballs, but it fails on:
[100%] Building CXX object
kbugbuster/kresources/CMakeFiles/kcal_bugzilla-module.dir/kcalresource.cpp.o
cd /home/soltys/tde-packaging/arch/3.5.13/trinity-extras/trinity-kdesdk/src/build/kbugbuster/kresources
&& /usr/bin/c++
-Dkcal_bugzilla_module_EXPORTS -DHAVE_CONFIG_H -march=x86-64
-mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -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/home/soltys/tde-packaging/arch/3.5.13/trinity-extras/trinity-kdesdk/src/build/kbugbuster/kresources
-I/home/soltys/tde-packaging/arch/3.5.13/trinity-extras/trinity-kdesdk/src/kdesdk/kbugbuster/kresources/../backend
-I/opt/trinity/include -I/opt/qt/include -I/usr/include/tqt -o
CMakeFiles/kcal_bugzilla-module.dir/kcalresource.cpp.o -c
/home/soltys/tde-packaging/arch/3.5.13/trinity-extras/trinity-kdesdk/src/kdesdk/kbugbuster/kresources/kcalresource.cpp
/home/soltys/tde-packaging/arch/3.5.13/trinity-extras/trinity-kdesdk/src/kdesdk/kbugbuster/kresources/kcalresource.cpp:35:30:
fatal error: libkcal/vcaldrag.h: No such file or directory
compilation terminated.
make[2]: *** [kbugbuster/kresources/CMakeFiles/kcal_bugzilla-module.dir/kcalresource.cpp.o]
Error 1
make[2]: Leaving directory
`/home/soltys/tde-packaging/arch/3.5.13/trinity-extras/trinity-kdesdk/src/build'
make[1]: *** [kbugbuster/kresources/CMakeFiles/kcal_bugzilla-module.dir/all]
Error 2
make[1]: Leaving directory
`/home/soltys/tde-packaging/arch/3.5.13/trinity-extras/trinity-kdesdk/src/build'
make: *** [all] Error 2
Apparentely it cannot find libkcal/vcaldrag.h which is present in the
system under /opt/trinity/include/kde. It's part of tdepim suite which
I have installed. Is there a quick way to fix this? Adding
/opt/trinity/include/kde to CMAKE_INCLUDE_PATH didn't help.
I noticed that many of the header files from various tde components
(but not all of them) are installed it $prefix/include/kde. Shouldn't
kde dir be replaced with trinity, or dropped? This path is present in
the main tde git tree too.
Nothing I do gets tedbindings to build. :(
GIT 2805.
In the build log I notice this message, which does not appear in any other build log:
Note (probably harmless): No library found for -ltqt-mt
Has tdebindings been configured to build only with tqt3 rather than both tqt3 and qt3?
Error messages look like this:
In file included from DCOP.xs:35:
/opt/trinity/include/dcopclient.h:26:22: error: tqobject.h: No such file or directory
/opt/trinity/include/dcopclient.h:27:23: error: tqcstring.h: No such file or directory
/opt/trinity/include/dcopclient.h:28:25: error: tqvaluelist.h: No such file or directory
/opt/trinity/include/dcopclient.h:29:22: error: tqstring.h: No such file or directory
In file included from /opt/trinity/include/dcopclient.h:30,
Thanks!
Darrell
-----Ursprüngliche Nachricht-----
Von: "Darrell Anderson" <humanreadable(a)yahoo.com>
Gesendet: Jan 23, 2012 7:59:38 PM
An: trinity-devel(a)lists.pearsoncomputing.net
Betreff: Re: [trinity-devel] mussing CMakeLists.txt in tdelibs/libltdl
>> latest tdelibs git fails to build. cmake complains about
>>
>> CMake Error at CMakeLists.txt:867 (add_subdirectory):
>> The source directory
>>
>> /home/temp/tde/main/tdelibs/libltdl
>>
>> does not contain a CMakeLists.txt file.
>>
>> Did I miss something?
>
>Maybe, maybe not. First what do you mean by "latest"? Latest as in 3.5.13 or GIT?
>
>With that said, I suspect you are describing GIT because I see no files in the GIT repository at the Trinity web site:
>
>http://git.trinitydesktop.org/cgit/libltdl/tree
>
>Tim is hacking like crazy with renaming kdm to tdm (http://www.trinitydesktop.org/patches/). I suspect a few things might be broken in GIT right now.
>
>You might want to wait until he's finished the renaming effort. Or consider reverting back to Jan 21, which is the day before the kdm/tdm renaming effort started.
>
>You can revert to a previous GIT release point:
>
>First list the previous update points:
>
>git log
>
>Then select the point to which you want to revert:
>
>git reset --hard "hash"
>
>Where "hash" is the long goofy string of hash characters that mark the release point. I'm using hash c35265f447a1e2bc623f6725120ae2ceadb99017 from Jan. 19, short version name of 2805. Short version:
>
>git shortlog . | grep -E '^[ ]+\w+' | wc -l
>
>Darrell
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: trinity-devel-unsubscribe(a)lists.pearsoncomputing.net
>For additional commands, e-mail: trinity-devel-help(a)lists.pearsoncomputing.net
>Read list messsages on the Web archive: http://trinity-devel.pearsoncomputing.net/
>Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
>
Hi Darrell,
correct I meant the latest GIT checked out today, Jan 23. Ok I'll revert commits and give it another try. Thx for the info.
Regards
Nic
___________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192