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

gz-transport: Installation #1533

Closed
azeey-test opened this issue Aug 29, 2024 · 7 comments
Closed

gz-transport: Installation #1533

azeey-test opened this issue Aug 29, 2024 · 7 comments

Comments

@azeey-test
Copy link
Collaborator

Configuration

  • os: Windows

Links

Process

Step 1 - Instructions work

Step 2 - Images (if there are any) match the result

@avanmalleghem
Copy link

Interested in !

@avanmalleghem
Copy link

  • Looks like libgz-transport14 is not available on conda-forge yet. Can you upload it to conda-forge ?
  • The link "First, follow the gz-cmake tutorial for installing Conda, Visual Studio, CMake, etc., prerequisites, and creating a Conda environment." doesn't talk about how to install everything on windows.
  • Dependencies to build from source are not available on conda-forge : gz-cmake4 & gz-msgs11

So I'm currently blocked on this one.

This was referenced Sep 11, 2024
@azeey
Copy link
Contributor

azeey commented Sep 11, 2024

I've updated the readme for this (https://github.com/gazebosim/gazebo_test_cases/blob/master/README.md#windows-tests). You'll need to build gz-cmake4, gz-msgs11, etc. from source since prerereleases are not available on conda. See #1575 (comment) for more context.

@knmcguire
Copy link

Also if you get stuck, looking here might help #1701. Most of the issues have been committed and resolved but perhaps the visual studio install is clearer this way.

@Combuster54
Copy link

Source Instalation

(gz-ws) C:\Users\User\gazebo-ws\test\gz-transport\build>cmake .. -DCMAKE_PREFIX_PATH="C:/Program Files (x86)/gz-utils3;C:/Program Files (x86)/gz-msgs11"
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- gz-transport14 version 14.0.0~pre1
-- Operating system is Windows
--

-- ====== Finding Dependencies ======
-- Searching for pybind11 - found version 2.13.5.
-- Looking for Protobuf - found

-- Looking for ZeroMQ - found

-- Looking for CppZMQ - found

-- UUID: Using Windows RPC UuidCreate function

-- Looking for gz-utils3 -- found version 3.0.0~pre3
-- Searching for dependencies of gz-utils3
-- Searching for <gz-utils3> component [cli]
-- Looking for gz-utils3-cli -- found version 3.0.0~pre3
-- Searching for dependencies of gz-utils3-cli
-- Looking for gz-utils3 - found

-- Looking for gz-msgs11 -- found version 11.0.0~pre1
-- Searching for dependencies of gz-msgs11
-- Looking for gz-utils3 -- found version 3.0.0~pre3
-- Looking for gz-math8 -- found version 8.0.0~pre1
-- Searching for dependencies of gz-math8
-- Looking for gz-utils3 -- found version 3.0.0~pre3
-- Checking for module 'tinyxml2'
--   Found tinyxml2, version 10.0.0
-- Found Python3: C:/Users/User/anaconda3/envs/gz-ws/python.exe (found version "3.11.10") found components: Interpreter
-- Looking for gz-msgs11 - found

-- Looking for IFADDRS - not found

-- Checking for module 'sqlite3 >= 3.7.13'
--   No package 'sqlite3' found
-- Looking for sqlite3 - found

-- Configuring library: gz-transport14
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Success
-- Adding 16 UNIT tests
-- Adding 1 UNIT tests
-- Adding 13 INTEGRATION tests
-- No tests have been specified for PERFORMANCE
-- No tests have been specified for REGRESSION
-- Configuring library: gz-transport14-log
-- Adding 10 UNIT tests
-- Adding 3 INTEGRATION tests
-- Configuring library: gz-transport14-parameters
-- Adding 5 UNIT tests
-- The program [cppcheck] was not found! Skipping codecheck setup
-- Build configuration successful
-- Building pybind11 interfaces
-- Build type: RelWithDebInfo
-- Install prefix: C:/Program Files (x86)/gz-transport14
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done (2.6s)
-- Generating done (0.9s)
-- Build files have been written to: C:/Users/User/gazebo-ws/test/gz-transport/build

(gz-ws) C:\Users\User\gazebo-ws\test\gz-transport\build>cmake --build . --config Release
Versión de MSBuild 17.11.2+c078802d4 para .NET Framework

  1>Checking Build System
  Building Custom Rule C:/Users/User/gazebo-ws/test/gz-transport/src/CMakeLists.txt
  AdvertiseOptions.cc
  CIface.cc
  Clock.cc
  Discovery.cc
  Helpers.cc
C:\Program Files (x86)\gz-msgs11\include\gz\msgs11\gz\msgs\convert\Vector3.hh(26,10): error C1083: Cannot open include f
ile: 'gz/math/Vector3.hh': No such file or directory [C:\Users\User\gazebo-ws\test\gz-transport\build\src\gz-transport14
.vcxproj]
  (compiling source file '../../src/Discovery.cc')

  MessageInfo.cc
  NetUtils.cc
  Node.cc
C:\Program Files (x86)\gz-msgs11\include\gz\msgs11\gz\msgs\convert\Vector3.hh(26,10): error C1083: Cannot open include f
ile: 'gz/math/Vector3.hh': No such file or directory [C:\Users\User\gazebo-ws\test\gz-transport\build\src\gz-transport14
.vcxproj]
  (compiling source file '../../src/Node.cc')

  NodeOptions.cc
  NodeShared.cc
C:\Program Files (x86)\gz-msgs11\include\gz\msgs11\gz\msgs\convert\Vector3.hh(26,10): error C1083: Cannot open include f
ile: 'gz/math/Vector3.hh': No such file or directory [C:\Users\User\gazebo-ws\test\gz-transport\build\src\gz-transport14
.vcxproj]
  (compiling source file '../../src/NodeShared.cc')

  Publisher.cc
  SubscribeOptions.cc
  SubscriptionHandler.cc
  TopicStatistics.cc
  TopicUtils.cc
  Uuid.cc

That's strange, cause I already have those files

(gz-ws) C:\Users\User\gazebo-ws\test\gz-transport\build>cd src

(gz-ws) C:\Users\User\gazebo-ws\test\gz-transport\build\src>ls
CMakeFiles                                  UNIT_NodeOptions_TEST.vcxproj
CTestTestfile.cmake                         UNIT_NodeOptions_TEST.vcxproj.filters
INSTALL.vcxproj                             UNIT_Node_TEST.vcxproj
INSTALL.vcxproj.filters                     UNIT_Node_TEST.vcxproj.filters
RUN_TESTS.vcxproj                           UNIT_Publisher_TEST.vcxproj
RUN_TESTS.vcxproj.filters                   UNIT_Publisher_TEST.vcxproj.filters
UNIT_AdvertiseOptions_TEST.vcxproj          UNIT_SubscribeOptions_TEST.vcxproj
UNIT_AdvertiseOptions_TEST.vcxproj.filters  UNIT_SubscribeOptions_TEST.vcxproj.filters
UNIT_CIface_TEST.vcxproj                    UNIT_TopicStatistics_TEST.vcxproj
UNIT_CIface_TEST.vcxproj.filters            UNIT_TopicStatistics_TEST.vcxproj.filters
UNIT_Clock_TEST.vcxproj                     UNIT_TopicStorage_TEST.vcxproj
UNIT_Clock_TEST.vcxproj.filters             UNIT_TopicStorage_TEST.vcxproj.filters
UNIT_Discovery_TEST.vcxproj                 UNIT_TopicUtils_TEST.vcxproj
UNIT_Discovery_TEST.vcxproj.filters         UNIT_TopicUtils_TEST.vcxproj.filters
UNIT_HandlerStorage_TEST.vcxproj            UNIT_Uuid_TEST.vcxproj
UNIT_HandlerStorage_TEST.vcxproj.filters    UNIT_Uuid_TEST.vcxproj.filters
UNIT_Helpers_TEST.vcxproj                   cmake_install.cmake
UNIT_Helpers_TEST.vcxproj.filters           cmd
UNIT_MessageInfo_TEST.vcxproj               gz-transport14.dir
UNIT_MessageInfo_TEST.vcxproj.filters       gz-transport14.vcxproj
UNIT_NetUtils_TEST.vcxproj                  gz-transport14.vcxproj.filters
UNIT_NetUtils_TEST.vcxproj.filters

(gz-ws) C:\Users\User\gazebo-ws\test\gz-transport\build\src>

@avanmalleghem
Copy link

Can be closed.

@ahcorde
Copy link

ahcorde commented Sep 13, 2024

PR is merged, thank you for testing!

@ahcorde ahcorde closed this as completed Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants