Dear visitor, welcome to KDE-Forum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
Using library problem on KDevelop
Hi all,
I'm a beginner in KDevelop. I want to write some tools by Kdevelop/Qt.
And I stuck in trouble now. I can not use any libraries (Ex: kmdi, open gl,...). Every time I use them (put them in link option of project), Kdevelop is hang when linking (can not link). So I wonder:
- What's wrong with this ?
- How to check if those libraries are installed in my PC ?
Pls help me to solve it.
Thanks
RE: Using library problem on KDevelop
Use the (very) old unix command locate:
locate kmdi
will tell you where the thing is.
For more information about locate use the man page: man locate
Never patch not working code. Rewrite it !
Never patch badly designed classes. Recreate them cleanly.
(Excerpts from Computing Bible)
Home of the Lab project
RE: Using library problem on KDevelop
Hi all,
I checked as you suggested and found that the libraries I intent to use are installed. So, I wonder why KDevelop can not link them ? and what should I do next ?
If any of you have free time, pls show me step by step when you want to use a library in KDevelop.
Help me, pls...
How does the linker output look like?
(Try running make in a console window inside the project directory)
Cheers,
_
Qt/KDE Developer
Debian User
Link libraries problem
Hi anda_skoa,
I tried to run make command as your suggestion and the error is "/usr/bin/ld: cannot find -lselinux". And I found that there is a libselinux.so.1 file in folder /lib.
Regards,
What do you need libselinux for?
If you really need it, you might be missing the devel package for it, which usually creates a link from libname.so to libname.so.version
You can do that manually:
cd /lib
ln -s libselinux.so.1 libselinux.so
Cheers,
_
Qt/KDE Developer
Debian User
Problem is solved
I can solve this problem now. Thanks so much.
RE: Using library problem on KDevelop
[quote][i]Originally posted by bangle[/i]
Hi all,
I'm a beginner in KDevelop. I want to write some tools by Kdevelop/Qt.
And I stuck in trouble now. I can not use any libraries (Ex: kmdi, open gl,...). Every time I use them (put them in link option of project), Kdevelop is hang when linking (can not link). So I wonder:
- What's wrong with this ?
- How to check if those libraries are installed in my PC ?
Pls help me to solve it.
Thanks[/quote]