Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-13-2014, 05:23 AM   #1
LQ Newbie
Registered: Oct 2014
Posts: 2

Rep: Reputation: Disabled
Building app with personnal libraries


I'm trying to install a recent version of unpaper on my laptop. The version included by wy software manager is an old one (before the fork) and so I'm trying to build it from source.
Unpaper depends on libav which is installed on my machine but apparently some headers are missing. I supposed it was a version problem so I got the latest version of libav, built it successfully and installed it somewhere in my home (using --prefix). This version have the include files needed.
Now I'm back trying to build unpaper using the C_INCLUDE_PATH env var and passing "-L/home/myhome/fakeroot/lib" to the linker. It alwas fails during link time with errors that I don't understand.

It says:
/home/myhome/fakeroot/lib/libavcodec.a(opusdec.o) in function opus_decode_subpacket undefined reference to avresample_is_open

but this function is present in libavresample/avresample.h and the libavresample.a match.

What I'm doing wrong ? Could anyone helps me to pass my buil or indicate me another way to get unpaper working (even though I would like to understand what's wrong with my build )

PS : If I don't add the -L option to the linker it fails to link but this is logic.
Old 10-14-2014, 02:15 PM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,504

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641


libav .. is installed on my machine but apparently some headers are missing
The runtime libav* you have is "half a libav* ".

Headers etc. for compiling an application are in the lib<name>-dev packages :

$ sudo apt-get install libavcodec-dev libavformat-dev libavutil-dev

( etc.)


Last edited by knudfl; 10-14-2014 at 02:29 PM.
Old 10-23-2014, 02:32 PM   #3
LQ Newbie
Registered: Oct 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for your reply,

The libav*-dev packages were already installed on my machine. I really don't know why some headers seems to be missing but I succeed in building unpaper. I had to spécify the PKG_CONFIG_LIBDIR variable in the configure script so that the global command was :

./configure PKG_CONFIG_LIBDIR="/path/to/fakeroot/lib/pkgconfig" LDFLAGS="-L/path/to/fakeroot/lib/" CFLAGS="-O2 -march=native -pipe"


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
building libraries shariefbe Linux - Software 2 02-08-2010 01:24 AM
Building Rapidsvn libraries missing windsurfer Linux - Software 9 01-15-2007 05:24 PM
setting path for app n libraries install shizzles Linux - Software 3 07-18-2005 01:26 PM
building on suse 9 using some libraries built on RH? nkshirsagar SUSE / openSUSE 1 05-06-2005 04:41 PM
Looking for a personnal organizer-- problems grizzly Linux - Software 1 07-11-2003 10:21 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:34 PM.

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