You are not logged in.

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.

bangle

Unregistered

1

Tuesday, December 14th 2004, 10:51am

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

djanubis

Beginner

Posts: 29

Location: Moulins France

Occupation: Software ingeneering

  • Send private message

2

Tuesday, December 14th 2004, 1:52pm

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

bangle

Unregistered

3

Thursday, December 16th 2004, 3:18am

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...

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

4

Thursday, December 16th 2004, 9:38pm

How does the linker output look like?
(Try running make in a console window inside the project directory)

Cheers,
_
Qt/KDE Developer
Debian User

bangle

Unregistered

5

Friday, December 17th 2004, 2:25am

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,

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

6

Friday, December 17th 2004, 5:13pm

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

bangle

Unregistered

7

Monday, December 27th 2004, 8:21am

Problem is solved

I can solve this problem now. Thanks so much.

bla

Unregistered

8

Wednesday, January 12th 2005, 8:43am

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]