pfavr2 / install_ros2_rolling_on_mac_m1

Scripts and patches to install ros2_rolling on Mac M1
Apache License 2.0
25 stars 1 forks source link

is this solution included in ROS2 ? #6

Closed nihavend closed 7 months ago

nihavend commented 9 months ago

It worked completely on my sonoma on M1 Max. Very good contribution. If you are interested may create a group help each other on apple silicon related issues.

Is your solution included in ROS2 repo ?

If you share your contact I like to have a discussion on ROS2 with apple silicon.

pfavr2 commented 9 months ago

Thanks for feedback and reaching out @nihavend 👍

The patches and script are not yet in ROS2 upstream. I would really like to move that forward in 2024.

Most patches are for CMake. I think the changes needed for M1 can be made platform-dependant - as to not disturb the current "official" platforms. Moving as many patches upstream as possible could eventually make this repository obsolete.

It would be nice to test the "improved" patches on the official target platforms (other than M1) as part of the process (i.e. before submitting upstream). This would probably make it easier to get the patches merged upstream.

I have limited time to work on this (but hope to find more time this year). Any help would be greatly appreciated!

I prefer to keep the discussion here - or do you have other suggestions?

BR Peter

nihavend commented 9 months ago

Nice to hear Peter, it is also a side-project for me and I do not have so much time either but I can try do my best. I guess it is better to move to somewhere like slack or discord to discuss the issues related with subject. I have also problems with PX4 :) Your script is for rolling but I need for iron and trying to understand to make it work with iron did you ever try it ?

pfavr2 commented 9 months ago

I did not try building iron - I picked rolling because this is the "development branch" so it is probably easier to get patches upstream on rolling...

Keeping discussion here (in this topic) makes barrier-to-entry smaller IMHO. Do you think the benefit outweighs the extra burden (I'm not using discord myself - so would need to create an account and learn a new UI - I do use slack though).

nihavend commented 9 months ago

May be I may try rolling for a while to not to lose time for adaptation.

We may keep it here or use slack. Being in slack may have give an opportunity to build up a community. You may decide.

pfavr2 commented 9 months ago

Let's keep it here for now 😀

nihavend commented 9 months ago

did you try running rqt ? I guess it is missing :)

pfavr2 commented 9 months ago

Yes rqt is not working. I haven't put much effort into making it build because I'm using rviz and foxglove. Would be nice to fix so it also builds though.

nihavend commented 9 months ago

I need rqt for tutorials at this

The standard archive for installing ROS 2 on macOS contains rqt and its plugins, so you should already have rqt installed.

Where should I begin to ?

nihavend commented 8 months ago

I tried to reinstall but getting an error, any idea ?

Finished <<< urdfdom_headers [1.56s]
--- stderr: ament_cmake_core                                                                                                                                                                                                        
Traceback (most recent call last):
  File "/opt/ros/ros2_rolling/src/ament/ament_cmake/ament_cmake_core/cmake/core/package_xml_2_cmake.py", line 22, in <module>
    from catkin_pkg.package import parse_package_string
ModuleNotFoundError: No module named 'catkin_pkg'
CMake Error at cmake/core/ament_package_xml.cmake:95 (message):

  execute_process(/opt/homebrew/Frameworks/Python.framework/Versions/3.12/bin/python3.12
  /opt/ros/ros2_rolling/src/ament/ament_cmake/ament_cmake_core/cmake/core/package_xml_2_cmake.py
  /opt/ros/ros2_rolling/src/ament/ament_cmake/ament_cmake_core/package.xml
  /opt/ros/ros2_rolling/build/ament_cmake_core/ament_cmake_core/package.cmake)
  returned error code 1
Call Stack (most recent call first):
  cmake/core/ament_package_xml.cmake:49 (_ament_package_xml)
  CMakeLists.txt:15 (ament_package_xml)

---
Failed   <<< ament_cmake_core [0.62s, exited with code 1]
Aborted  <<< fastcdr [1.77s]
Aborted  <<< iceoryx_hoofs [1.83s]                                                                                                                                                                             
Aborted  <<< ament_pycodestyle [0.68s]
Aborted  <<< ament_flake8 [0.69s]
Aborted  <<< osrf_testing_tools_cpp [2.02s]                                                                                     
Aborted  <<< google_benchmark_vendor [8.99s]                                    

Summary: 7 packages finished [10.7s]
  1 package failed: ament_cmake_core
  6 packages aborted: ament_flake8 ament_pycodestyle fastcdr google_benchmark_vendor iceoryx_hoofs osrf_testing_tools_cpp
  7 packages had stderr output: ament_cmake_core fastcdr gmock_vendor google_benchmark_vendor gtest_vendor iceoryx_hoofs urdfdom_headers
  319 packages not processed
Done.

To activate the new ROS2 distribution run the following command:
. /opt/ros/activate_ros

To deactivate this workspace, run:
deactivate_ros
pfavr2 commented 8 months ago

Please see this issue (with solution/workaround: removing python3.12):

https://github.com/pfavr2/install_ros2_rolling_on_mac_m1/issues/4

nihavend commented 8 months ago

I tried many times before asking but still can not recover. I have done one more time according to your advice but nothing changed.

go on trying...

pfavr2 commented 8 months ago

Did you remember to run ./clean.sh also AFTER uninstalling Python 3.12?

(from your error messages it can be seen python3.12 is still used: execute_process(/opt/homebrew/Frameworks/Python.framework/Versions/3.12/bin/python3.12 )

nihavend commented 8 months ago

sure absolutely, that is the point I did not get

pfavr2 commented 8 months ago

Please try again:

brew update brew upgrade brew uninstall --ignore-dependencies python@3.12 ./clean.sh ./install.sh

If that still produce errors, then check MacOS is updated to newest version 14.2.1 (23C71) and XCode is installed and updated too. Please start XCode manually to make sure the license has been accepted also. Then try clean.sh and install.sh again.

Let me know how it goes :-)

nihavend commented 8 months ago

This is the new error :

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [CMakeFiles/rviz_default_plugins.dir/include/rviz_default_plugins/displays/depth_cloud/moc_depth_cloud_display.cpp.o] Error 1
make[1]: *** [CMakeFiles/rviz_default_plugins.dir/all] Error 2
make: *** [all] Error 2
make: INTERNAL: Exiting with 11 jobserver tokens available; should be 10!
---
Failed   <<< rviz_default_plugins [11.1s, exited with code 2]

Summary: 331 packages finished [11min 7s]
  1 package failed: rviz_default_plugins
  29 packages had stderr output: cyclonedds demo_nodes_cpp fastcdr gmock_vendor google_benchmark_vendor gtest_vendor iceoryx_binding_c iceoryx_hoofs iceoryx_introspection iceoryx_posh pendulum_control rcl rcl_lifecycle rcl_logging_interface rcutils rmw rmw_connextdds_common rmw_cyclonedds_cpp rosbag2_performance_benchmarking rosbag2_performance_benchmarking_msgs rosbag2_storage_mcap rti_connext_dds_cmake_module rttest rviz_default_plugins rviz_ogre_vendor tlsf tlsf_cpp uncrustify_vendor urdfdom_headers
  1 package not processed
Done.

To activate the new ROS2 distribution run the following command:
. /opt/ros/activate_ros

To deactivate this workspace, run:
deactivate_ros
pfavr2 commented 8 months ago

Did you pull the latest from this repository?

git pull

nihavend commented 8 months ago

do you mean vcs import --input https://raw.githubusercontent.com/ros2/ros2/rolling/ros2.repos src ?

pfavr2 commented 8 months ago

No I mean this repository "install_ros2_rolling_on_mac_m1"?

git pull - to ensure you have the latest updates/patches.

I just built everything here again - no problems:

Summary: 333 packages finished [14min 31s]

nihavend commented 8 months ago

many times, let me try one more time

pfavr2 commented 8 months ago

I'm currently downloading the new XCode update and will try again using this to see if I can reproduce your problem here.

nihavend commented 8 months ago

python 12 is installing during script execution

==> Fetching python@3.12
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.12/blobs/sha256:cb1129c121cf124512dde5a7002d9aa10b671c5cb6c86402392f2c6c2bfe26e9
Already downloaded: /Users/serkantas/Library/Caches/Homebrew/downloads/18aa15b5307306dbca706f54e5dfaddbc248e2aa81f47df64a373cb552ac34e3--python@3.12--3.12.1.arm64_sonoma.bottle.tar.gz

failed. Then uninstalled 3.12 and started install again

anoher error :

Starting >>> resource_retriever
--- stderr: performance_test_fixture                                                                                                                
CMake Error at CMakeLists.txt:22 (find_package):
  By not providing "Findosrf_testing_tools_cpp.cmake" in CMAKE_MODULE_PATH
  this project has asked CMake to find a package configuration file provided
  by "osrf_testing_tools_cpp", but CMake did not find one.

  Could not find a package configuration file provided by
  "osrf_testing_tools_cpp" with any of the following names:

    osrf_testing_tools_cppConfig.cmake
    osrf_testing_tools_cpp-config.cmake

  Add the installation prefix of "osrf_testing_tools_cpp" to
  CMAKE_PREFIX_PATH or set "osrf_testing_tools_cpp_DIR" to a directory
  containing one of the above files.  If "osrf_testing_tools_cpp" provides a
  separate development package or SDK, be sure it has been installed.

---
Failed   <<< performance_test_fixture [2.02s, exited with code 1]
Aborted  <<< launch_testing_ament_cmake [2.03s]                                                                                                                 
Aborted  <<< rosidl_parser [1.77s]                                                                                                                                               
Aborted  <<< keyboard_handler [2.21s]                                                                                                                                            
Aborted  <<< tracetools [2.23s]
Aborted  <<< urdf_parser_plugin [2.10s]                                                                                                                                               
Aborted  <<< mimick_vendor [2.09s]                                                                                                                                                
Aborted  <<< resource_retriever [2.01s]                                                                                                              
Aborted  <<< fastrtps [2min 6s]                                                                                                   
Aborted  <<< rviz_ogre_vendor [4min 21s]                                             

Summary: 98 packages finished [4min 37s]
  1 package failed: performance_test_fixture
  9 packages aborted: fastrtps keyboard_handler launch_testing_ament_cmake mimick_vendor resource_retriever rosidl_parser rviz_ogre_vendor tracetools urdf_parser_plugin
  15 packages had stderr output: cyclonedds fastcdr gmock_vendor google_benchmark_vendor gtest_vendor iceoryx_binding_c iceoryx_hoofs iceoryx_introspection iceoryx_posh performance_test_fixture resource_retriever rti_connext_dds_cmake_module rviz_ogre_vendor uncrustify_vendor urdfdom_headers
  216 packages not processed
Done.

To activate the new ROS2 distribution run the following command:
. /opt/ros/activate_ros

To deactivate this workspace, run:
deactivate_ros
pfavr2 commented 8 months ago

I get similar error here now 😀

I'll look into it - hopefully later tonight.

pfavr2 commented 8 months ago

I just tried again.

./clean.sh; ./install.sh

And success!

Summary: 333 packages finished [14min 35s]

It worked this time. It seems one of the servers were down earlier today so therefore some packages were not downloaded correctly. Please try again and see if it works now for you also.

Best regards,

Peter

nihavend commented 8 months ago

I am still getting rviz_default_plugins package fail error that I previously sent the log.

you can find full log details in attached file

ros2build.log

pfavr2 commented 8 months ago

Please do this once more:

  1. check all updates to MacOS has been applied: System Settings->General->Software Update should show "14.2.1 (23C71)"

  2. start XCode and see it is updated as well in the "About XCode" menu: "Version 15.2 (15C500b)"

  3. Ensure brew is updated also:

brew update brew upgrade brew uninstall --ignore-dependencies python@3.12

  1. In the install_ros2_rolling_on_mac_m1 directory:

git pull ./clean.sh ./install.sh

If that doesn't work try rebooting the mac.

Do you have enough free disk space?

BR Peter

nihavend commented 8 months ago

I am going to they when I find time, you can check the full log file I attached

Peter Favrholdt @.***> şunları yazdı (10 Oca 2024 09:52):

Please do this once more:

  1. check all updates to MacOS has been applied: System Settings->General->Software Update should show "14.2.1 (23C71)"

  2. start XCode and see it is updated as well in the "About XCode" menu: "Version 15.2 (15C500b)"

  3. Ensure brew is updated also:

brew update brew upgrade brew uninstall --ignore-dependencies @.***

  1. In the install_ros2_rolling_on_mac_m1 directory:

git pull ./clean.sh ./install.sh

If that doesn't work try rebooting the mac.

Do you have enough free disk space?

BR Peter

— Reply to this email directly, view it on GitHubhttps://github.com/pfavr2/install_ros2_rolling_on_mac_m1/issues/6#issuecomment-1884286187, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABNU4SRDLJ356KSRWTJAC53YNY3DLAVCNFSM6AAAAABBKA6H52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBUGI4DMMJYG4. You are receiving this because you were mentioned.Message ID: @.***>

nihavend commented 8 months ago
  1. Sürüm 14.2.1 (23C71)
  2. Version 15.2 (15C500b)
  3. brew update Already up-to-date.

brew upgrade

brew uninstall --ignore-dependencies python@3.12 Uninstalling /opt/homebrew/Cellar/python@3.12/3.12.1... (3,225 files, 65.3MB)

install_ros2_rolling_on_mac_m1 % git pull Already up to date. ./clean.sh ./install.sh

failed, log details attached

Filesystem Size Used Avail Capacity iused ifree %iused Mounted on ** 926Gi 549Gi 361Gi 61% 2,3M 3,8G 0% ***

going to try reboot

ros2build.log

pfavr2 commented 8 months ago

Thank you for the build log! I have compared with mine and only difference I find is:

You're using the last one (marked by + sign).

I don't know why this is - or if this is the cause of the error you experience while building. Maybe you can try to do

brew cleanup brew autoremove

and try again?

You can also try brew doctor to see if it reports any errors.

BR Peter

pfavr2 commented 8 months ago

Please could you post output of the following:

pip list brew list

nihavend commented 8 months ago
brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed formulae are missing dependencies.
You should `brew install` the missing dependencies:
  brew install python@3.12

Run `brew missing` for more details.

brewlist.txt piplist.txt

pfavr2 commented 8 months ago

There are quite many differences and I don't understand why, e.g:

colcon-bash 0.4.2 < colcon-bash 0.5.0 colcon-cmake 0.2.27 < colcon-cmake 0.2.28 colcon-core 0.12.1 < colcon-core 0.15.1 colcon-devtools 0.2.3 < colcon-devtools 0.2.5 colcon-parallel-executor 0.2.4 < colcon-parallel-executor 0.3.0 colcon-powershell 0.3.7 < colcon-powershell 0.4.0 colcon-recursive-crawl 0.2.1 < colcon-recursive-crawl 0.2.3 colcon-ros 0.3.23 < colcon-ros 0.4.1 colcon-zsh 0.4.0 < colcon-zsh 0.5.0

(My machine is > and yours is < )

Did you install using a development version of homebrew or does something else come to mind?

(It might be my machine which is behind but I've just done brew update and brew upgrade - I thought this would make my machine use the most recent versions of all brew packages - unless pinned in the script)

pfavr2 commented 8 months ago

Just realised I should upgrade my pip3 packages. I'm on it...

pfavr2 commented 8 months ago

After upgrading pip3 packages using:

pip3 list -o | cut -f1 -d' ' | tr " " "\n" | awk '{if(NR>=3)print}' | cut -d' ' -f1 | xargs -n1 pip3 install -U

then uninstalling python3.12 again:

brew uninstall --ignore-dependencies python@3.12

and clean.sh and install.sh - everything builds successfully:

Summary: 334 packages finished [15min 15s]

I'll continue comparing our brew and pip packages. BRB...

pfavr2 commented 8 months ago

Please post output of

printenv

nihavend commented 8 months ago
 % printenv
__CFBundleIdentifier=com.apple.Terminal
TMPDIR=xxxxxxxxxxx
XPC_FLAGS=0x0
LaunchInstanceID=xxxxxxxxx
TERM=xterm-256color
DISPLAY=/private/tmp/com.apple.launchd.9Jirxh3Y5v/org.xquartz:0
SECURITYSESSIONID=xxxxxxxx
SSH_AUTH_SOCK=xxxxxxxxxxx
XPC_SERVICE_NAME=0
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=452
TERM_SESSION_ID=DEC479AB-EDAF-46D3-BCF4-527D85BA694D
SHELL=/bin/zsh
HOME=/Users/serkantas
LOGNAME=serkantas
USER=serkantas
PATH=/opt/homebrew/opt/ruby/bin:/Users/serkantas/Library/Python/3.11/bin:/opt/homebrew/bin:/Users/serkantas/go/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/usr/local/go/bin
SHLVL=1
PWD=/Users/serkantas
OLDPWD=/Users/serkantas
HOMEBREW_PREFIX=/opt/homebrew
HOMEBREW_CELLAR=/opt/homebrew/Cellar
HOMEBREW_REPOSITORY=/opt/homebrew
MANPATH=/opt/homebrew/share/man::
INFOPATH=/opt/homebrew/share/info:
GOPATH=/Users/serkantas/go
LDFLAGS=-L/opt/homebrew/lib/
CPPFLAGS=-I/opt/homebrew/opt/ruby/include
GO111MODULE=on
GOPRIVATE=git.dev.trt.com.tr
SERVICE_URL=git.dev.trt.com.tr
SERVICE_USER=gitlab_local
SERVICE_TOKEN=xxxxxxxxxxxxxxxx
LANG=tr_TR.UTF-8
_=/usr/bin/printenv
pfavr2 commented 8 months ago

Please do upgrade your pip packages also:

pip3 list -o | cut -f1 -d' ' | tr " " "\n" | awk '{if(NR>=3)print}' | cut -d' ' -f1 | xargs -n1 pip3 install -U

then uninstalling python3.12 again:

brew uninstall --ignore-dependencies python@3.12

and try clean.sh and install.sh again.

If it still doesn't work please provide the piplist.txt again after upgrading your pip packages.

nihavend commented 8 months ago

Sitll getting some errors (cyclonedds and rviz_default_plugins) but talker and listener is working now. Thank you so much :)

What is the real reason ? versions of python packages?

log.txt piplist.txt

pfavr2 commented 8 months ago

Thanks. Looking at your piplist.txt... makes me wonder if you have activated a ros workspace when running install.sh?

Please give me output of

pip3 list >piplist.txt

But run in a new terminal window (or reboot)?

pfavr2 commented 8 months ago

Please also run

pip3 list -o | cut -f1 -d' ' | tr " " "\n" | awk '{if(NR>=3)print}' | cut -d' ' -f1 | xargs -n1 pip3 install -U

In a new terminal (or just after reboot)

nihavend commented 8 months ago

Thanks. Looking at your piplist.txt... makes me wonder if you have activated a ros workspace when running install.sh?

Please give me output of

pip3 list >piplist.txt

But run in a new terminal window (or reboot)?

No not at all, I attached the list. After I run the update and can see that no new package installed.

piplist.txt

pfavr2 commented 8 months ago

Thank you for the piplist.txt

It still seems like you have not accomplished updating your pip packages, e.g:

< colcon-bash 0.5.0

colcon-bash 0.4.2 < colcon-cmake 0.2.28 colcon-cmake 0.2.27 < colcon-common-extensions 0.3.0 < colcon-core 0.15.1 colcon-core 0.11.0 < colcon-defaults 0.2.8 colcon-defaults 0.2.7 < colcon-devtools 0.2.5 colcon-devtools 0.2.3 < colcon-output 0.2.13 colcon-output 0.2.12 < colcon-parallel-executor 0.3.0 colcon-parallel-executor 0.2.4 < colcon-powershell 0.4.0 colcon-powershell 0.3.7 < colcon-recursive-crawl 0.2.3 colcon-recursive-crawl 0.2.1 < colcon-ros 0.4.1 colcon-ros 0.3.23 < colcon-zsh 0.5.0 colcon-zsh 0.4.0

(< is mine, > is yours)

Did you successfully do:

pip3 list -o | cut -f1 -d' ' | tr " " "\n" | awk '{if(NR>=3)print}' | cut -d' ' -f1 | xargs -n1 pip3 install -U

in a new terminal (just after reboot)?

Do you have something in your .zshrc or .profile which activates another python or ROS environment?

nihavend commented 8 months ago

Sure, this is the output of install : install.log

content of .zshrc

ulimit -S -n 2048

alias cde="xxxx"

export GOPATH=$HOME/go
export PATH=/Users/serkantas/Library/Python/3.11/bin:/opt/homebrew/bin:$GOPATH/bin:$PATH 

export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
# export LDFLAGS="-L/opt/homebrew/opt/ruby/lib:/opt/homebrew/lib/"
export LDFLAGS="-L/opt/homebrew/lib/"
export CPPFLAGS="-I/opt/homebrew/opt/ruby/include"

export GO111MODULE=on
export GOPRIVATE=xxxx
export SERVICE_URL=xxxxx
export SERVICE_USER=xxxxx
export SERVICE_TOKEN=xxxxx

# Point pip3 to MacOS system python 3 pip
alias pip3=/usr/bin/pip3

#source /Library/Python/3.9/share/vcstool-completion/vcs.zsh

alias cdros="cd /Users/serkantas/dev/projects/ros2_workspace"

and nothing about python env in /etc/profile

nihavend commented 8 months ago

I realized that pip3 was pointing to python 9. Changed it to 3.11 but the result did not changed.

I get two errors :

(1)

dyld[72120]: Library not loaded: @rpath/libiceoryx_posh.dylib
  Referenced from: <A7DA3849-55B8-3AB2-BD8A-4669209474D8> /opt/ros/ros2_rolling/install/iceoryx_binding_c/lib/libiceoryx_binding_c.dylib
  Reason: tried: '/opt/ros/ros2_rolling/install/iceoryx_binding_c/lib/libiceoryx_posh.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/ros/ros2_rolling/install/iceoryx_binding_c/lib/libiceoryx_posh.dylib' (no such file), '/opt/ros/ros2_rolling/build/cyclonedds/lib/libiceoryx_posh.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/ros/ros2_rolling/build/cyclonedds/lib/libiceoryx_posh.dylib' (no such file), '/opt/ros/ros2_rolling/build/cyclonedds/lib/libiceoryx_posh.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/ros/ros2_rolling/build/cyclonedds/lib/libiceoryx_posh.dylib' (no such file)
/bin/sh: line 1: 72120 Abort trap: 6           ../../../bin/idlc -Wno-implicit-extensibility -o/opt/ros/ros2_rolling/build/cyclonedds/src/tools/ddsperf /opt/ros/ros2_rolling/src/eclipse-cyclonedds/cyclonedds/src/tools/ddsperf/ddsperf_types.idl
make[2]: *** [src/tools/ddsperf/ddsperf_types.c] Error 134
make[1]: *** [src/tools/ddsperf/CMakeFiles/ddsperf_types_generate.dir/all] Error 2
make: *** [all] Error 2
---
Failed   <<< cyclonedds [6.83s, exited with code 2]

Summary: 3 packages finished [23.9s]
  1 package failed: cyclonedds
  4 packages had stderr output: cyclonedds iceoryx_binding_c iceoryx_hoofs iceoryx_posh

When I check the details the error occurs while executing the command

colcon build --symlink-install --cmake-args -DBUILD_TESTING=OFF -Wno-dev --packages-skip-by-dep python_qt_binding --packages-up-to cyclonedds

But the missinglibiceoryx_posh.dylib also generated during the same step so I am bit confused

(2)

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [CMakeFiles/rviz_default_plugins.dir/include/rviz_default_plugins/displays/depth_cloud/moc_depth_cloud_display.cpp.o] Error 1
make[1]: *** [CMakeFiles/rviz_default_plugins.dir/all] Error 2
make: *** [all] Error 2
---
Failed   <<< rviz_default_plugins [11.3s, exited with code 2]

Summary: 332 packages finished [11min 40s]
  1 package failed: rviz_default_plugins
  29 packages had stderr output: cyclonedds demo_nodes_cpp fastcdr gmock_vendor google_benchmark_vendor gtest_vendor iceoryx_binding_c iceoryx_hoofs iceoryx_introspection iceoryx_posh pendulum_control rcl rcl_lifecycle rcl_logging_interface rcutils rmw rmw_connextdds_common rmw_cyclonedds_cpp rosbag2_performance_benchmarking rosbag2_performance_benchmarking_msgs rosbag2_storage_mcap rti_connext_dds_cmake_module rttest rviz_default_plugins rviz_ogre_vendor tlsf tlsf_cpp uncrustify_vendor urdfdom_headers
  1 package not processed
Done.

To activate the new ROS2 distribution run the following command:
. /opt/ros/activate_ros

To deactivate this workspace, run:
deactivate_ros

here is the pip3_list

pip_list.txt

pfavr2 commented 8 months ago

Thank you for still investigating and helping out by providing more information 😀

(1) this is intentional and a "hack". There is a library missing and the script build it this way (even though it fails), then symlinks the resulting libs and these are used in the next step.

(2) So close now! What was the error (just before the snippet you provided)?

nihavend commented 8 months ago

You can find all in this log file

install.log

pfavr2 commented 8 months ago

OK thank you - from your install.log I can see the problem is with QT versions.

Do you have more versions of QT installed?

nihavend commented 8 months ago

Hor can i validate qt versions? iPhone’umdan gönderildi

Peter Favrholdt @.***> şunları yazdı (20 Oca 2024 19:50):



OK thank you - from your install.log I can see the problem is with QT versions.

Do you have more versions of QT installed?

— Reply to this email directly, view it on GitHubhttps://github.com/pfavr2/install_ros2_rolling_on_mac_m1/issues/6#issuecomment-1902173582, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABNU4SVEPB5R3JA7JRRWZZTYPPYW5AVCNFSM6AAAAABBKA6H52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBSGE3TGNJYGI. You are receiving this because you were mentioned.Message ID: @.***>

nihavend commented 8 months ago

I checked the version

qmake --version
QMake version 3.1
Using Qt version 6.6.1 in /opt/homebrew/lib

Uninstalled qt

brew uninstall --ignore-dependencies qt
Uninstalling /opt/homebrew/Cellar/qt/6.6.1... (14,396 files, 627.4MB)

run the install script and here is the result :

Summary: 334 packages finished [12min 20s]
  29 packages had stderr output: cyclonedds demo_nodes_cpp fastcdr gmock_vendor google_benchmark_vendor gtest_vendor iceoryx_binding_c iceoryx_hoofs iceoryx_introspection iceoryx_posh pendulum_control rcl rcl_lifecycle rcl_logging_interface rclcpp rcutils rmw rmw_connextdds_common rmw_cyclonedds_cpp rosbag2_performance_benchmarking rosbag2_performance_benchmarking_msgs rosbag2_storage_mcap rti_connext_dds_cmake_module rttest rviz_ogre_vendor tlsf tlsf_cpp uncrustify_vendor urdfdom_headers
Done.

To activate the new ROS2 distribution run the following command:
. /opt/ros/activate_ros

To deactivate this workspace, run:
deactivate_ros

Thank you very much for your efforts Peter. Hope the scripts become part of the distribution and works for iron also.

The problem rises with the installation of rqt. You said that you are using foxglove and rviz. How can I make it out ? (I tried bridge script but could not go far)

pfavr2 commented 8 months ago

Great to hear it is finally working on your side. Could maybe extend the script to check the QT version later. Thank you for your patience!

nihavend commented 8 months ago

How can I use foxglove and rviz until then ?