If you rerun cmake --build './build' --target install -- -j "$(nproc)" only those files affected by your source code change will be recompiled. In my experience that brings it down to a few seconds, even on a 2 core machine.
Just two thoughts about the isolation issue: Maybe consider setting LD_LIBRARY_PATH as well to reduce your chances of accidentially mixing up the *.so's with your productive version. I don't know for sure how loading of the *.cl kernels is handled but that might be another thing to double-check. Just to be shure. (Personally I use a dedicated VM for development, so take my suggestens as ideas, not as tested procedure.) On Thu, May 2, 2019 at 1:03 PM <dt-l...@stefan-klinger.de> wrote: > Hi, > > for testing I'd like to run DT without installing it, and without > interfering with my setup and foto collection. Installing to an > alternative destination would be ok, but I'd rather just recompile and > run it. > > What is needed to achieve this? Currently I have > > tmp="/tmp"; > > # copy some images > tmpImages="${tmp}/dt-images"; > test -e "${tmpImages}" || rsync -av "${HOME}/foto/20190428-002" > "${tmpImages}" > > # copy some config > tmpCfg="${tmp}/dt-config" > rsync -av --exclude='*.db' "${HOME}/.config/darktable/" "${tmpCfg}" > > # is this necessary? > tmpCache="${tmp}/dt-cache" > mkdir -p "${tmpCache}" > > # temporary install location > prefix="${tmp}/dt-install" > > # building > disable=(flickr libsecret kwallet unity tethering); > ./build.sh -j "$(nproc)" \ > --prefix ${prefix} \ > "${disable[@]/#/--disable-}" \ > --buildtype Release > > # installing > cmake --build './build' --target install -- -j "$(nproc)" > > # running > "${prefix}/bin/darktable" --configdir "${tmpCfg}" --cachedir > "${tmpCache}" \ > > Is this enough to isolate DT from a "production" version and > configuration? > > Is there a way to achieve faster (re)compilation, and maybe running > from the source tree without installing at all? > > Thanks > Stefan > > > -- > http://stefan-klinger.de o/X > I prefer receiving plain text messages, not exceeding 32kB. /\/ > \ > ___________________________________________________________________________ > darktable developer mailing list > to unsubscribe send a mail to > darktable-dev+unsubscr...@lists.darktable.org > > ___________________________________________________________________________ darktable developer mailing list to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org