Skip to content

Can't build zstd_point_cloud_transport on windows #112

Closed

Description

@ruben-arts

We get the following error when we try to support windows for this package:

  │ │     PYTHON_INSTALL_DIR
 │ │     Python_EXECUTABLE
 │ │     SETUPTOOLS_DEB_LAYOUT
 │ │ %SRC_DIR%\build>if errorlevel 1 exit 1 
 │ │ %SRC_DIR%\build>cmake --build . --config Release --parallel 4 --target install 
 │ │ MSBuild version 17.14.23+b0019275e for .NET Framework
 │ │   1>Checking Build System
 │ │   Ignoring COMPILE_WARNING_AS_ERROR target property and CMAKE_COMPILE_WARNING_AS_ERROR variable.
 │ │   Building Custom Rule %SRC_DIR%/ros-jazzy-zstd-point-cloud-transport/src/work/CMakeLists.txt
 │ │   Ignoring COMPILE_WARNING_AS_ERROR target property and CMAKE_COMPILE_WARNING_AS_ERROR variable.
 │ │   zstd_publisher.cpp
 │ │   zstd_subscriber.cpp
 │ │   manifest.cpp
 │ │   Generating Code...
 │ │ LINK : fatal error LNK1181: cannot open input file 'zstd.lib' [%SRC_DIR%\build\zstd_point_cloud_transport.vcxproj]
 │ │ %SRC_DIR%\build>if errorlevel 1 exit 1 
 │ │ × error Script failed with status 1
 │ │ × error 
 │ │ × error Script execution failed.
 │ │ × error 
 │ │ × error   Work directory: C:\bld\bld\rattler-build_ros-jazzy-zstd-point-cloud-transport_1760701379\work
 │ │ × error   Prefix: C:\bld\bld\rattler-build_ros-jazzy-zstd-point-cloud-transport_1760701379\h_env
 │ │ × error   Build prefix: C:\bld\bld\rattler-build_ros-jazzy-zstd-point-cloud-transport_1760701379\build_env
 │ │ × error 
 │ │ × error To run the script manually, use the following command:
 │ │ × error   cd "C:\\bld\\bld\\rattler-build_ros-jazzy-zstd-point-cloud-transport_1760701379\\work" && ./conda_build.bat
 │ │ × error 
 │ │ × error To run commands interactively in the build environment:
 │ │ × error   cd "C:\\bld\\bld\\rattler-build_ros-jazzy-zstd-point-cloud-transport_1760701379\\work" && call build_env.bat
 │ │

Related PR: #111
Related build output: https://github.com/RoboStack/ros-jazzy/actions/runs/18591638592/job/53007712614?pr=111

Activity

  1. Tobias-Fischer commented on Oct 18, 2026

    @Tobias-Fischer
    Contributor

    Fixed in the RoboStack monorepo, RoboStack/robostack, where all ROS 2 distributions are now built by RoboStack/robostack#59. Its Windows patch links zstd::libzstd_shared from find_package(zstd CONFIG) instead of a bare zstd (the cause of the LNK1181). zstd_point_cloud_transport 4.0.4 built there on win-64 and the other four platforms in the jazzy rebuild (RoboStack/robostack#61).

    🤖 Claude (AI assistant), on behalf of @Tobias-Fischer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions