Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

CMake Error at /usr/lib64/cmake/vtk-9.4/FindPEGTL.cmake:27 (set_target_properties)

Đang mở
#181 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
cmake, cpp, python
Lĩnh vực
build-system

Hướng nghiên cứu

Bắt đầu với OCP/CMakeLists.txt tại lệnh gọi find_package, sau đó kiểm tra FindPEGTL.cmake của VTK 9.4 và traceback của dump_symbols.py về mô-đun logzero bị thiếu. Chạy lại cấu hình CMake của Gentoo để cô lập cả hai lỗi; hoàn thành khi OCP cấu hình thành công với Python 3.13, VTK 9.4.2 và PEGTL.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Trying to build OCP 7.8.1.2 on a modern Gentoo.

cmake -C /var/tmp/portage/dev-python/cadquery-ocp-7.8.1.2/work/OCP-7.8.1.2/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -B /var/tmp/portage/dev-python/cadquery-ocp-7.8.1.2/work/OCP-7.8.1.2/OCP.build -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON -Wno-dev -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-python/cadquery-ocp-7.8.1.2/work/OCP-7.8.1.2/gentoo_toolchain.cmake /var/tmp/portage/dev-python/cadquery-ocp-7.8.1.2/work/OCP-7.8.1.2
loading initial cache file /var/tmp/portage/dev-python/cadquery-ocp-7.8.1.2/work/OCP-7.8.1.2/gentoo_common_config.cmake
-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_FFI_CALL
-- Performing Test HAVE_FFI_CALL - Success
-- Found FFI: /usr/lib64/libffi.so
-- Found ZLIB: /usr/lib64/libz.so (found version "1.3.1")
-- Found zstd: /usr/lib64/libzstd.so
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.13.8")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found Python3: /usr/bin/python3 (found suitable version "3.13.7", minimum required is "3.13") found components: Interpreter Development.Module Development.Embed
-- Found TIFF: /usr/lib64/libtiff.so (found version "4.7.0")
-- Found PNG: /usr/lib64/libpng.so (found version "1.6.50")
-- Found JPEG: /usr/lib64/libjpeg.so (found version "62")
-- Could NOT find freetype (missing: freetype_DIR)
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.13.3")
-- Searching for PEGTL
-- Searching for PEGTL - found target taocpp::pegtl
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Found double-conversion: /usr/lib64/libdouble-conversion.so
-- Found nlohmann_json: /usr/share/cmake/nlohmann_json/nlohmann_jsonConfig.cmake (found version "3.12.0")
-- VTK 9.4.2 found
-- RapidJSON found. Headers: /usr/include
-- Found Python: /var/tmp/portage/dev-python/cadquery-ocp-7.8.1.2/temp/python3.13/bin/python3 (found suitable version "3.13.7", minimum required is "3.9") found components: Interpreter Development Development.Module Development.Embed
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/cadquery-ocp-7.8.1.2/work/OCP-7.8.1.2/dump_symbols.py", line 4, in <module>
    from logzero import logger
ModuleNotFoundError: No module named 'logzero'
-- Include dirs: /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14;/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu;/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/backward;/usr/lib/gcc/x86_64-pc-linux-gnu/14/include;/usr/x86_64-pc-linux-gnu/include;/usr/include
-- Found Python: /var/tmp/portage/dev-python/cadquery-ocp-7.8.1.2/temp/python3.13/bin/python3 (found version "3.13.7") found components: Interpreter Development Development.Module Development.Embed
-- Python lib: /usr/lib64/libpython3.13.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Found pybind11: /usr/include (found version "2.13.6")
-- Could NOT find freetype (missing: freetype_DIR)
-- Searching for PEGTL
-- Searching for PEGTL - found target taocpp::pegtl
CMake Error at /usr/lib64/cmake/vtk-9.4/FindPEGTL.cmake:27 (set_target_properties):
  Attempt to promote imported target "taocpp::pegtl" to global scope (by
  setting IMPORTED_GLOBAL) which is not built in this directory.
Call Stack (most recent call first):
  /usr/lib64/cmake/vtk-9.4/VTK-vtk-module-find-packages.cmake:1813 (find_package)
  /usr/lib64/cmake/vtk-9.4/vtk-config.cmake:170 (include)
  OCP/CMakeLists.txt:17 (find_package)


-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- VTK 9.4.2 found
-- <<< Gentoo configuration >>>
Build type      RelWithDebInfo
Install path    /usr
Compiler flags:
C               -O2 -pipe -march=skylake -mtune=native -ftree-vectorize -malign-data=cacheline -mtls-dialect=gnu2
C++             -O2 -pipe -march=skylake -mtune=native -ftree-vectorize -malign-data=cacheline -mtls-dialect=gnu2
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--hash-style=gnu
Module          -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--hash-style=gnu
Shared          -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--hash-style=gnu

-- Configuring incomplete, errors occurred!

Used to build fine in the summer (python 3.12, vtk 9.3.1).

Ngôn ngữ chính
C++
Star
203
Fork
50
Merge trung bình
3 ngày 4 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CadQuery/OCP

Tất cả issue của CadQuery/OCP

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.