[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

compiling a KDE App (kdesu)



Hi hackers,

normally i am using gnome/enlighenment, but for root-shells with X this
system lacks some simple tool like kdesu, that does all this
authorization-stuff.

ok, with my old SuSE it was no problem either to install the package or to
compile it by using ./configure and so on.

Now, i do not manage to finde the correct settings for this script. The
problem seems to be the qt. Of yourse, i installed the -dev packages.

if i do ./configure --with-qt-dir=/usr/lib/qt1g, the linktest for "a small
KDE-application" fails:
...
checking for KDE... libraries /usr/lib, headers /usr/include/kde
checking for extra includes... no
checking for extra libs... no
checking for KDE headers installed... yes
checking for KDE libraries installed... configure: error: your system fails
at linking a small KDE application!
Check, if your compiler is installed correctly and if you have used the
same compiler to compile Qt and kdelibs as you did use now

config.log says why:
--------------------
...

configure:3993: g++ -c -O2 -Wall -I/usr/include/kde -I/usr/lib/qt1g/include
-I/
usr/X11R6/include  conftest.C
configure:4001: checking for KDE libraries installed
configure:4004: /bin/sh ./libtool --silent --mode=link g++ -o conftest -O2
-Wall -I/usr/include/kde -I/usr/lib/qt1g/include  -I/usr/X11R6/include  -s
-L/usr/lib  -L/usr/X11R6/lib conftest.C  -lkdecore -lqt -lXext -lX11  -rpath /usr/lib
-rpath /usr/X11R6/lib  1>&5
/usr/lib/libqt.a(qpngio.o): In function 	od_read_fn(png_struct_def *,
unsigned 
char *, unsigned int)':
qpngio.o(.text+0x20): undefined reference to ng_get_io_ptr'
qpngio.o(.text+0x57): undefined reference to ng_error'
...
/usr/lib/libkdecore.so: undefined reference to ComboBox::insertItem(char
const
 *, int)'
/usr/lib/libkdecore.so: undefined reference to arkMagenta'
/usr/lib/libkdecore.so: undefined reference to Dir::exists(char const *,
bool)
'
/usr/lib/libkdecore.so: undefined reference to Font::QFont(char const *,
int, 

--------------------

ok, lets add --with-extra-libs="/usr/lib/qt1g/lib -lpng" because libpng
seems to be missing. And maybe the path to /qt1g/lib is also not a bad idea. 

Well i get rid of the error-mesages concerning libpng, but qt is still
missing:
------config.log

/usr/lib/libkdecore.so: undefined reference to ComboBox::insertItem(char
const
 *, int)'
/usr/lib/libkdecore.so: undefined reference to arkMagenta'
/usr/lib/libkdecore.so: undefined reference to Dir::exists(char const *,
bool)
'
/usr/lib/libkdecore.so: undefined reference to Font::QFont(char const *,
int, 

THe problem seems to be libqt2, that i also have installed. Ok, i remove the
links libqt.so.2xx from /usr/lib and add explicitely libqt.so.1.44:
 ./configure --with-qt-dir=/usr/lib/qt1g
--with-extra-libs="/usr/lib/qt1g/lib -lpng /usr/lib/libqt.so.1.44"

The result is that i cannot compile the source ARRGH.

pty.cpp:56: passing 	nt' to argument 2 of trcpy(char *, const char *)'
lacks a cast
pty.cpp: In method 	nt PTY::grantpt()':
pty.cpp:125: implicit declaration of function 	nt grantpt(...)'
pty.cpp: In method 	nt PTY::unlockpt()':
pty.cpp:184: implicit declaration of function 	nt unlockpt(...)'
make[2]: *** [pty.o] Error 1
make[2]: Leaving directory /usr/src/redhat/SOURCES/kdesu/common'


Has anybody solved this problem, or some suggestions?

Would be nice

Ingo

-- 
----------------------------------------------------------------
        I. Reimann                       reimann@uni-muenster.de
        Inst. fuer Angew. Physik         +49 251 83-33527 (fon)
        Correnstr. 2-4                   +49 251 83-33513 (fax)
        D-48149 Muenster
	Germany
----------------------------------------------------------------


Reply to: