AntiDupl icon indicating copy to clipboard operation
AntiDupl copied to clipboard

Compilation failure, probably because of upstream changes

Open skycommand opened this issue 11 months ago • 2 comments

Hi.

Today, I decided to compile this project against .NET 8.0. I thought, "how hard could be?" As it turns out, very!

Firstly, vcpkg failed with this error message:

error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Please add 'builtin-baseline' to the manifest or add a 'vcpkg-configuration.json' that redefines the default registry.

So, as the error message says, I added a vcpkg-configuration.json file:

{
  "default-registry": {
    "kind": "git",
    "baseline": "2960d7d80e8d09c84ae8abf15c12196c2ca7d39a",
    "repository": "https://github.com/microsoft/vcpkg"
  },
  "registries": [
    {
      "kind": "artifact",
      "location": "https://github.com/microsoft/vcpkg-ce-catalog/archive/refs/heads/main.zip",
      "name": "microsoft"
    }
  ]
}

This time, the build process built a vcpkg_installed folder, the size of which is 3.56 GB. But ultimately, AntiDupl's build stopped with these errors:

1>adDataCollector.cpp
1>F:\Projects\AntiDupl (original)\src\AntiDupl\adDataCollector.cpp(101,10): error C2039: 'ResizeBilinear': is not a member of 'Simd'
1>    F:\Projects\AntiDupl (original)\src\AntiDupl\adSimd.h(32,11):
1>    see declaration of 'Simd'
1>F:\Projects\AntiDupl (original)\src\AntiDupl\adDataCollector.cpp(101,10): error C3861: 'ResizeBilinear': identifier not found

1>adImageUtils.cpp
1>F:\Projects\AntiDupl (original)\src\AntiDupl\adImageUtils.cpp(67,31): error C2039: 'ResizeBilinear': is not a member of 'Simd'
1>    F:\Projects\AntiDupl (original)\src\AntiDupl\adSimd.h(32,11):
1>    see declaration of 'Simd'
1>F:\Projects\AntiDupl (original)\src\AntiDupl\adImageUtils.cpp(67,31): error C3861: 'ResizeBilinear': identifier not found

1>F:\Projects\AntiDupl (original)\src\AntiDupl\adImageUtils.cpp(74,31): error C2039: 'ResizeBilinear': is not a member of 'Simd'
1>    F:\Projects\AntiDupl (original)\src\AntiDupl\adSimd.h(32,11):
1>    see declaration of 'Simd'
1>F:\Projects\AntiDupl (original)\src\AntiDupl\adImageUtils.cpp(74,31): error C3861: 'ResizeBilinear': identifier not found

1>F:\Projects\AntiDupl (original)\src\AntiDupl\adImageUtils.cpp(78,31): error C2039: 'ResizeBilinear': is not a member of 'Simd'
1>    F:\Projects\AntiDupl (original)\src\AntiDupl\adSimd.h(32,11):
1>    see declaration of 'Simd'
1>F:\Projects\AntiDupl (original)\src\AntiDupl\adImageUtils.cpp(78,31): error C3861: 'ResizeBilinear': identifier not found

1>adJxl.cpp
1>F:\Projects\AntiDupl (original)\src\AntiDupl\adJxl.cpp(136,7): error C2660: 'JxlDecoderGetICCProfileSize': function does not take 4 arguments

What am I doing wrong?

skycommand avatar Jan 21 '25 14:01 skycommand

Hi, I was running into the same problem. Just replace "ResizeBilinear" with "Resize". Besides I was having another minor incompatiblity in the call to JxlDecoderGetICCProfileSize. See the enclosed patch.

Antidupl.patch

celan69 avatar Apr 08 '25 07:04 celan69

@celan69 Thanks a lot. Applying your patch enabled me to compile the app. The app runs. I haven't tested further, though, because today's the Patch Tuesday. But if you didn't hear from me, everything is probably alright.

Thanks again.

skycommand avatar Apr 09 '25 00:04 skycommand