LinuxQuestions.org
Help answer threads with 0 replies.
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 01-26-2017, 11:31 AM   #1
borisb2
Member
 
Registered: Mar 2016
Posts: 39

Rep: Reputation: Disabled
compiling darktable 2.2.1 for CentOS 7


trying to complile darktable from source (there is no rpm for 2.2.1)

build.sh is erroring because it requires exiv2-0.25 library. For Centos there is only 0.23 rpm available. So I tried to compile that as well from source. make and make install went through ..but it seems that 0.23 is still installed (building makefiles for darktable still complains about wrong exiv2 version 0.23 (which was installed )

"yum list installed" also shows 0.23 :/

Did I miss anything after runnning make install? Shouldnt it be now 0.25?
 
Old 01-26-2017, 12:48 PM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,197

Rep: Reputation: 164Reputation: 164
You can download exiv-0.25 here: http://www.exiv2.org/download.html
and compile it afterwards.

Then the install process should complete.
 
Old 01-26-2017, 01:33 PM   #3
borisb2
Member
 
Registered: Mar 2016
Posts: 39

Original Poster
Rep: Reputation: Disabled
well .. thats exactly where I downloaded the source and compiled it.

executing "./configure" gives me this:

...
checking whether to compile with video support... no
checking whether to compile with webready support... no
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for XML_ParserCreate in -lexpat... yes
configure: creating ./config.status
config.status: creating ./Makefile
config.status: creating ./config/config.mk
config.status: creating ./config/exiv2.pc
config.status: creating ./po/Makefile.in
config.status: creating ./src/doxygen.hpp
config.status: creating ./config/config.h
config.status: executing default-1 commands
config.status: creating ./po/POTFILES
config.status: creating ./po/Makefile
config.status: executing libtool commands
------------------------------------------------------------------
-- Exiv2 0.25 feature configuration summary
--
-- Build a shared library......... YES
-- Use symbol visibility support.. YES
-- PNG image support.............. YES
-- Native language support........ YES
-- Nikon lens database............ YES
-- XMP metadata support........... YES
-- Video support.................. NO
-- Webready support............... NO
------------------------------------------------------------------


no errors shown. Running "make" next takes a while, again no errors shown.

Now running "sudo make install" gives me this:
...
libtool: install: chmod 644 /usr/local/lib/libexiv2.a
libtool: install: ranlib /usr/local/lib/libexiv2.a
libtool: finish: PATH="/sbin:/bin:/usr/sbin:/usr/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib

and again, no errors.

Now the big surprise, "yum list installed" still shows 0.23

exiv2.x86_64 0.23-6.el7 @base
exiv2-devel.x86_64 0.23-6.el7 @base
exiv2-libs.x86_64 0.23-6.el7 @anaconda

and darktable wont build of course. What did I do wrong??

Last edited by borisb2; 01-26-2017 at 01:34 PM.
 
Old 01-27-2017, 11:11 AM   #4
borisb2
Member
 
Registered: Mar 2016
Posts: 39

Original Poster
Rep: Reputation: Disabled
Am I missing something?

Thanks for pointing me in the right direction
 
Old 01-27-2017, 01:28 PM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249
you have to tell the darktable installer script or whatever that exiv2 0.25 is in /usr/local/lib, not /usr/lib.
 
Old 01-27-2017, 02:59 PM   #6
borisb2
Member
 
Registered: Mar 2016
Posts: 39

Original Poster
Rep: Reputation: Disabled
I had a look in the configure files for darktable (grep -r -e "Exiv2...") - there are quite a few place where I have to look in order to find the right variable.. What I tried instead is to compile exiv2-0.25 again, but this time in usr/lib .. make install installed it correctly

----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib

.. and once more, "yum list installed" still shows 0.23

exiv2.x86_64 0.23-6.el7 @base
exiv2-devel.x86_64 0.23-6.el7 @base
exiv2-libs.x86_64 0.23-6.el7 @anaconda

This is frustrating.. shouldn't 0.25 be there instead?
 
Old 01-27-2017, 07:12 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,523

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
normally if i am building something that requires NEWER versiond of software than are in the OS's repos

i build it and ALL of it's dependencies out of the system $PATH
darktable should build just like i do for gimp 2.9 development
i build it in my
/home/userName/bin/SourceFolder
and install it to
/home/userName/bin/ProgramNameFolder

and use a "config.site" file in
/home/userName/bin/ProgramNameFolder/share
the text file that is
/home/userName/bin/ProgramNameFolder/share/config.site
has the build variables to be exported to autotools
-- an example for my gimp2.9.4 build
Code:
export PATH="/home/johnvv/bin/Gimp/bin:$PATH"
export PKG_CONFIG_PATH="/home/johnvv/bin/Gimp/lib64/pkgconfig:$PKG_CONFIG_PATH"
export LD_LIBRARY_PATH="/home/johnvv/bin/Gimp/lib64:$LD_LIBRARY_PATH"
export ACLOCAL_FLAGS="-I /home/johnvv/bin/Gimp/share/aclocal $ACLOCAL_FLAGS"
export XDG_DATA_DIRS="/home/johnvv/bin/Gimp/share:$XDG_DATA_DIRS"
i build that and a newer libpng in the gimp install location

you can do the same thing for darktable on Cent7


have a read through the gimp dev build wiki
( gimp is a GREAT TOOL to use for examples do to the MASSIVE DOCUMENTATION )
http://wiki.gimp.org/wiki/Hacking:Building/Linux

just port the instructions for use with darktable

for the config.site use google and gnu
-- old but usable
https://www.gnu.org/software/automak..._002esite.html

Last edited by John VV; 01-27-2017 at 07:18 PM.
 
Old 01-28-2017, 03:50 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249Reputation: 5249
Quote:
Originally Posted by borisb2 View Post
.. and once more, "yum list installed" still shows 0.23
yum is a packet manager; it knows only of software installed via packet management.

re my previous post:
i was rather thinking of some command line option or environment variable.
if you have a ./configure script in there, try
Code:
./configure --help
and if not, still:
documentation is probably right under your nose.
 
Old 01-28-2017, 10:49 AM   #9
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 5,790

Rep: Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153Reputation: 2153
I've successfully installed Fedora RPMs on CentOS. Red Hat 7 was based on Ferdora 19, so try this
http://rpm.pbone.net/index.php3/stat...86_64.rpm.html
 
Old 01-28-2017, 03:01 PM   #10
borisb2
Member
 
Registered: Mar 2016
Posts: 39

Original Poster
Rep: Reputation: Disabled
thanks all . I will continue investigating.

I have darktable 2.0.7 running (installed through el7 a while ago) but that doesnt support Canon 5D IV.

haven't found a rpm for fedora 19 for darktable 2.2.1 yet - and the one existing for fedora 23/24/25 doesnt run on centos7

Last edited by borisb2; 01-28-2017 at 03:08 PM.
 
Old 01-28-2017, 03:47 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,523

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
if you need a really NEW version of a program on the very very conservative ( older but bug fixed and STABLE!!! code) operating system
rhel is very conservative in use of code !!!

then build it out of the system path

it is rather easy to do

cent like it's redhat parent considers STABILITY FIRST
so the software is a bit older but DOSE NOT crash
 
Old 01-28-2017, 04:05 PM   #12
borisb2
Member
 
Registered: Mar 2016
Posts: 39

Original Poster
Rep: Reputation: Disabled
yeah I know .. I chose CentOS because its rock stable when working with graphics and 3D (what I mainly do for work)

for personal poto-editing I do miss lightroom - and still haven't found the best equivalent in linux. so far I was testing darktable and AfterShot
 
Old 01-31-2017, 03:26 PM   #13
borisb2
Member
 
Registered: Mar 2016
Posts: 39

Original Poster
Rep: Reputation: Disabled
so, in FindExiv2.cmake I found:


--------
set(EXIV2_NAMES ${EXIV2_NAMES} exiv2 libexiv2)
find_library(EXIV2_LIBRARY NAMES ${EXIV2_NAMES} )
mark_as_advanced(EXIV2_LIBRARY)

libfind_pkg_check_modules(Exiv2 exiv2)
--------

which is included by LibFindMacros.cmake here:

--------
libfind_pkg_check_modules(${PREFIX}_PKGCONF ${pkgargs})
if (pathargs)
find_path(${PREFIX}_INCLUDE_DIR NAMES ${pathargs} HINTS ${${PREFIX}_PKGCONF_INCLUDE_DIRS})
endif()
if (libraryargs)
find_library(${PREFIX}_LIBRARY NAMES ${libraryargs} HINTS ${${PREFIX}_PKGCONF_LIBRARY_DIRS})
endif()
--------

And how exactly would I define there to search in /usr/local/lib instead of /usr/lib?
 
Old 02-03-2017, 02:36 AM   #14
borisb2
Member
 
Registered: Mar 2016
Posts: 39

Original Poster
Rep: Reputation: Disabled
anyone who compiled darktable on centos?

any pointing in the right direction would be great

I love and need the stability of CentOS, but sometimes fighting for software is a bit annoying
(having similar issues at the moment for HDR-software: 10+ packages for Win/mac/ubuntu .. 0 for CentOS )
 
Old 02-03-2017, 12:24 PM   #15
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,523

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
i did, build it out of the system path .

and install the dependencies you build in that folder also

see my above posts

i use gimp as a guide do to the TON!!! of documentation
 
  


Reply


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
LXer: How to use Darktable as a digital darkroom LXer Syndicated Linux News 0 04-14-2016 07:13 AM
Darktable anyone used davholla Linux - Software 5 08-30-2015 04:09 PM
How to update the LensFun database in Darktable? cryan Linux - Software 1 03-12-2015 02:31 PM
LXer: Darktable For Open-Source Photography LXer Syndicated Linux News 0 01-21-2012 03:40 PM
Cannot build git version of darktable arubin Slackware 11 01-12-2012 02:44 PM

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

All times are GMT -5. The time now is 04:18 AM.

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