Guys,
I have rebuilt all packages just using cmake. tqtinterface, arts and kdelibs all build without a hitch. kdebase continues to fail with the following error:
[ 30%] Generating iccconfig_skel.cpp Scanning dependencies of target kcm_iccconfig-module [ 30%] Building CXX object kcontrol/iccconfig/CMakeFiles/kcm_iccconfig-module.dir/iccconfig.cpp.o /home/david/arch/pkg/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp: In member function ‘void KICCConfig::load(bool)’: /home/david/arch/pkg/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:289:38: error: expected type-specifier /home/david/arch/pkg/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:289:38: error: cannot convert ‘int*’ to ‘KRandrSimpleAPI*’ in initialization /home/david/arch/pkg/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:289:38: error: expected ‘,’ or ‘;’ /home/david/arch/pkg/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp: In member function ‘virtual void KICCConfig::save()’: /home/david/arch/pkg/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:359:37: error: expected type-specifier /home/david/arch/pkg/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:359:37: error: cannot convert ‘int*’ to ‘KRandrSimpleAPI*’ in initialization /home/david/arch/pkg/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[1]: *** [kcontrol/iccconfig/CMakeFiles/kcm_iccconfig-module.dir/all] Error 2 make: *** [all] Error 2 Aborting...
Looking at iccconfig.cpp, in' void KICCConfig::load(bool useDefaults )' the line being complained about at 289 is:
KRandrSimpleAPI *randrsimple = new KRandrSimpleAPI::KRandrSimpleAPI();
Then again at 359, in 'void KICCConfig::save()' the code is:
KRandrSimpleAPI *randrsimple = new KRandrSimpleAPI::KRandrSimpleAPI();
For some reason the build is choking here. I have placed the generated Makefile for iccconfig here:
http://www.3111skyline.com/dl/dt/trinity/errors/Makefile-iccconfig
If there is anything else that I can send that is helpful, please let me know and I'll provide a link. The build file used was:
build() { msg "Setting PATH, CMAKE and Trinity Environment variables" [[ ${PATH%%:*} =~ /opt/qt/bin ]] || export PATH=/opt/qt/bin:$PATH export CMAKE_PREFIX_PATH=/opt/qt export CMAKE_INCLUDE_PATH=/opt/qt/include:/opt/qt/include/tqt export KDEDIR=/opt/trinity export KDEDIRS=/opt/trinity:/usr export PKG_CONFIG_PATH=:/opt/trinity/lib/pkgconfig:/opt/trinity/lib/pkgconfig:/opt/qt/lib/pkgconfig export XDG_CONFIG_DIRS=/etc/xdg:/opt/trinity/etc/xdg:/opt/trinity/etc/xdg export XDG_DATA_DIRS=/usr/share/:/usr/local/share/:/opt/trinity/share:/opt/trinity/share
trinity_prefix="/opt/trinity"
cd ${srcdir} cmake ../ \ -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \ -DWITH_QT3=ON \ -DBUILD_ALL=ON \ -DCMAKE_SKIP_RPATH=ON make || return 1 }
This is pretty much where I'm stuck. What say the gurus on where to look for the answers and how to fix them?
On Friday 04 February 2011 06:05:36 David C. Rankin wrote:
Guys,
I have rebuilt all packages just using cmake. tqtinterface, arts and kdelibs all build without a hitch. kdebase continues to fail with the following error:
[ 30%] Generating iccconfig_skel.cpp Scanning dependencies of target kcm_iccconfig-module
I'm not sure about this, I can't reproduce this kind of compiling error. Try to run "make VERBOSE=1". You have KDE 3.5.10 too, on this machine?
On 02/04/2011 03:24 AM, Serghei Amelian wrote:
I'm not sure about this, I can't reproduce this kind of compiling error. Try to run "make VERBOSE=1". You have KDE 3.5.10 too, on this machine?
Yes, BUT I uninstalled it and I still get the 3.5.10 reference. It looks like it is still in the Trinity kdebase svn code:
12:24 nirvana:~/arch/pkg/trinity/kdebase> grep -r '3.5.10' * admin/cvs.sh: VERSION=""3.5.10"" admin/.svn/text-base/cvs.sh.svn-base: VERSION=""3.5.10"" kdebase.lsm:Version: 3.5.10 konqueror/.svn/text-base/version.h.svn-base:#define KONQUEROR_VERSION "3.5.10" konqueror/version.h:#define KONQUEROR_VERSION "3.5.10"
Should this be fixed?
On 02/04/2011 03:24 AM, Serghei Amelian wrote:
On Friday 04 February 2011 06:05:36 David C. Rankin wrote:
Guys,
I have rebuilt all packages just using cmake. tqtinterface, arts and kdelibs all build without a hitch. kdebase continues to fail with the following error:
[ 30%] Generating iccconfig_skel.cpp Scanning dependencies of target kcm_iccconfig-module
I'm not sure about this, I can't reproduce this kind of compiling error. Try to run "make VERBOSE=1". You have KDE 3.5.10 too, on this machine?
The build still fails with a slightly different error with VERBOSE=1 set:
[ 29%] Building CXX object kcontrol/iccconfig/CMakeFiles/kcm_iccconfig-module.dir/iccconfig.cpp.o cd /home/david/arch/pkg/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/arch/pkg/tbld/kdebase/src/kcontrol/iccconfig -I/home/david/arch/pkg/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/arch/pkg/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp /home/david/arch/pkg/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp: In member function ‘void KICCConfig::load(bool)’: /home/david/arch/pkg/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:289:38: error: expected type-specifier /home/david/arch/pkg/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:289:38: error: cannot convert ‘int*’ to ‘KRandrSimpleAPI*’ in initialization /home/david/arch/pkg/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:289:38: error: expected ‘,’ or ‘;’ /home/david/arch/pkg/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp: In member function ‘virtual void KICCConfig::save()’: /home/david/arch/pkg/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:359:37: error: expected type-specifier /home/david/arch/pkg/tbld/kdebase/kcontrol/iccconfig/iccconfig.cpp:359:37: error: cannot convert ‘int*’ to ‘KRandrSimpleAPI*’ in initialization /home/david/arch/pkg/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/arch/pkg/tbld/kdebase/src' make[1]: *** [kcontrol/iccconfig/CMakeFiles/kcm_iccconfig-module.dir/all] Error 2 make[1]: Leaving directory `/home/david/arch/pkg/tbld/kdebase/src' make: *** [all] Error 2 Aborting...
I'm not very good at reading make errors, you see anything that might point to the error?
On Friday 04 February 2011 21:11:02 David C. Rankin wrote: [...]
I'm not very good at reading make errors, you see anything that might point to the error?
You using kdelibs and kdebase from svn, right?
Please show me your /opt/trinity/include/libkrandr/libkrandr.h
On 02/04/2011 02:05 PM, Serghei Amelian wrote:
On Friday 04 February 2011 21:11:02 David C. Rankin wrote: [...]
I'm not very good at reading make errors, you see anything that might point to the error?
You using kdelibs and kdebase from svn, right?
Please show me your /opt/trinity/include/libkrandr/libkrandr.h
Sure,
<snip intro comment> #ifndef _LIBKRANDR_H #define _LIBKRANDR_H
#include "randr.h" #include "lowlevel_randr.h"
#ifdef __cplusplus
#include <kconfig.h> #include <ksimpleconfig.h> #include <kdelibs_export.h>
/** * Simple API covering most of the uses of libkrandr. * * You can use the members of this class in pure C applications, just by using * the same name as the corresponding function member. * * @short A simple API around the rest of libkrandr. * @version 0.9.5 27/04/2010 * @author Timothy Pearson kb9vqf@pearsoncomputing.net */ class KRANDR_EXPORT KRandrSimpleAPI : public RandRDisplay { private:
public: /** * Retrieves the specificed ICC profile filename from the configuration database */ TQString getIccFileName(TQString profileName, TQString screenName, TQString kde_confdir);
/** * Applies the specificed ICC profile filename to the specified RandR output * If RandR is not available, the specified file is applied to the current display */ TQString applyIccFile(TQString screenName, TQString fileName);
/** * Applies all saved ICC profile settings to all RandR outputs * If RandR is not available, the settings are applied to the current display */ TQString applyIccConfiguration(TQString profileName, TQString kde_confdir);
/** * Applies saved system wide settings to the current display */ TQString applySystemWideIccConfiguration(TQString kde_confdir);
/** * Resets the current display */ TQString clearIccConfiguration(void);
/** * Retrieves current profile name */ TQString getCurrentProfile(void);
/** * Reads current screen information. */ ScreenInfo* read_screen_info(Display *display);
/** * Sets the screen size. */ int set_screen_size (ScreenInfo *screen_info);
/** * Automatically selects an output port. */ void output_auto (ScreenInfo *screen_info, OutputInfo *output_info);
/** * Turns off a specified output on a specified screen. */ void output_off(ScreenInfo *screen_info, OutputInfo *output);
/** * Automatically finds the CRTC structure. */ CrtcInfo* auto_find_crtc (ScreenInfo *screen_info, OutputInfo *output_info);
/** * Finds a mode by XID. */ XRRModeInfo *find_mode_by_xid (ScreenInfo *screen_info, RRMode mode_id);
/** * Returns specified mode height in pixels. */ int mode_height (XRRModeInfo *mode_info, Rotation rotation);
/** * Returns specified mode width in pixels. */ int mode_width (XRRModeInfo *mode_info, Rotation rotation);
/** * Returns specified output width in pixels. */ int get_width_by_output_id (ScreenInfo *screen_info, RROutput output_id);
/** * Returns specified output height in pixels. */ int get_height_by_output_id (ScreenInfo *screen_info, RROutput output_id);
/** * Returns output name. */ char *get_output_name (ScreenInfo *screen_info, RROutput id);
/** * Applies specified CRTC. */ Status crtc_apply (CrtcInfo *crtc_info);
/** * Disables specificed CRTC */ Status crtc_disable (CrtcInfo *crtc);
/** * Applies all previously configured settings to the specified screen. */ int main_low_apply (ScreenInfo *screen_info);
/** * Returns whether or not the system supports XRandR */ bool kRandrHasRandr();
/** * Returns the version number of libkrandr, i.e. "0.9.5" or "1.0 Beta" */ static const char *kRandrVersion(void);
/** * Returns the copyright notice that applications using libkrandr should print * to the user in an about box or somewhere visible. * I.e. * * "LibKRandr 0.9.5 (C) 2010 Timothy Pearson kb9vqf@pearsoncomputing.net. U.S.A." */ static const char *kRandrCopyright(void);
};
extern "C" {
#else #define KRANDR_EXPORT #endif
// KRANDR_EXPORT ScreenInfo* read_screen_info(Display *); // KRANDR_EXPORT int set_screen_size (ScreenInfo *screen_info); // KRANDR_EXPORT void output_auto (ScreenInfo *screen_info, OutputInfo *output_info); // KRANDR_EXPORT void output_off(ScreenInfo *screen_info, OutputInfo *output); // KRANDR_EXPORT CrtcInfo* auto_find_crtc (ScreenInfo *screen_info, OutputInfo *output_info); // KRANDR_EXPORT XRRModeInfo *find_mode_by_xid (ScreenInfo *screen_info, RRMode mode_id); // KRANDR_EXPORT int mode_height (XRRModeInfo *mode_info, Rotation rotation); // KRANDR_EXPORT int mode_width (XRRModeInfo *mode_info, Rotation rotation); // KRANDR_EXPORT int get_width_by_output_id (ScreenInfo *screen_info, RROutput output_id); // KRANDR_EXPORT int get_height_by_output_id (ScreenInfo *screen_info, RROutput output_id); // KRANDR_EXPORT char *get_output_name (ScreenInfo *screen_info, RROutput id); // KRANDR_EXPORT Status crtc_apply (CrtcInfo *crtc_info); // KRANDR_EXPORT Status crtc_disable (CrtcInfo *crtc); // KRANDR_EXPORT int main_low_apply (ScreenInfo *screen_info); // KRANDR_EXPORT bool kRandrHasRandr();
KRANDR_EXPORT const char *kRandrVersion(void); KRANDR_EXPORT const char *kRandrCopyright(void);
#ifdef __cplusplus
}
#endif
#endif