All,
I'm rebuilding everything in a clean VM with gcc 4.5.2 for the gcc bug report
I have opened, and building kdelibs, I have run across an error I've never seen
before:
[ 72%] Building CXX object
interfaces/ktexteditor/CMakeFiles/ktexteditor-shared.dir/editorchooser_ui.cpp.o
cd /home/david/tbld/kdelibs/src/interfaces/ktexteditor && /usr/bin/c++
-Dktexteditor_shared_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST
-DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
-DQT_THREAD_SUPPORT -D_REENTRANT -march=x86-64 -mtune=generic -O2 -pipe
-include tqt.h -fPIC -I/opt/qt/include -I/opt/qt/include/tqt
-I/home/david/tbld/kdelibs/src/interfaces/ktexteditor
-I/home/david/tbld/kdelibs/src -I/home/david/tbld/kdelibs/interfaces/ktexteditor
-I/home/david/tbld/kdelibs/src/kdecore -I/home/david/tbld/kdelibs/src/kabc
-I/home/david/tbld/kdelibs -I/home/david/tbld/kdelibs/dcop
-I/home/david/tbld/kdelibs/kdecore -I/home/david/tbld/kdelibs/kdeui
-I/home/david/tbld/kdelibs/kio -I/home/david/tbld/kdelibs/kio/kio
-I/home/david/tbld/kdelibs/kabc -I/home/david/tbld/kdelibs/interfaces -o
CMakeFiles/ktexteditor-shared.dir/editorchooser_ui.cpp.o -c
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.cpp
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.cpp: In
constructor ‘EditorChooser_UI::EditorChooser_UI(QWidget*, const char*)’:
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.cpp:33:51:
error: invalid use of incomplete type ‘struct QLayoutWidget’
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.h:19:7:
error: forward declaration of ‘struct QLayoutWidget’
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.cpp:34:109:
error: no matching function for call to
‘QVBoxLayout::QVBoxLayout(QLayoutWidget*&, int, int, const char [14])’
/opt/qt/include/qlayout.h:464:5: note: candidates are:
QVBoxLayout::QVBoxLayout(const QVBoxLayout&)
/opt/qt/include/qlayout.h:458:5: note:
QVBoxLayout::QVBoxLayout(int, const char*)
/opt/qt/include/qlayout.h:456:5: note:
QVBoxLayout::QVBoxLayout(QLayout*, int, const char*)
/opt/qt/include/qlayout.h:454:5: note:
QVBoxLayout::QVBoxLayout(QWidget*, int, int, const char*)
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.cpp:36:53:
error: invalid use of incomplete type ‘struct QLabel’
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.h:20:7:
error: forward declaration of ‘struct QLabel’
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.cpp:37:15:
error: invalid use of incomplete type ‘struct QLabel’
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.h:20:7:
error: forward declaration of ‘struct QLabel’
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.cpp:38:15:
error: invalid use of incomplete type ‘struct QLabel’
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.h:20:7:
error: forward declaration of ‘struct QLabel’
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.cpp:38:38:
error: incomplete type ‘QLabel’ used in nested name specifier
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.cpp:38:59:
error: incomplete type ‘QLabel’ used in nested name specifier
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.cpp:38:83:
error: incomplete type ‘QLabel’ used in nested name specifier
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.cpp:39:42:
error: no matching function for call to ‘QVBoxLayout::addWidget(QLabel*&)’
/opt/qt/include/qlayout.h:386:10: note: candidate is: void
QBoxLayout::addWidget(QWidget*, int, int)
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.cpp:41:58:
error: invalid use of incomplete type ‘struct QComboBox’
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.h:21:7:
error: forward declaration of ‘struct QComboBox’
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.cpp:42:43:
error: no matching function for call to ‘QVBoxLayout::addWidget(QComboBox*&)’
/opt/qt/include/qlayout.h:386:10: note: candidate is: void
QBoxLayout::addWidget(QWidget*, int, int)
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.cpp:43:45:
error: no matching function for call to ‘QVBoxLayout::addWidget(QLayoutWidget*&)’
/opt/qt/include/qlayout.h:386:10: note: candidate is: void
QBoxLayout::addWidget(QWidget*, int, int)
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.cpp: In
member function ‘virtual void EditorChooser_UI::languageChange()’:
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.cpp:66:15:
error: invalid use of incomplete type ‘struct QLabel’
/home/david/tbld/kdelibs/src/interfaces/ktexteditor/editorchooser_ui.h:20:7:
error: forward declaration of ‘struct QLabel’
make[2]: ***
[interfaces/ktexteditor/CMakeFiles/ktexteditor-shared.dir/editorchooser_ui.cpp.o] Error
1
make[2]: Leaving directory `/home/david/tbld/kdelibs/src'
make[1]: *** [interfaces/ktexteditor/CMakeFiles/ktexteditor-shared.dir/all] Error 2
make[1]: Leaving directory `/home/david/tbld/kdelibs/src'
make: *** [all] Error 2
Aborting...
Is this possibly related to the gcc problem I've had with gcc 4.5.2 that I need
to report to gcc, or does this look like a problem with QBoxLayout?
--
David C. Rankin, J.D.,P.E.
Tim, all,
I have built gcc 4.3.4-3 to see if that fixes the iccconfig.cpp build failure
in kdebase. What I don't know is:
"How to I change the cmake call or CMakeLists.txt to make sure I'm using gcc 4.3
and not 5.4?"
The executable is '/usr/bin/gcc-4.3'. Do I need a CC=gcc-4.3 or CXX=gcc-4.3
somewhere? If so where?
I've never tried to build anything with alternate gcc's installed. Any help
would be greatly appreciated.
--
David C. Rankin, J.D.,P.E.
Guys,
This craziness with gcc may actually be a compiler error. Here is the latest
error I got with kdebase:
[18%] Building CXX object
kcontrol/konq/CMakeFiles/kcm_konq-module.dir/fontopts.cpp.o
cd /home/david/tbld/kdebase/src/kcontrol/konq && /usr/bin/c++
-Dkcm_konq_module_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST
-DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
-DQT_THREAD_SUPPORT -D_REENTRANT -march=i686 -mtune=generic -O2 -pipe
-include tqt.h -fPIC -I/home/david/tbld/kdebase/src/kcontrol/konq
-I/home/david/tbld/kdebase/src -I/home/david/tbld/kdebase/libkonq
-I/opt/trinity/include -I/opt/qt/include -I/opt/qt/include/tqt -o
CMakeFiles/kcm_konq-module.dir/fontopts.cpp.o -c
/home/david/tbld/kdebase/kcontrol/konq/fontopts.cpp
In file included from /home/david/tbld/kdebase/kcontrol/konq/fontopts.cpp:387:0:
/home/david/tbld/kdebase/src/kcontrol/konq/fontopts.moc: In member function
■virtual void KonqFontOptions::load(bool)■:
/home/david/tbld/kdebase/src/kcontrol/konq/fontopts.moc:136:93: internal
compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [kcontrol/konq/CMakeFiles/kcm_konq-module.dir/fontopts.cpp.o] Error 1
make[2]: Leaving directory `/home/david/tbld/kdebase/src'
make[1]: *** [kcontrol/konq/CMakeFiles/kcm_konq-module.dir/all] Error 2
make[1]: Leaving directory `/home/david/tbld/kdebase/src'
make: *** [all] Error 2
Aborting...
--
David C. Rankin, J.D.,P.E.
Hello,
I've been unofficially maintaining KDE3 (with help from a few others) for
Mandriva for over a year now and i'm currently trying to upgrade my
packages using the Trinity 3.5.12 sources. I've managed to get
tqtinterface, arts and kdelibs to build sucessfully, but kdebase is
failing while trying to build kappfinder with an error I can't solve. I've
included the build log.
- TQT is detected by the configure script
- I have added --enable-closure to the configure command
Any suggestions?
Thanks, Tim W
--
Tim Williams BSc MSc MBCS
Autotrain e-Learning
58 Jacoby Place
Priory Road
Edgbaston
Birmingham
B5 7UW
United Kingdom
Web : http://www.autotrain.org, http://www.utrain.info
Tel : +44 (0)121 414 2214
AutoTrain e-Learning is a trading name of EuroMotor-AutoTrain LLP
Registered in the United Kingdom, number: OC317070.
Hello, all. I have a pristine install of Squeeze with Trinity 3.5.12.
I clicked on Settings / Peripherals / Printers to add a new printer. I
entered Administration mode which asked me for my user password as it I
was using sudo rather than the root password as if I was using su.
I clicked on Add a printer. It took a very long time but eventually
brought up the new printer wizard. I selected an TCP printer, entered
the IP address, clicked next and was told:
The executable /opt/kde3/bin/make_driver_db_cups could not be found in
your PATH. Check that this program exists and is accessible in your PATH
variable.
Not surprising as I would suspect this is in /opt/trinity/bin. Is this
something I am doing wrong or a bug?
I created a symbolic link named /opt/kde3 for /opt/trinity. It did not
eliminate the long waits but it did allow me to create the printer.
Thanks - John
Serghei, Tim, all,
Trying to debug the iccconfig.cpp error I'm having with kdebase, I've run
across the following line in the ../iccconfig/Makefile.am:
noinst_HEADERS = iccconfig.h
According to http://www.gnu.org/software/hello/manual/automake/Headers.html
<quote>
Usually, only header files that accompany installed libraries need to be
installed. Headers used by programs or convenience libraries are not installed.
The noinst_HEADERS variable can be used for such headers. However when the
header actually belongs to a single convenience library or program, we recommend
listing it in the program's or library's _SOURCES variable (see Program Sources)
instead of in noinst_HEADERS. This is clearer for the Makefile.am reader.
noinst_HEADERS would be the right variable to use in a directory containing only
headers and no associated library or program.
</quote>
What struck me is the line reading: "noinst_HEADERS would be the right variable
to use in a directory containing only headers and no associated library or
program." This isn't the case with iccconfig because you have the program
iccconfig.cpp.
Also, is it possible that I've run into a gcc compiler error? I'm working with
the following:
gcc 4.5.2-6
gcc-fortran 4.5.2-6
gcc-libs 4.5.2-6
gcc-objc 4.5.2-6
Thanks for any thoughts you may have.
--
David C. Rankin, J.D.,P.E.
Guys,
I'll post this under a separate thread so it isn't buried.
trinity/kdebase/kcontrol/iccconfig/iccconfig.h has the following includes:
#include <dcopobject.h>
#include <libkrandr/libkrandr.h>
#include "iccconfigbase.h"
There is no "iccconfigbase.h" in the iccconfig directory? Is "iccconfigbase.h"
supposed to be there? The only iccconfigbase file present is:
-rw-r--r-- 1 david david 6332 Jan 21 17:43 iccconfigbase.ui
--
David C. Rankin, J.D., P.E.
Everyone,
After moving everything to a clean build environment and rebuilding everything
from scratch to get around a kdebase make failure, we have come full circle. The
kdebase build is dying at the same place:
Scanning dependencies of target kcm_iccconfig-module
make[2]: Leaving directory `/home/david/tbld/kdebase/src'
make -f kcontrol/iccconfig/CMakeFiles/kcm_iccconfig-module.dir/build.make
kcontrol/iccconfig/CMakeFiles/kcm_iccconfig-module.dir/build
make[2]: Entering directory `/home/david/tbld/kdebase/src'
/usr/bin/cmake -E cmake_progress_report /home/david/tbld/kdebase/src/CMakeFiles
[ 30%] Building CXX object
kcontrol/iccconfig/CMakeFiles/kcm_iccconfig-module.dir/iccconfig.cpp.o
cd /home/david/tbld/kdebase/src/kcontrol/iccconfig && /usr/bin/c++
-Dkcm_iccconfig_module_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST
-DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
-DQT_THREAD_SUPPORT -D_REENTRANT -march=i686 -mtune=generic -O2 -pipe -include
tqt.h -fPIC -I/home/david/tbld/kdebase/src/kcontrol/iccconfig
-I/home/david/tbld/kdebase/src -I/opt/trinity/include -I/opt/qt/include
-I/opt/qt/include/tqt -DKDE_CONFDIR=\"/opt/trinity/share/config\" -o
CMakeFiles/kcm_iccconfig-module.dir/iccconfig.cpp.o -c
/home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp
/home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp: In member function
‘void KICCConfig::load(bool)’:
/home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:289:38: error:
expected type-specifier
/home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:289:38: error: cannot
convert ‘int*’ to ‘KRandrSimpleAPI*’ in initialization
/home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:289:38: error:
expected ‘,’ or ‘;’
/home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp: In member function
‘virtual void KICCConfig::save()’:
/home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:359:37: error:
expected type-specifier
/home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:359:37: error: cannot
convert ‘int*’ to ‘KRandrSimpleAPI*’ in initialization
/home/david/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:359:37: error:
expected ‘,’ or ‘;’
make[2]: ***
[kcontrol/iccconfig/CMakeFiles/kcm_iccconfig-module.dir/iccconfig.cpp.o] Error 1
make[2]: Leaving directory `/home/david/tbld/kdebase/src'
make[1]: *** [kcontrol/iccconfig/CMakeFiles/kcm_iccconfig-module.dir/all] Error 2
make[1]: Leaving directory `/home/david/tbld/kdebase/src'
make: *** [all] Error 2
Aborting...
Serghei, as you requested in the "Round 2" thread, I have attached
/opt/trinity/include/libkranr/libkranr.h and CMakeError.log.
I am at a loss. The current build arguments are:
[[ ${PATH%%:*} =~ /opt/trinity/bin ]] || export PATH=/opt/trinity/bin:$PATH
export CMAKE_PREFIX_PATH=/opt/qt:/opt/trinity
export
CMAKE_INCLUDE_PATH=/opt/qt/include:/opt/qt/include/tqt:/usr/include/dbus-1.0
export LD_LIBRARY_PATH=/opt/trinity/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=:/opt/trinity/lib/pkgconfig:/opt/qt/lib/pkgconfig
trinity_prefix="/opt/trinity"
cd ${srcdir}
cmake ../ \
-DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
-DWITH_QT3=ON \
-DQTDIR=/opt/qt \
-DBUILD_ALL=ON
make VERBOSE=1
Any thoughts on why we are seeing this iccconfig.cpp error? Got any more
rabbits left in your hat? ;-)
--
David C. Rankin, J.D., P.E.
Hi,
adept-updater complains it cannot find KDE.pm which should be located
in /usr/share/perl5/Debconf/FrontEnd. It uses Gnome.pm instead.
Where can I find KDE.pm?
--
Viele Grüße,
Hartmut
Hungerhilfe: http://www.thehungersite.com
Ohne Zensur suchen:
http://suche.amnesty-bergedorf.de/
ökologisch suchen:
http://www.ecosia.de
Das heutige Motto:
Solange die Farbe der Haut wichtiger ist als die Farbe der Augen,
wird es keinen Frieden geben auf der Erde (Bob Marley).
> >After installing kdelibs, do I need to set anything in the environment to
> > have kde-config find it's required libraries before building kdebase?
>You must set LD_LIBRARY_PATH to /opt/trinity/lib
Thanks Serghei.
I added /opt/qt/lib to /etc/ld.so.conf and the kdebase build find it just fine :)
I have run into another problem with dbus-qt3. I have built and installed the
dbus-qt3 package from dbus-qt3_0.62.git.20060814.orig.tar.gz, but the kdebase
make still fails:
<snip>
-- Looking for XkbSetPerClientControls in X11 - found
-- checking for 'Qt'
-- Performing Test HAVE_PATCHED_QT3
-- Performing Test HAVE_PATCHED_QT3 - Success
-- found patched Qt, version 3.3.8
-- checking for one of the modules 'TQt'
-- checking for 'TDE'
-- found 'TDE', version 3.5.13
-- checking for one of the modules 'dbus-1'
-- Performing Test HAVE_DBUS_QT3_07
-- Performing Test HAVE_DBUS_QT3_07 - Failed
CMake Error at cmake/modules/TDEMacros.cmake:20 (message):
#################################################
dbus-qt3 (version 0.7) are required, but not found on your system
#################################################
Call Stack (most recent call first):
ConfigureChecks.cmake:150 (tde_message_fatal)
CMakeLists.txt:114 (include)
-- Configuring incomplete, errors occurred!
Aborting...
What is the HAVE_DBUS_QT3_07 (version 0.7) requirement? Is it a patch I need to
apply?
My dbus-qt3 install includes:
11:13 trinity:~/tbld/dbus-qt3> pmql dbus-qt3
dbus-qt3 /opt/qt/include/dbus-1.0/dbus/
dbus-qt3 /opt/qt/include/dbus-1.0/dbus/connection.h
dbus-qt3 /opt/qt/include/dbus-1.0/dbus/dbus-qt.h
dbus-qt3 /opt/qt/include/dbus-1.0/dbus/message.h
dbus-qt3 /opt/qt/include/dbus-1.0/dbus/server.h
dbus-qt3 /opt/qt/lib/libdbus-qt-1.a
dbus-qt3 /opt/qt/lib/libdbus-qt-1.so
dbus-qt3 /opt/qt/lib/libdbus-qt-1.so.1
dbus-qt3 /opt/qt/lib/libdbus-qt-1.so.1.0.0
My build environment is:
[[ ${PATH%%:*} =~ /opt/trinity/bin ]] || export PATH=/opt/trinity/bin:$PATH
export CMAKE_PREFIX_PATH=/opt/qt
export CMAKE_INCLUDE_PATH=/opt/qt/include:/opt/qt/include/tqt
export LD_LIBRARY_PATH=/opt/trinity/lib:$LD_LIBRARY_PATH
trinity_prefix="/opt/trinity"
cd ${srcdir}
cmake ../ \
-DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
-DWITH_QT3=ON \
-DQTDIR=/opt/qt \
-DBUILD_ALL=ON
make VERBOSE=1
--
David C. Rankin, J.D., P.E.