Build for Windows, help please

@MarcoNex
Win 10 64b, Ryzen gen 2 2700X, gtx 1660 Ti.
I fetched, installed and tested.
Runs just fine here.

Have fun!
Claes in Lund, Sweden

I also have a Ryzen 5 at it works for me

Ok, the problems seems about compiler flags.
I found an option in the CMakeLists.txt to disable the compile optimizations for redistributable package build.
Here is DT 2.6.2 built with that option enabled.
Please test it on Intel CPUs. If it works, I will make DT 2.7 as well.

Same result for me I’m afraid. :frowning:

AMD FX 8350 …Win10 Pro…This build for me doesn’t appear to run…does nothing opens and closes…opencl test generates an unhandled exception…so still no joy …your a trooper for trying…I am assuming the builds work for you??

Not sure which option you found but this one looks promising:

option(BINARY_PACKAGE_BUILD "Sets march optimization to generic" OFF)

Of course, anyone who actually knows what they’re talking about, feel free to correct me… lol

Are you on win10 Pro or home??

Seems to work on Ryzen from a couple of replies so you could be on to something also wondering about the Win version…I saw a Home user say it worked for him and your 2.7 version worked for me on a PC using Win10 Home but the two PC’s I tried earlier with Intel i7 and AMD 8350FX respectively would not run so I wonder if it is something related to that…if anyone gets it going on Pro then that shoots that theory down…

Claes…is that WIn10 Pro or Home version??

I have Windows 10 Home, Version1809, OS Build 17763.437 with nVidia 750.
Ryzen 5

Thanks for sharing…I have not seen one person that said they were running on Pro that got it to work so maybe there is some issue…I will dig into what that could be…

Yeah, this is the switch I activated, but apparently doesn’t solve the problem.
I’m running out of options…
If the official DT 2.6.2 works for you, what I can try to do is to contact the maintainer of the Windows build and ask for help

Yeah, the official 2.6.2 works for me.

Just a thought…
After setting the before mentioned option to on, did you delete the previous build before starting the build again?

This maybe a silly question but you never know.

Hey thanks for spending time on this…it would be interesting to know what the issue is but the stable release works for me so I just need to find time to try and compile on my machine or wait for the official release of the new features…thanks again…I did some googling to try and see if there was something intrinsic to the Professional version that might explain the issue but I didn’t uncover anything…

Win 10 Pro

I was able to reproduce the issue on my company laptop with Intel i5 running Win 10 Pro.
I could try to set up the build environment there and check if I manage to get a package that runs on both platforms.

@Marctwo
Yes, I did a clean build, but no luck.

Looking in ‘cmake\march-mtune.cmake’ with ‘BINARY_PACKAGE_BUILD’ set you should get the message “-- Checking for -mtune=generic support”. Do you see that message when building?

Yes, that’s what I get.
Here is the complete output

$ cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/darktable ../.
CMake Deprecation Warning at CMakeLists.txt:5 (cmake_policy):
  The OLD behavior for policy CMP0048 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- Building SSE2-optimized codepaths: ON
-- Found little endian system. Good.
-- Is the target platform supported: 1
-- Win32 build detected, setting default features
-- Performing Test C_COMPILER_UNDERSTANDS_-Wno-error=varargs
-- Performing Test C_COMPILER_UNDERSTANDS_-Wno-error=varargs - Success
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wno-error=varargs
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wno-error=varargs - Success
-- Performing Test C_COMPILER_UNDERSTANDS_-Wno-error=address-of-packed-member
-- Performing Test C_COMPILER_UNDERSTANDS_-Wno-error=address-of-packed-member - Failed
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wno-error=address-of-packed-member
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wno-error=address-of-packed-member - Failed
-- Performing Test C_COMPILER_UNDERSTANDS_-Wframe-larger-than=32768
-- Performing Test C_COMPILER_UNDERSTANDS_-Wframe-larger-than=32768 - Success
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wframe-larger-than=32768
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wframe-larger-than=32768 - Success
-- Performing Test C_COMPILER_UNDERSTANDS_-Wstack-usage=32768
-- Performing Test C_COMPILER_UNDERSTANDS_-Wstack-usage=32768 - Success
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wstack-usage=32768
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wstack-usage=32768 - Success
-- Performing Test C_COMPILER_UNDERSTANDS_-Wlarger-than=524288
-- Performing Test C_COMPILER_UNDERSTANDS_-Wlarger-than=524288 - Success
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wlarger-than=524288
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wlarger-than=524288 - Success
-- Looking for external programs
-- Found perl
-- Found intltool-merge
-- Missing desktop-file-validate, problems in darktable.desktop might go unnoticed
-- Test-compilation of OpenCL programs is disabled.
-- Found jsonschema
-- Found xsltproc
-- Found xmllint
-- All external programs found
-- Found msgfmt to convert .po file. Translation enabled
-- Checking for -mtune=generic support
-- Checking for -mtune=generic support - works
-- Checking for -std=c++14 support
-- Checking for -std=c++14 support - works
-- Looking for OpenMP
-- Found OpenMP_C: -fopenmp (Required is at least version "4.0")
-- Found OpenMP_CXX: -fopenmp (Required is at least version "4.0")
-- Found OpenMP: TRUE (Required is at least version "4.0")
-- Looking for OpenMP - found (system)
-- Looking for pugixml
-- Found Pugixml 1.9
-- Looking for pugixml - found (system)
-- Looking for JPEG
-- Looking for JPEG - found
-- Looking for ZLIB
-- Looking for ZLIB - found (system)
-- 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:

 * Gettext
 * XMLLINT, command line XML tool, <http://xmlsoft.org/>
   Used for validation of data/cameras.xml

-- The following RECOMMENDED packages have been found:

 * OpenMP (required version >= 4.0), Open Multi-Processing, <https://www.openmp.org/>
   Used for parallelization of the library
 * JPEG, free library for handling the JPEG image data format, implements a JPEG codec
   Used for decoding DNG Lossy JPEG compression
 * ZLIB, software library used for data compression
   Used for decoding DNG Deflate compression

-- The following REQUIRED packages have been found:

 * Pugixml (required version >= 1.2), Light-weight, simple and fast XML parser, <http://pugixml.org/>
   Used for loading of data/cameras.xml

-- Checking for -std=c++14 support
-- Checking for -std=c++14 support - works
-- Found OpenMP_C: -fopenmp
-- Found OpenMP_CXX: -fopenmp
-- Found OpenMP: TRUE
-- Found Glib 2.58.3
-- Found LibXml2: C:/msys64/mingw64/lib/libxml2.dll.a (found suitable version "2.9.9", minimum required is "2.6")
-- Checking for one of the modules 'libsoup-2.2;libsoup2'
-- Found GIO
-- Found LibXml2: C:/msys64/mingw64/lib/libxml2.dll.a (found version "2.9.9")
-- Found Sqlite3 3.27.2
-- Found CURL: C:/msys64/mingw64/lib/libcurl.dll.a (found version "7.64.1")
-- Found JsonGlib
-- Found OpenJPEG
-- Found GraphicsMagick
-- Does the compiler support __builtin_cpu_supports(): 1
-- Checking for -mtune=generic support
-- Lua support: Enabled
-- Found Pugixml 1.9
-- Map mode: enabled
-- Print mode: disabled
-- Found CURL: C:/msys64/mingw64/lib/libcurl.dll.a (found suitable version "7.64.1", minimum required is "7.56")
-- Found recent CURL version to build piwigo.
-- WIN32: Adding dependency files to install
-- Installing lensfun database from C:/msys64/mingw64/bin/../var/lib/lensfun-updates/version_1
--
Missing xml2po. No localized usermanuals are build
Missing xml2po
Can NOT update usermanual translations
Missing po4a-translate. Can NOT create translated manpages
Missing po4a-updatepo. Can NOT update manpage translations
-- Configuring done
-- Generating done
-- Build files have been written to: C:/msys64/home/marco/darktable-2.6/darktable/build

That looks like it’s only the build configuration output.
I’ve never used this build environment but I’d expect to see a lot of output from the compiler tools.

The two 2.6.2 installers you’ve linked are:
1. darktable-2.6.2+4~ged2c42df9-win64.exe
2. darktable-2.6.2+4~ged2c42df9-dirty-win64.exe
Both versions when installed have exactly the same folder size (301,184,462 bytes). This with the ‘dirty’ in the second filename seems to imply that the second version wasn’t a clean build.

Again, I don’t know this environment but are you sure you deleted the build folder between builds?