Building stable 4.6 release on Ubuntu 23.10 (I have master branch running)

I decided to use master branch and build darktable on my own - some months ago and it worked fine.

With the last update the master branch version changed to 4.7… of course, as the next development cycle begins.

Now I would like to return to 4.6 stable version but I don’t know how to persuade my Ubuntu 23.10 to “git pull” the stable version 4.6.

Can someone give me a hint?

Do you need to use git with the stable version?
If not, you can download the source tarball for 4.6.0
Or, if you cloned the git repository, would git checkout tags/release-4.6.0 work?

1 Like

if you had been running master up to now … then you basically have 4.6.0.

I know, but I don’t like to see the version number and the “dirty” in the top left corner :wink:

Thank you! I think I will do that - download the source manually and compile.

‘dirty’ means you have local modifications.
After checking out the desired branch/tag, update the submodules and do a hard reset on the working copy.

See

I finally decided to go with your suggestion and did the following - and it worked perfectly:

git fetch --tags
git checkout tags/release-4.6.0

git submodule update --init (as mentioned by @kofa )

./build.sh --prefix /opt/darktable --build-type Release --install --sudo

Thank you for the quick help!
Everything perfect now over here :slight_smile:

1 Like

Maybe it would be better to stay with the branch - it will contain further improvements for 4.6:

git fetch -a
git switch darktable-4.6.x
(or “git checkout darktable-4.6.x” for older versions of git)
git submodule update --init --recursive

1 Like

Hi,

not fully related, But I also tried to compile the stable release 4.6, but with Linux Mint 21.2, that is Ubuntu 22.04-based.

Am trying to wade my ways through the dependencies, and currently have teh follwong error when trying to start the build:
"CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
(Required is at least version “4.5”)
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.22/Modules/FindOpenMP.cmake:544 (find_package_handle_standard_args)
CMakeLists.txt:90 (find_package)
"

So I guess, I have not yet suitable openmp-stuff?
Any ideas what I would need to install in Mint 21.2, to get darktable build?

THank you very much for any idea.
All the best and a very nice xmas, Martin

<<started own topic no not spoil this the original threat …>>

I believe it was actually @kmilos who mentioned git submodule update --init --recursive; I used git submodule update in the past, but have now switch to the command kmilos suggested.