[Gambas-user] Compiling on suse 10.2

Steven Lobbezoo steven at ...1652...
Mon Mar 10 14:36:21 CET 2008


Hi all,

I have a problem trying to compile gambas on a suse 10.2 machine.
I installed all imaginable software from the distribution.
I tried 2.0.0 and 2.2.1.

Both give me different errors as followes:

make[5]: entrant dans le répertoire
« /home/karine/gambas2-2.0.0/gb.qt/src/ext »
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I. -I. -I../.. -I/usr/lib/qt3/include/ -D_REENTRANT -I../../share
-I../../src/share   -pipe -Wall -fno-exceptions -Wno-unused-value
-fvisibility=hidden -g -Os -fno-omit-frame-pointer  -MT moc_CDial.lo -MD
-MP -MF ".deps/moc_CDial.Tpo" -c -o moc_CDial.lo moc_CDial.cpp; \
        then mv -f ".deps/moc_CDial.Tpo" ".deps/moc_CDial.Plo"; else rm
-f ".deps/moc_CDial.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/lib/qt3/include/
-D_REENTRANT -I../../share -I../../src/share -pipe -Wall -fno-exceptions
-Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT
moc_CDial.lo -MD -MP -MF .deps/moc_CDial.Tpo -c moc_CDial.cpp  -fPIC
-DPIC -o .libs/moc_CDial.o
moc_CDial.cpp:12:2: error: #error "The header file 'CDial.h' doesn't
include <QObject>."
moc_CDial.cpp:39: error: 'const QMetaObject CDial::staticMetaObject' is
not a static member of 'class CDial'
moc_CDial.cpp:39: error: variable 'const QMetaObject
CDial::staticMetaObject' has initializer but incomplete type
moc_CDial.cpp:44: error: prototype for 'const QMetaObject*
CDial::metaObject() const' does not match any in class 'CDial'
CDial.h:51: error: candidate is: virtual QMetaObject*
CDial::metaObject() const
moc_CDial.cpp:44: error: 'const QMetaObject* CDial::metaObject() const'
cannot be overloaded
CDial.h:51: error: with 'virtual QMetaObject* CDial::metaObject() const'
moc_CDial.cpp: In member function 'const QMetaObject*
CDial::metaObject() const':
moc_CDial.cpp:46: error: cannot convert 'QMetaObject* (*)()' to 'const
QMetaObject*' in return
moc_CDial.cpp: At global scope:
moc_CDial.cpp:49: error: no 'void* CDial::qt_metacast(const char*)'
member function declared in class 'CDial'
moc_CDial.cpp: In member function 'void* CDial::qt_metacast(const
char*)':
moc_CDial.cpp:54: error: 'qt_metacast' is not a member of 'QObject'
moc_CDial.cpp: At global scope:
moc_CDial.cpp:57: error: 'int CDial::qt_metacall' is not a static member
of 'class CDial'
moc_CDial.cpp:57: error: incomplete type 'QMetaObject' used in nested
name specifier
moc_CDial.cpp:57: error: expected primary-expression before 'int'
moc_CDial.cpp:57: error: expected primary-expression before 'void'
moc_CDial.cpp:57: error: initializer expression list treated as compound
expression
moc_CDial.cpp:58: error: expected ',' or ';' before '{' token
make[5]: *** [moc_CDial.lo] Erreur 1
make[5]: quittant le répertoire
« /home/karine/gambas2-2.0.0/gb.qt/src/ext »
make[4]: *** [all-recursive] Erreur 1
make[4]: quittant le répertoire « /home/karine/gambas2-2.0.0/gb.qt/src »
make[3]: *** [all-recursive] Erreur 1
make[3]: quittant le répertoire « /home/karine/gambas2-2.0.0/gb.qt »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /home/karine/gambas2-2.0.0/gb.qt »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/karine/gambas2-2.0.0 »
make: *** [all] Erreur 2
karine at ...1869...:~/gambas2-2.0.0>               


AND for 2.2.1 :


make[4]: entrant dans le répertoire
« /home/karine/gambas2-2.2.1/gb.net.smtp/src »
/bin/sh ../libtool --tag=CC --mode=link gcc -pipe -Wall
-Wno-unused-value -fvisibility=hidden -g -Os    -o gb.net.smtp.la
-rpath /usr/local/lib/gambas2 -module -no-undefined main.lo
libsmtp_comm.lo libsmtp_connection.lo libsmtp_data.lo libsmtp_error.lo
base64.lo comm.lo parts.lo quoted.lo CSmtpClient.lo -lglib-2.0
gcc
-shared  .libs/main.o .libs/libsmtp_comm.o .libs/libsmtp_connection.o .libs/libsmtp_data.o .libs/libsmtp_error.o .libs/base64.o .libs/comm.o .libs/parts.o .libs/quoted.o .libs/CSmtpClient.o  -lglib-2.0  -Wl,-soname -Wl,gb.net.smtp.so.0 -o .libs/gb.net.smtp.so.0.0.0
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld:
cannot find -lglib-2.0
collect2: ld returned 1 exit status
make[4]: *** [gb.net.smtp.la] Erreur 1
make[4]: quittant le répertoire
« /home/karine/gambas2-2.2.1/gb.net.smtp/src »
make[3]: *** [all-recursive] Erreur 1
make[3]: quittant le répertoire « /home/karine/gambas2-2.2.1/gb.net.smtp
»
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /home/karine/gambas2-2.2.1/gb.net.smtp
»
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/karine/gambas2-2.2.1 »
make: *** [all] Erreur 2
karine:/home/karine/gambas2-2.2.1 #             

I cannot find lglib-2.0 in Suse 10.2 ??

Help would be appriciated.

Steven

ps: Thanks benoit, for your help with classes. I still seem not to be
able to understand this ;-) as well as I should.






More information about the User mailing list