Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure failed on Windows 11 #52

Open
mitchcurtis opened this issue Aug 26, 2023 · 5 comments
Open

Configure failed on Windows 11 #52

mitchcurtis opened this issue Aug 26, 2023 · 5 comments

Comments

@mitchcurtis
Copy link

Thanks for making this plugin! I'm trying to test it out by building with Qt Creator with Qt 6.5 on Windows 11 but am running into a configure error:

Running C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -S C:/dev/RiveQtQuickPlugin -B C:/dev/RiveQtQuickPlugin-qt_isle_debug-Debug "-DCMAKE_GENERATOR:STRING=Ninja" "-DCMAKE_BUILD_TYPE:STRING=Debug" "-DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=C:\dev\RiveQtQuickPlugin-qt_isle_debug-Debug/.qtc/package-manager/auto-setup.cmake" "-DQT_QMAKE_EXECUTABLE:FILEPATH=C:/dev/qt-isle-debug/qtbase/bin/qmake.exe" "-DCMAKE_PREFIX_PATH:PATH=C:/dev/qt-isle-debug/qtbase" "-DCMAKE_C_COMPILER:FILEPATH=C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/HostX64/x64/cl.exe" "-DCMAKE_CXX_COMPILER:FILEPATH=C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/HostX64/x64/cl.exe" "-DCMAKE_CXX_FLAGS_INIT:STRING=-DQT_QML_DEBUG" in C:\dev\RiveQtQuickPlugin-qt_isle_debug-Debug.
-- The CXX compiler identification is MSVC 19.35.32217.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/HostX64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE  
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE  
Add-Type -A System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory('C:/dev/RiveQtQuickPlugin-qt_isle_debug-Debug/rive-cpp-src-download/rive-cpp.zip', 'C:/dev/RiveQtQuickPlugin/3rdParty/rive/cmake/rive-cpp-src')
-- Output directory content: C:/dev/RiveQtQuickPlugin/3rdParty/rive/cmake/rive-cpp-src
-- SUBDIR variable content: C:/dev/RiveQtQuickPlugin/3rdParty/rive/cmake/rive-cpp-src/rive-cpp-79e32293139f7360004fe56ce75314ec23f2f8be
-- All content inside output_dir: C:/dev/RiveQtQuickPlugin/3rdParty/rive/cmake/rive-cpp-src/rive-cpp-79e32293139f7360004fe56ce75314ec23f2f8be
Add-Type -A System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory('C:/dev/RiveQtQuickPlugin-qt_isle_debug-Debug/harfbuzz-src-download/harfbuzz.zip', 'C:/dev/RiveQtQuickPlugin/3rdParty/rive/cmake/rive-cpp-src/zip/harfbuzz/')
Exception calling "ExtractToDirectory" with "2" argument(s): "Could not find a part of the path 'C:\dev\RiveQtQuickPlug
in\3rdParty\rive\cmake\rive-cpp-src\zip\harfbuzz\harfbuzz-858570b1d9912a1b746ab39fbe62a646c4f7a5b1\test\subset\data\exp
ected\cff-japanese\SourceHanSans-Regular_subset.drop-hints-desubroutinize-retain-gids.3042,3044,3046,3048,304A,304B.otf
'."
At line:1 char:47
+ ... FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory('C:/d ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DirectoryNotFoundException
 
-- Output directory content: C:/dev/RiveQtQuickPlugin/3rdParty/rive/cmake/rive-cpp-src/zip/harfbuzz/
-- SUBDIR variable content: C:/dev/RiveQtQuickPlugin/3rdParty/rive/cmake/rive-cpp-src/zip/harfbuzz//harfbuzz-858570b1d9912a1b746ab39fbe62a646c4f7a5b1
-- All content inside output_dir: C:/dev/RiveQtQuickPlugin/3rdParty/rive/cmake/rive-cpp-src/zip/harfbuzz//harfbuzz-858570b1d9912a1b746ab39fbe62a646c4f7a5b1
Add-Type -A System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory('C:/dev/RiveQtQuickPlugin-qt_isle_debug-Debug/sheenbidi-src-download/sheenbidi.zip', 'C:/dev/RiveQtQuickPlugin/3rdParty/rive/cmake/rive-cpp-src/zip/sheenbidi')
-- Output directory content: C:/dev/RiveQtQuickPlugin/3rdParty/rive/cmake/rive-cpp-src/zip/sheenbidi
-- SUBDIR variable content: C:/dev/RiveQtQuickPlugin/3rdParty/rive/cmake/rive-cpp-src/zip/sheenbidi/SheenBidi-2.6
-- All content inside output_dir: C:/dev/RiveQtQuickPlugin/3rdParty/rive/cmake/rive-cpp-src/zip/sheenbidi/SheenBidi-2.6
-- The C compiler identification is MSVC 19.35.32217.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/HostX64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
WARNHarfBuzz has a Meson port and tries to migrate all the other build systems to it, please consider using it as we might remove our cmake port soon.
-- Found PythonInterp: C:/dev/Python/Python310/python.exe (found version "3.10.7") 
-- Looking for atexit
-- Looking for atexit - found
-- Looking for mprotect
-- Looking for mprotect - not found
-- Looking for sysconf
-- Looking for sysconf - not found
-- Looking for getpagesize
-- Looking for getpagesize - not found
-- Looking for mmap
-- Looking for mmap - not found
-- Looking for isatty
-- Looking for isatty - found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - not found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
CMake Error at 3rdParty/rive/cmake/rive-cpp-src/zip/harfbuzz/zip/CMakeLists.txt:148 (file):
  file failed to open for reading (No such file or directory):

    C:/dev/RiveQtQuickPlugin/3rdParty/rive/cmake/rive-cpp-src/zip/harfbuzz/zip/util/Makefile.sources


CMake Error at 3rdParty/rive/cmake/rive-cpp-src/zip/harfbuzz/zip/CMakeLists.txt:166 (extract_make_variable):
  extract_make_variable Function invoked with incorrect arguments for
  function named: extract_make_variable


CMake Error at 3rdParty/rive/cmake/rive-cpp-src/zip/harfbuzz/zip/CMakeLists.txt:168 (extract_make_variable):
  extract_make_variable Function invoked with incorrect arguments for
  function named: extract_make_variable


CMake Error at 3rdParty/rive/cmake/rive-cpp-src/zip/harfbuzz/zip/CMakeLists.txt:170 (extract_make_variable):
  extract_make_variable Function invoked with incorrect arguments for
  function named: extract_make_variable


CMake Error at 3rdParty/rive/cmake/rive-cpp-src/zip/harfbuzz/zip/CMakeLists.txt:172 (extract_make_variable):
  extract_make_variable Function invoked with incorrect arguments for
  function named: extract_make_variable


Building introspection files on Windows requires BUILD_SHARED_LIBS to be enabled.
Build Type: Debug
CMake Deprecation Warning at C:/dev/qt-isle-debug/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:2680 (message):
  Qt policy QTP0001 is set to OLD.  Support for the old behavior will be
  removed in a future major version of Qt.
Call Stack (most recent call first):
  C:/dev/qt-isle-debug/qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:445 (__qt_internal_setup_policy)
  C:/dev/qt-isle-debug/qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:684 (qt6_add_qml_module)
  src/RiveQtQuickItem/CMakeLists.txt:68 (qt_add_qml_module)


shaders/qt6/drawRiveTextureNode.frag -> shaders/qt6/drawRiveTextureNode.frag.qsb exposed as ://shaders/qt6/drawRiveTextureNode.frag.qsb
shaders/qt6/drawRiveTextureNode.vert -> shaders/qt6/drawRiveTextureNode.vert.qsb exposed as ://shaders/qt6/drawRiveTextureNode.vert.qsb
shaders/qt6/finalDraw.frag -> shaders/qt6/finalDraw.frag.qsb exposed as ://shaders/qt6/finalDraw.frag.qsb
shaders/qt6/finalDraw.vert -> shaders/qt6/finalDraw.vert.qsb exposed as ://shaders/qt6/finalDraw.vert.qsb
shaders/qt6/blendRiveTextureNode.frag -> shaders/qt6/blendRiveTextureNode.frag.qsb exposed as ://shaders/qt6/blendRiveTextureNode.frag.qsb
shaders/qt6/blendRiveTextureNode.vert -> shaders/qt6/blendRiveTextureNode.vert.qsb exposed as ://shaders/qt6/blendRiveTextureNode.vert.qsb
shaders/qt6/clipRiveTextureNode.frag -> shaders/qt6/clipRiveTextureNode.frag.qsb exposed as ://shaders/qt6/clipRiveTextureNode.frag.qsb
shaders/qt6/clipRiveTextureNode.vert -> shaders/qt6/clipRiveTextureNode.vert.qsb exposed as ://shaders/qt6/clipRiveTextureNode.vert.qsb
shaders/qt6/edges-luma.frag -> shaders/qt6/edges-luma.frag.qsb exposed as ://shaders/qt6/edges-luma.frag.qsb
shaders/qt6/edges.vert -> shaders/qt6/edges.vert.qsb exposed as ://shaders/qt6/edges.vert.qsb
shaders/qt6/smaa-weights.frag -> shaders/qt6/smaa-weights.frag.qsb exposed as ://shaders/qt6/smaa-weights.frag.qsb
shaders/qt6/smaa-weights.vert -> shaders/qt6/smaa-weights.vert.qsb exposed as ://shaders/qt6/smaa-weights.vert.qsb
shaders/qt6/smaa-blend.frag -> shaders/qt6/smaa-blend.frag.qsb exposed as ://shaders/qt6/smaa-blend.frag.qsb
shaders/qt6/smaa-blend.vert -> shaders/qt6/smaa-blend.vert.qsb exposed as ://shaders/qt6/smaa-blend.vert.qsb
-- Configuring incomplete, errors occurred!
See also "C:/dev/RiveQtQuickPlugin-qt_isle_debug-Debug/CMakeFiles/CMakeOutput.log".
See also "C:/dev/RiveQtQuickPlugin-qt_isle_debug-Debug/CMakeFiles/CMakeError.log".
CMake process exited with exit code 1.

Elapsed time: 00:26.
@jebos
Copy link
Collaborator

jebos commented Aug 26, 2023

The cmake should download the dependencies (harfbuzz and rivecpp) it looks like it fails to do so.

You could take a look in the 3rd party cmakefiles during cmake and check if the download works.

After the download it should unzip and place the dependencies at the expected places.

In addition you may provide the cmake log.

Edit: of course you can just download the correct versions by hand (check cmake) and unzip/place them by yourself.

@mitchcurtis
Copy link
Author

You could take a look in the 3rd party cmakefiles during cmake and check if the download works.

After the download it should unzip and place the dependencies at the expected places.

What am I looking for, specifically? Which files?

This file path looks suspiciously long:

C:\dev\RiveQtQuickPlugin\3rdParty\rive\cmake\rive-cpp-src\zip\harfbuzz\harfbuzz-58570b1d9912a1b746ab39fbe62a646c4f7a5b1\test\subset\data\expected\cff-japanese\SourceHanSans-Regular_subset.drop-hints-desubroutinize-retain-gids.3042,3044,3046,3048,304A,304B.otf

Could that be causing issues?

In addition you may provide the cmake log.

Do you want CMakeOutput.log and CMakeError.log?

@jebos
Copy link
Collaborator

jebos commented Aug 27, 2023

Path-length could indeed be an issue in Windows. You could try to also change the shadowpath directory to something like close to c:/dev/

Just to rule that out.

The error log should be fine.

@mitchcurtis
Copy link
Author

Path-length could indeed be an issue in Windows. You could try to also change the shadowpath directory to something like close to c:/dev/

What do you mean by shadowpath? How do I do that?

CMakeError.log

@madoodia
Copy link

@mitchcurtis
take a look at my PR
I could build the application on Windows10
#63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants