On Fri, Feb 19, 2016 at 10:02 PM, Tobias Ellinghaus <h...@gmx.de> wrote:
>> rm -fr build
>> rm -fr /opt/darktable/*
>
> Why do people do this? It's making the whole idea of using something like
> "make" pointless. You ONLY have to delete things if a build fails because of
> cached CMake results.

That's not true actually. When we delete a module for some reason if
you don't delete what's in the install directory you'll end up having
a frankenstein install where an old .so gets loaded into a newer
build. It leads to very weird and hard to track down bugs. We had
quite a few reports last time we did that (rawprepare maybe). On the
deleting of build/ you're right, that's mostly for sanity. If you're
rebuilding very infrequently might as well not chance it. For regular
development I usually do a "dobuild" script like I described and a
"dorebuild" script that doesn't nuke build/.

>> git pull upstream master
>
> If you didn't mess with your git configuration a simple "git pull" will be
> enough.

Sure, I was just trying to be as foolproof as possible since the
original question included having issues with gt.

>> ./build.sh --prefix /opt/darktable --buildtype Release
>> cd build
>> make install
>
> If you skipped the "rm" above then you can replace those three lines with
>
> cd build/
> make -j install

Yep, that's what I do in the "dorebuild" script. Usually with -j2 to
not clog up the machine but that's to taste.

> which will build everything missing before installing.
>
>> """ CUT HERE
>>
>> For the second line to work you must be the owner of /opt/darktable/
>> (sudo chown -R youruser.youruser /opt/darktable)
>
> Good advice, it makes everything much more easy.

The other option is to just install into ~/darktable or something like that.

Cheers,

Pedro

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Darktable-users mailing list
Darktable-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-users

Reply via email to