Windows build fails at MediaCapabilities.cpp(323): error C2327

John Neffenger john at status6.com
Mon Jan 2 21:04:19 UTC 2023


After fixing the error with Cygwin Python 3.9 (see previous message), 
I'm now getting the compiler error shown below. I haven't seen this before.

==================================================
FAILED: Source/WebCore/CMakeFiles/WebCore.dir/__/__/WebCore/
   DerivedSources/unified-sources/UnifiedSource-4babe430-14.cpp.obj

...

C:\cygwin64\home\john\src\jfx\modules\javafx.web\src\main\native\
   Source\WebCore\Modules/mediacapabilities/MediaCapabilities.cpp(323):
   error C2327: 'WebCore::MediaCapabilities::m_encodingTasks':
   is not a type name, static, or enumerator
==================================================

I'm building with the latest Visual Studio 2022 version 17.4.3 
(Community Edition). My environment script defines:

==================================================
# Visual Studio Community 2022
export VS150COMNTOOLS="C:\\Program Files\\Microsoft Visual 
Studio\\2022\\Community\\VC\\Auxiliary\\Build"

cmake=$HOME/opt/cmake-3.25.1-windows-x86_64
jdk=$HOME/opt/jdk-19.0.1
ant=$HOME/opt/apache-ant-1.10.12
==================================================

while the versions in the JavaFX 'build.properties' file are:

==================================================
# JDK
jfx.build.jdk.version=19.0.1

# Toolchains
jfx.build.windows.msvc.version=VS2022-17.1.0+1.0

# Build tools
jfx.build.cmake.version=3.22.3
jfx.build.ant.version=1.10.5
==================================================

I'm slightly ahead in my versions of Microsoft Visual Studio, CMake, and 
Apache Ant, but I've always used the latest releases just to pick up any 
recent fixes for reproducible builds.

The error appears to be coming from the compiler, whose version is shown 
below:

==================================================
$ /cygdrive/c/Program\ Files/Microsoft\ Visual\ 
Studio/2022/Community/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe
Microsoft (R) C/C++ Optimizing Compiler Version 19.34.31937 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]
==================================================

John



More information about the openjfx-dev mailing list