0
$\begingroup$

Rosanswers logo

I installed ROS 2 humble on Windows and followed all the dependency steps, and tested packages like turtlesim without any problems. However, when I try to use rviz2 by using the command "rviz2" or "ros2 run rviz2 rviz2", it gives me an error message that I need zlib.dll. I downloaded and moved it to the ROS 2 bin folder, but then it prompted me that I also need zlib1.dll. I downloaded it as well and moved it to the same folder, but then it gave me an error message saying that it could not initialize (0xc000007b).

I believe this error occurs due to DLL conflicts, but I am unsure which DLLs are conflicting with rviz2. Has anyone else encountered this error before? And if so, how can it be resolved?


Originally posted by Proxeus on ROS Answers with karma: 13 on 2023-03-30

Post score: 1

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Accidentally, I used the wrong Version of zlib1.dll. Maybe this was the same issue for you @Proxeus.

Extracting zlib-1.2.8-win32-x86_64.7z and adding its location to my PTAH variable fixed it for me.


Originally posted by Soren with karma: 26 on 2023-05-09

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.