LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-13-2014, 04:23 AM   #1
kerloi
LQ Newbie
 
Registered: Oct 2014
Posts: 2

Rep: Reputation: Disabled
Building app with personnal libraries


Hi,

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, 01:15 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
"unpaper-6"

"unpaper-6" https://www.flameeyes.eu/projects/unpaper



Quote:
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

( http://packages.ubuntu.com/trusty/libavcodec-dev etc.)


-

Last edited by knudfl; 10-14-2014 at 01:29 PM.
 
Old 10-23-2014, 01:32 PM   #3
kerloi
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 :

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


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

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

All times are GMT -5. The time now is 12:03 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