tce-load -i compiletc cmake perl5 intltool clang desktop-file-utils libxslt-dev pugixml-dev gtk3-dev lensfun-dev libgphoto2-dev openexr-dev libjxl-dev libheif-dev librsvg-dev exiv227-dev openjpeg-dev iso-codes libsecret-dev graphicsmagick-dev colord-gtk-dev sdl2-dev lua-5.4-dev bash
wget https://github.com/darktable-org/darktable/releases/download/release-5.2.1/darktable-5.2.1.tar.xz
cd darktable-5.2.1
mkdir build
cd build
sudo ln -s /tmp/tcloop/gcc_libs-dev/usr/local/lib/libgomp.spec /usr/lib
cmake -LAH -DCMAKE_C_FLAGS_RELEASE="-flto -mtune=generic -Os -pipe" -DCMAKE_CXX_FLAGS_RELEASE="-flto -mtune=generic -Os -pipe -std=c++14" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=TRUE ../
Exiv2 >= 0.27.4 found, but was not compiled with ISOBMFF support (CR3, AVIF, HEIF)
/usr/local/include/OpenEXR/ImathVec.h:228:41: error: ISO C++17 does not allow dynamic exception specification
find . -name flags.make -type f -exec sed -i 's/-march=native -msse2 -g/-msse2/g' {} \;
find . -name flags.make -type f -exec sed -i 's/-O3//g' {} \;
find . -name link.txt -type f -exec sed -i 's/-march=native -msse2 -g/-msse2/g' {} \;
find . -name link.txt -type f -exec sed -i 's/-O3//g' {} \;
find . -name flags.make -type f -exec sed -i 's/-std=c++17/-std=c++14/g' {} \;
find . -name link.txt -type f -exec sed -i 's/-std=c++17/-std=c++14/g' {} \;
make [13m 58.80s]
sudo make install
clinfo --list
Platform #0: Intel Gen OCL Driver
`-- Device #0: Intel(R) HD Graphics Haswell Ultrabook GT2 Mobile
tc@boxdell:/tmp$ darktable
Beignet: self-test failed: (3, 7, 5) + (5, 7, 3) returned (6, 7, 5)
See README.md or http://www.freedesktop.org/wiki/Software/Beignet/
Beignet: disabling non-working device
OCL_IGNORE_SELF_TEST=1 darktable
Beignet: self-test failed: (3, 7, 5) + (5, 7, 3) returned (6, 7, 5)
See README.md or http://www.freedesktop.org/wiki/Software/Beignet/
Beignet: Warning - overriding self-test failure
Beignet is blacklisted in darktable. You could try to remove it from the list and recompile darktable and see if it works: https://github.com/darktable-org/darktable/blob/master/src/common/opencl_drivers_blacklist.h Line 27. Darktable devs have disabled Beignet because they see not much gain in using intel cards with opencl. You can read more about it here: https://www.darktable.org/2012/03/darktable-and-opencl/
-- The following features have been enabled:
* OpenMP-based threading, used for parallelization of the library
* XML reading, used for loading of data/cameras.xml
* Lossy JPEG decoding, used for DNG Lossy JPEG compression decoding
* ZLIB decoding, used for DNG Deflate compression decoding
-- The following OPTIONAL packages have been found:
* FFI
* zstd
* LLVM
* XMLLINT, command line XML tool,
Used for validation of data/cameras.xml
* Gphoto2 (required version >= 2.5)
* OpenEXR
* JXL (required version >= 0.7.0)
* WebP (required version >= 0.3.0)
* libavif
* libheif
* OpenJPEG
* IsoCodes (required version >= 3.66)
* Libsecret
* GraphicsMagick
* Lua54 (required version >= 5.4)
* Colord
* ColordGTK
* Cups
* SDL2, low level access to audio, keyboard, mouse, joystick, and graphics hardware,
* X11
-- The following REQUIRED packages have been found:
* Threads
* Gettext
* GTK3 (required version >= 3.24.15)
* LibXml2 (required version >= 2.6)
* LensFun
* SQLite3 (required version >= 3.26)
* GIO
* GThread
* GModule
* PangoCairo
* Rsvg2
* PNG
* TIFF
* LCMS2
* JsonGlib
* CURL (required version >= 7.56)
* Exiv2 (required version >= 0.27.2)
* Pugixml (required version >= 1.5), Light-weight, simple and fast XML parser,
Used for loading of data/cameras.xml
* Glib
* ZLIB, software library used for data compression
Used for decoding DNG Deflate compression
* JPEG, free library for handling the JPEG image data format, implements a JPEG codec
Used for decoding DNG Lossy JPEG compression
* OpenMP, Open Multi-Processing,
Used for parallelization of the library
-- The following OPTIONAL packages have not been found:
* Imath (required version >= 3.1)
* PortMidi, Portable MIDI library,
Used for hardware MIDI input devices
* GMIC
* ICU
* OSMGpsMap