Hi Folks,
I apologize for a long mail.
System: Mandrake 8.0 + KDE 2.2
Security Level: High
I have a small qt program (was created by ./configure) that compiles
right when I run as root, but as normail user it gives following error:
----------------------------------------------------------------------------------
/usr/bin/ld: warning: libGLU.so.1, needed by /usr/lib/qt2/lib/libqt.so,
not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libGL.so.1, needed by /usr/lib/qt2/lib/libqt.so,
not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libXmu.so.6, needed by /usr/lib/qt2/lib/libqt.so,
not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libXft.so.1, needed by /usr/lib/qt2/lib/libqt.so,
not found (try using -rpath or -rpath-link)
Followed by a lot of 'undefined reference to' lines that refer to
symbols in those libraries.
-------------------------------------------------------------------------------------
The CPP program is:
====================================
#include <qglobal.h>
#include <qapplication.h>
#include <qevent.h>
#include <qstring.h>
#include <qstyle.h>
#include <qiconview.h>
int main() {
QStringList *t = new QStringList();
QIconView iv(0);
iv.setWordWrapIconText(false);
QString s;
s.setLatin1("Elvis is alive", 14);
int magnolia = QEvent::Speech; /* new in 2.2 beta2 */
return 0;
}
===========================================
Following is the command line I user to compile my program:
c++ -o conftest -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new -I/us
r/lib/qt2/include -I/usr/X11R6/include -L/usr/lib/qt2/lib
-L/usr/X11R6/lib my.C -lqt -lpng -lz -lm -ljpeg -lXext -lX11 -lSM
-lICE -lresolv
===========================================
One thing I am sure about is that, there is some problem with file
permissions that normal user can't find those libraries, and the file
permissions are related to the 'High' security setting I'm using.
Also, other annoying thing is that, in high security setting, normal
user can't do command line completions on command names, for example I
cant just type 'kdev' and hit TAB to complete it to 'kdevelop' because
normal user doesn't have read access to /usr/bin. Is this a similar
thing with my compile problem with some other directory?
I am trying to write a small 'kicker applet' using 'kdevelop' (I have
installed KDE2.2), and can't make any progress because I can't compile
any qt app as a normal user. Your help would be appreciated.
Thanks,
nak
Want to buy your Pack or Services from MandrakeSoft?
Go to http://wwww.mandrakestore.com