Finding dependencies to compile from source

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Finding dependencies to compile from source

Postby yankee495 » Dec 30th, '15, 17:07

Hello everyone and happy new year! (Close enough and I won't be able to type that so easy in a few days)

I know how to compile and install a program and have done it with several versions of Darktable. This time I need to do it on four computers and I just don't know how to find/install everything needed to compile it. I know I can give it a go and when it errors install what caused the error. Here is the dependencies for Fedora but the file names for Mageia are different and I need to make sure I get 64 bit packages.

Code: Select all
If you want to build darktable from the source on Fedora, here are the build dependencies:
# dnf install intltool atk-devel cairo-devel exiv2-devel fontconfig-devel freetype-devel libgomp gtk2-devel libjpeg-turbo-devel libtiff-devel lcms2-devel lensfun-devel libpng-devel libsq3-devel libstdc++-devel libxml2-devel OpenEXR-devel libcurl-devel libgphoto2-devel dbus-glib-devel libgnome-keyring-devel fop librsvg2-devel flickcurl-devel cmake libsoup-devel gcc-c++ colord-devel saxon libsecret-devel lua lua-devel GraphicsMagick openjpeg-devel json-glib-devel libwebp-devel SDL-devel


I have the source code in a folder ready to compile but would like to know if there is an easy way to compare what is installed against what is needed and get a list or have it install the needed packages? Also, I figured there may be a way from a tarball but Darktale says to use the xz file not the auto generated tarball. I don't know what the difference is or if that would be a problem.

Code: Select all
Current release from source
    Grab the latest source tarball (recent version: darktable 2.0.0) – make sure to use the .tar.xz file and not the auto generated .zip or .tar.gz!


Darktable info is here: http://www.darktable.org/install/

I know I can hack away at it and make a list but there has to be an easier way, automatic would be nice. I'm having shoulder surgery in early January so I'm trying to get everything done so I can goof off a lot and read a lot and everything that only requires one arm ( I won't be using it for quite a while)! ;)

I have a giant bone spur and scratched my back which tore my tendon loose and my rotator cuff! Yep, scratched my back and not way far up there either. When I was 20 I could reach back there and scratch the back of my neck! I guess this is the other side of the hill. :o

Oh, the other 3 computers are converts, a friend, a neighbor and my wife. I finally got my wife a decent dual core going that is about 2x faster than her laptop is. Mageia improved the speed of the laptop and combined with an SSD she was very happy and said she didn't need a desktop, but I knew better. Now she not only loves the speed but the bigger monitor and full size keyboard have proven to her that I WAS RIGHT! When I upgraded my desktop to an i5 I offered her my Phenom II 955 BE, board and RAM but she didn't want it so I sold it. Now I'm kicking myself. I knew better and could've managed without the money.
There are 10 types of people, those who understand binary & those who don't.
Main Desktop
http://www.overclock.net/lists/display/view/id/3960066
yankee495
 
Posts: 433
Joined: May 25th, '12, 13:10
Location: Carthage, Mo. USA

Re: Finding dependencies to compile from source

Postby doktor5000 » Dec 30th, '15, 18:49

Why don't you simply grab the latest darktable src.rpm from cauldron, install all the dependencies via urpmi --buildrequires and then build from that?

That would be
Code: Select all
wget http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/cauldron/SRPMS/core/release/darktable-1.6.9-1.mga6.src.rpm
urpmi --buildrequires darktable-1.6.9-1.mga6.src.rpm
rpmbuild --rebuild darktable-1.6.9-1.mga6.src.rpm


FWIW only urpmi --buildrequires should be run as root, the rest as normal user.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Finding dependencies to compile from source

Postby yankee495 » Dec 30th, '15, 18:59

Sorry Dok I didn't mention it is Darktable 2.0. They've added a lot of features to it and I'd sure like to have that stuff. I know not to leave out details, sorry about that. I don't know of a compatible 2.0 source RPM.
There are 10 types of people, those who understand binary & those who don't.
Main Desktop
http://www.overclock.net/lists/display/view/id/3960066
yankee495
 
Posts: 433
Joined: May 25th, '12, 13:10
Location: Carthage, Mo. USA

Re: Finding dependencies to compile from source

Postby doktor5000 » Dec 30th, '15, 19:11

Well, you can simply bump it to 2.0. Instead of only running the rebuild, install it as regular user via
Code: Select all
rpm -ihv darktable-1.6.9-1.mga6.src.rpm

and then adjust the ~/rpmbuild/SPECS/darktable.spec accordingly, you would need to
change the Version to 2.0 and put the 2.0 tarball in ~/rpmbuild/SOURCES.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest