LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-11-2012, 12:57 PM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
Cannot build git version of darktable


I have the slackbuild of darktable installed but this does not work properly with files from my camera, panasonic G3.

I have been told to try a more recent version and have been trying the git version. That build fails with

Quote:
[ 30%] Building C object src/CMakeFiles/lib_darktable.dir/common/collection.c.o
In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:34:0,
from /usr/include/glib-2.0/glib.h:34,
from /home/alan/temp/git/darktable/src/common/collection.c:23:
/usr/include/glib-2.0/glib/gthread.h: In function 'g_once_init_enter':
/usr/include/glib-2.0/glib/gthread.h:347:3: error: size of unnamed array is negative
make[2]: *** [src/CMakeFiles/lib_darktable.dir/common/cache.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [src/CMakeFiles/lib_darktable.dir/common/collection.c.o] Error 1
make[1]: *** [src/CMakeFiles/lib_darktable.dir/all] Error 2
make: *** [all] Error 2
alan@LavanKossot:~/temp/git/darktable$
A bit of a long shot but does anyone know what the problem is here?
 
Old 01-11-2012, 01:39 PM   #2
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
You need to upgrade glib2 to at least 2.30.

First, build and install libffi from SlackBuilds.org (new dependency of glib2-2.30)

Then, get Pat's source files from source/l/glib2/, remove glib-2.28.6.tar.xz and get glib-2.30.2.tar.xz , then run Pat's SlackBuild (no changes needed), and upgrade to the new package.

Now darktable git will build, but who knows what else might have been broken by the new glib2... better downgrade back to glib2-2.28.6 when you've finished with testing darktable
 
1 members found this post helpful.
Old 01-11-2012, 01:40 PM   #3
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware-15.0; -current
Posts: 245

Rep: Reputation: 60
Just a stab in the dark. Maybe this version needs a newer glib2 version?
 
Old 01-11-2012, 02:08 PM   #4
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
Thanks. Will multilib be an issue?
 
Old 01-11-2012, 05:17 PM   #5
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
No, multilib won't be an issue. Just leave glib2-compat32-2.28.6-x86_64-1 in situ. Your darktable will be native x86_64 and linked to glib2-2.30.2-x86_64-1.

In this situation, because any upgrade of one of Pat's packages takes you "off piste", the 32 bit side of your multilib will actually be less dodgy than the 64 bit side... unless/until you revert the latter to glib2-2.28.6-x86_64-1.
 
1 members found this post helpful.
Old 01-11-2012, 05:39 PM   #6
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
It still fails

Quote:
[ 33%] Building C object src/CMakeFiles/lib_darktable.dir/common/film.c.o
[ 33%] Building C object src/CMakeFiles/lib_darktable.dir/common/fswatch.c.o
/home/alan/temp/git2/darktable/src/common/exif.cc: In function 'int dt_exif_read_blob(uint8_t*, const char*, int, int)':
/home/alan/temp/git2/darktable/src/common/exif.cc:555:22: error: cast from 'void*' to 'gint' loses precision
make[2]: *** [src/CMakeFiles/lib_darktable.dir/common/exif.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/CMakeFiles/lib_darktable.dir/all] Error 2
make: *** [all] Error 2
alan@LavanKossot:~/temp/git2/darktable$
 
Old 01-11-2012, 06:58 PM   #7
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Apparently you're not using my SlackBuild. You should. It includes a patch for this exact problem :P
 
Old 01-12-2012, 01:10 AM   #8
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
I didn't know it was possible to use the slackbuild with the git. What do I do? Tar up darktable?
 
Old 01-12-2012, 04:44 AM   #9
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
yes, and edit a little the slackbuild if you use a different compression format from the original.
To avoid editing it, you'll find often in slackbuilds this syntax for extracting tarballs
Code:
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
so that the most common ones(also gz, bz2 and xz) are supported.

if can be useful to you I made a little script to create versioned .tar.xz tarballs from inside a git tree, to avoid repeating this manual operation each time.
It's very raw but seems to work

https://raw.github.com/Ponce/project.../giver_tarball
 
2 members found this post helpful.
Old 01-12-2012, 10:28 AM   #10
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Ponce's solution is exactly what I would usually do, or sometimes copy and paste each command from a SlackBuild, one at a time, into a terminal window if I'm expecting trouble

(... which is one advantage of SlackBuilds over the config-driven equivalents in Arch and Gentoo: you can't, AFAIK, single-step an emerge)
 
Old 01-12-2012, 02:35 PM   #11
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
Its compiled! Thanks a lot. Now to see if it handles my files any better.
 
Old 01-12-2012, 02:44 PM   #12
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
And the answer is I don't have the issues that I had before but it seems that it is demanding far more resources.
 
  


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
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
version of git that works with suse 9.3 kaplan71 SUSE / openSUSE 3 02-24-2010 03:51 PM
Wine git tree Build Script ozanbaba Slackware 0 12-18-2009 03:06 PM
LXer: Microsoft uses git for version control LXer Syndicated Linux News 0 04-02-2009 04:30 AM
GIT Version Control System - need help getting started HelpMe2877 Linux - Server 2 07-01-2008 03:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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