Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Build instructions in Readme don't work

オープン
#18 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cmake, cpp

調査の方向性

README.md と、モジュールを VTK の Remote フォルダーにコピーしたときに使用される CMake 統合から始めます。HoloPlayCore_INCLUDE_DIR、HoloPlayCore_LIBRARY、Qt5_DIR、VTK_GROUP_ENABLE_QT を確認しながら、Windows VTK 9.0.1 の構成を再現します。README が必要な準備を正確に説明し、文書化されたビルドによってモジュールが生成されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I tried following the provided instructions for building VTK 9.0.1 with support for Looking Glass devices enabled by this project, but I wasn't able to make them work. I followed the instructions detailed here:

In the end, I was able to figure out how to properly build VTK 9.0.1 with LookingGlass support following a rather different procedure detailed below. So either the README needs to be amended or something is broken in the CMake scripts.

Setup

  • Windows 10
  • Visual Studio 2015
  • VTK 9.0.1
  • CMake 3.20.3
  • Python 3.9.0
  • Qt 5.11.0

Things that I tried and didn't work

  • adding VTK_MODULE_ENABLE_VTK_RenderingLookingGlass as a BOOL entry in CMake-gui 3.20.3 and enabling it
  • adding VTK_MODULE_ENABLE_VTK_RenderingLookingGlass as a STRING entry in CMake-gui 3.20.3 and setting its value to ON
  • adding the environment variable VTK_MODULE_ENABLE_VTK_RenderingLookingGlass=ON in CMake-gui 3.20.3
  • modifying CMakeCache.txt and adding the following lines:
//Enable the VTK::RenderingLookingGlass module. 
VTK_MODULE_ENABLE_VTK_RenderingLookingGlass:BOOL=ON
  • invoking cmake directly from the command line inside the VTK source root directory
cmake -DVTK_MODULE_ENABLE_VTK_RenderingLookingGlass:BOOL=ON -S . -B Build -G "Visual Studio 14 2015" -A x64

What actually worked

  • clone the repo at https://github.com/Kitware/LookingGlassVTKModule
  • copy the contents of the cloned repo LookingGlassVTKModule to the Remote folder in the VTK source tree
  • configure the CMake project for VTK for Visual Studio 2015 and set the architecture option to x64
  • set the variable HoloPlayCore_INCLUDE_DIR to the include path of the HoloPlay SDK
  • set the variable HoloPlayCore_LIBRARY to point to the pre-built static library of the HoloPlay SDK for Windows
  • set VTK_GROUP_ENABLE_QT to YES
  • set Qt5_DIR to the location of the CMake folder of my installation of Qt
  • set PYTHON_VERSION to 3
    check VTK_WRAP_PYTHON
  • configure again
  • generate the project files
  • open the main solution in Visual Studio 2015
  • build the project for release

Notes
I did a grep on the entire source tree of VTK and I found no mention of the word LookingGlass, so my expectations was that by setting the variable VTK_MODULE_ENABLE_VTK_RenderingLookingGlass to ON, CMake will reference an online registry to find this repository, download the code and and update the CMake configuration with the variables HoloPlayCore_INCLUDE_DIR and HoloPlayCore_LIBRARY required to generate a proper output. Clearly my assumption was incorrect and it seems that developers are required to copy at least some files from this repository to the VTK source tree. Figuring out how to do so without being intimately familiar with VTK's innerworkings is not easy. Please provide more details on how to prepare for a build in the README.

主要言語
C++
スター
18
フォーク
16
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Kitware/LookingGlassVTKModule のほかの issue

Kitware/LookingGlassVTKModule の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。