You are not logged in.

1

Thursday, May 4th 2006, 9:37pm

KOPETE beta2 compiling error. help needed

Hi I've try a couple of time compiling kopete but i've never been able to make it work!

can someone help me resolving this error:

./configure all ok
make I got error

make[4]: Entering directory `/home/marc/kopete-0.12-beta2/kopete/libkopete'
if /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DKDE_NO_COMPAT -DQT_NO_COMPAT -DQT_NO_CAST_ASCII -DQT_NO_ASCII_CAST -I../../kopete/libkopete -I../../kopete/libkopete -I../../kopete/libkopete/avdevice -I../../kopete/libkopete/ui -I../../kopete/libkopete/ui -I../../kopete/libkopete/compat -I../../kopete/libkopete/private -I../../kopete/libkopete/ui -I/usr/include/kde -I/usr/lib/qt-3.3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT kopetewidgets.lo -MD -MP -MF ".deps/kopetewidgets.Tpo" -c -o kopetewidgets.lo `test -f 'ui/kopetewidgets.cpp' || echo './'`ui/kopetewidgets.cpp; \
then mv -f ".deps/kopetewidgets.Tpo" ".deps/kopetewidgets.Plo"; else rm -f ".deps/kopetewidgets.Tpo"; exit 1; fi
ui/kopetewidgets.cpp:130: error: expected constructor, destructor, or type conversion at end of input
make[4]: *** [kopetewidgets.lo] Error 1
make[4]: Leaving directory `/home/marc/kopete-0.12-beta2/kopete/libkopete'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/marc/kopete-0.12-beta2/kopete/libkopete'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/marc/kopete-0.12-beta2/kopete'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/marc/kopete-0.12-beta2'
make: *** [all] Error 2

mattr

Trainee

Posts: 105

Location: US

Occupation: Software Engineer

  • Send private message

2

Wednesday, May 10th 2006, 7:54pm

RE: KOPETE beta2 compiling error. help needed

never seen that error. what distribution are you using?
--Matt

3

Thursday, May 11th 2006, 9:22pm

RE: KOPETE beta2 compiling error. help needed

I'm using CentOS

4

Thursday, May 18th 2006, 2:43am

I've also add this mistake.
When I watched ui/kopetewidgets.cpp:130, I found:"KDE_Q_EXPORT_PLUGIN(KopeteWidgets)"
There were 2 problems here for me and you might have the same, you need to replace KDE_Q_EXPORT_PLUGIN(KopeteWidgets) by:

#if __GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 > 2)
#define KDE_NO_EXPORT __attribute__ ((visibility("hidden")))
#define KDE_EXPORT __attribute__ ((visibility("default")))
#else
#define KDE_NO_EXPORT
#define KDE_EXPORT
#endif
#define KDE_Q_EXPORT_PLUGIN(PLUGIN) \
Q_EXTERN_C KDE_EXPORT const char* qt_ucm_query_verification_data(); \
Q_EXTERN_C KDE_EXPORT QUnknownInterface* ucm_instantiate(); \
Q_EXPORT_PLUGIN(PLUGIN)
KDE_Q_EXPORT_PLUGIN(KopeteWidgets);

The macro KDE_Q_EXPORT_PLUGIN is unknown for me and it should be defined in kdemacros.h but including it did not work so I copied it in the file
You also need to add the ';' at the end
I hope this will help

5

Friday, May 26th 2006, 8:40pm

I've make the change in kopetewidgets.cpp and now I got another Error

in make:

make[5]: Entering directory `/home/marc/kopete-0.12-beta2/kopete/protocols/msn'
echo '#include "kdemacros.h"' > dummy.cpp
echo 'extern "C" KDE_EXPORT void *init_libkopete_msn_shared();' >> dummy.cpp
echo 'extern "C" KDE_EXPORT void *init_kopete_msn() { return init_libkopete_msn_shared(); }' >> dummy.cpp
if /bin/sh ../../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -Iui -I./webcam -I./ui -I../../../kopete/libkopete -I../../../kopete/libkopete -I../../../kopete/libkopete/avdevice -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/compat -I/usr/include/kde -I/usr/lib/qt-3.3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -I/usr/include/mysql -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT dummy.lo -MD -MP -MF ".deps/dummy.Tpo" -c -o dummy.lo dummy.cpp; \
then mv -f ".deps/dummy.Tpo" ".deps/dummy.Plo"; else rm -f ".deps/dummy.Tpo"; exit 1; fi
dummy.cpp:2: error: visibility arg must be one of "default", "hidden", "protected" or "internal"
dummy.cpp:3: error: visibility arg must be one of "default", "hidden", "protected" or "internal"
make[5]: *** [dummy.lo] Error 1
make[5]: Leaving directory `/home/marc/kopete-0.12-beta2/kopete/protocols/msn'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/marc/kopete-0.12-beta2/kopete/protocols/msn'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/marc/kopete-0.12-beta2/kopete/protocols'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/marc/kopete-0.12-beta2/kopete'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/marc/kopete-0.12-beta2'
make: *** [all] Error 2