Project

General

Profile

Bug #12350

Struggling to build dt for windows

Added by pass 712 2 months ago. Updated 6 days ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
10/03/2018
Due date:
% Done:

0%

Affected Version:
git master branch
System:
Windows
bitness:
64-bit
hardware architecture:
amd64/x86

Description

Hi everyone,

following the instructions in build.txt I tried to build dt for windows using MSYS2. I managed to set up MSYS2, libs an so on but failed to build darktable via

$ cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/darktable ../.

cmake runs until it complains that it can't find GTK3:

:
:
-- Found Glib
-- Checking for module 'gtk+-3.0'
-- No package 'gtk+-3.0' found
CMake Error at C:/msys64/mingw64/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find GTK3 (missing: GTK3_INCLUDE_DIRS GTK3_LIBRARIES) (Required
is at least version "3.14")
Call Stack (most recent call first):
C:/msys64/mingw64/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindGTK3.cmake:58 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
src/CMakeLists.txt:252 (find_package)
:
:

=============

This is what pacman says:

$ pacman -Ss gtk3
mingw32/mingw-w64-i686-gtk3 3.24.1-1 [Installiert]
GObject-based multi-platform GUI toolkit (v3) (mingw-w64)
mingw32/mingw-w64-i686-gtkmm3 3.22.2-1
C++ bindings for gtk3 (mingw-w64)
mingw32/mingw-w64-i686-spice-gtk 0.33-1
GTK3 widget for SPICE clients (mingw-w64)
mingw32/mingw-w64-i686-webkitgtk3 2.4.11-6
GTK+ Web content engine library (mingw-w64)
mingw64/mingw-w64-x86_64-gtk3 3.24.1-1 [Installiert]
GObject-based multi-platform GUI toolkit (v3) (mingw-w64)
mingw64/mingw-w64-x86_64-gtkmm3 3.22.2-1 [Installiert]
C++ bindings for gtk3 (mingw-w64)
mingw64/mingw-w64-x86_64-spice-gtk 0.35-1 [Installiert]
GTK3 widget for SPICE clients (mingw-w64)
mingw64/mingw-w64-x86_64-webkitgtk3 2.4.11-6
GTK+ Web content engine library (mingw-w64)

===========

I tried to skip GTK3 and cmake stops again at lensfun:

:
:
-- Found Glib
-- Checking for one of the modules 'libsoup-2.4;libsoup2'
-- Checking for one of the modules 'libsoup-2.2;libsoup2'
CMake Error at C:/msys64/mingw64/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find LENSFUN (missing: LENSFUN_INCLUDE_DIR)
Call Stack (most recent call first):
C:/msys64/mingw64/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindLensFun.cmake:37 (find_package_handle_standard_args)
src/CMakeLists.txt:302 (find_package)
:
:

==================

... which is installed, too:
$ pacman -Ss lensfun
mingw32/mingw-w64-i686-lensfun 0.3.95-1
Database of photographic lenses and a library that allows advanced access to the database (mingw-w64)
mingw64/mingw-w64-x86_64-lensfun 0.3.95-1 [Installiert]
Database of photographic lenses and a library that allows advanced access to the database (mingw-w64)

=============================

It seems as if all (mingw-w64-x86_64-)prefixed packages can't be found. Am I missing something ? Maybe an additional path information ?

Logfiles for the latter test (lensfun) are added below.

Hoping for help
Jürgen

CMakeError.log Magnifier (2.64 KB) pass 712, 10/03/2018 05:00 PM

CMakeOutput.log Magnifier (15.5 KB) pass 712, 10/03/2018 05:00 PM

CMakeError.log Magnifier - After downgrading lensfun (19.7 KB) pass 712, 12/10/2018 06:48 PM

CMakeOutput.log Magnifier - After downgrading lensfun (240 KB) pass 712, 12/10/2018 06:48 PM

History

#1 Updated by Peter Budai 8 days ago

You need to downgrade lensfun library, as the 3.95 is not compatible with darktable
Download the prior version of lensfun:
http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-lensfun-0.3.2-4-any.pkg.tar.xz

And install with:
pacman -U mingw-w64-x86_64-lensfun-0.3.2-4-any.pkg.tar.xz

Then do a clean build

#2 Updated by Peter Budai 7 days ago

And one more thing: Jurgen, which shell are you using: MSYS2 or MINGW64 or MINGW32?

#3 Updated by pass 712 6 days ago

Hi Peter,

thanks for your help!

I downgraded lensfun and started build from scratch (original CMakesList.txt) but as it seems nothing has changed.

I'm using the msys2-Shell.

Logfiles are added.

Jürgen

Also available in: Atom PDF