LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-12-2007, 03:35 AM   #1
neikinfology
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0
Link shared library in Kdevelop


Dear friends,
I am now using Kdevelop to build a project on video processing. I use the libavcodec library to decode video file. But I have problems in linking the shared library of libavcodec to my project.
I follow many instructions on web and do like this:
- Select Project--> Project options --> configures options, I enter the path of the lib in the Linker flags(LDFLAGS) textbox like this: -L/usr/local/lib
- In the Automake manager I select Subproject --> right click on the Program in Bin
--> Options --> Libraries and I add the two library: -lavcodec -lavformat in the box "Library outside project (LDADD)".

But thing doesn't work out. I call the function av_register_all() and get the error:
undefined reference to `av_register_all()'
Then I try like this:
select Subproject --> right click on the Program in Bin
--> Options --> Flags, the I append -lavcodec -lavformat after $(KDE_RPATH) $(all_libraries) in the box Others but error still occurs.

I also add the line LDFLAGS = -L/usr/local/lib -lavcodec -lavformat in the makefile (/debug/makefile), but nothing changes

Could you please give me some instruction ?
I use Kdevelop 3.3.6 and KDE 3.5.6

Thank you very much

Last edited by neikinfology; 07-12-2007 at 03:36 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
list library function of a shared library .so powah Linux - General 7 10-25-2011 04:47 AM
LINUX - linking archive (static library) with shared (dynamic) library gurkama Programming 5 03-04-2007 11:11 PM
KDevelop Executable->static link library lucky6969b Programming 1 02-13-2006 04:01 PM
KDevelop, how to link a library?? Umanga Programming 1 01-10-2005 05:13 PM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration