Skip to content

Conversation

jeff-hykin
Copy link

Hello! Glad to see another researcher getting ros wasm in the web.

I was going to try to use this on an upcoming ros project, but I'm having a hard time getting the example publisher running.

This is a fork off of your PR (@IsabelParedes) thar gets it a lot closer to running. The yaml_cpp_vendor and mambda issues are fixed. But now I'm stuck on the following

rmw_wasm/wasm_cpp/include/wasm_cpp/tojson/tojson.hpp:3:10: fatal error: 'yaml-cpp/yaml.h' file not found
2025-05-17T20:11:42.3184117Z     3 | #include <yaml-cpp/yaml.h>
2025-05-17T20:11:42.3184848Z       |          ^~~~~~~~~~~~~~~~~
2025-05-17T20:11:42.3185912Z 1 error generated.
2025-05-17T20:11:42.3193886Z em++: error: '/home/runner/work/_temp/87afbec2-1f16-479f-8a3a-b25855bb118f/emsdk-main/upstream/bin/clang++ -target wasm32-unknown-emscripten -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-cxx-exceptions -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN --sysroot=/home/runner/work/_temp/87afbec2-1f16-479f-8a3a-b25855bb118f/emsdk-main/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -I/home/runner/work/delete_me_test_wasm_publisher/delete_me_test_wasm_publisher/ros-workspace/src/rmw_wasm/wasm_cpp/include -I/home/runner/work/delete_me_test_wasm_publisher/delete_me_test_wasm_publisher/ros-workspace/build/wasm_cpp/include -isystem /home/runner/work/delete_me_test_wasm_publisher/delete_me_test_wasm_publisher/ros-workspace/install/include/rcutils -O3 -DNDEBUG -Wall -Wextra -Wpedantic -fexceptions -fPIC -std=gnu++17 -MD -MT CMakeFiles/wasm_cpp.dir/src/roslibjs.cpp.o -MF CMakeFiles/wasm_cpp.dir/src/roslibjs.cpp.o.d -c /home/runner/work/delete_me_test_wasm_publisher/delete_me_test_wasm_publisher/ros-workspace/src/rmw_wasm/wasm_cpp/src/roslibjs.cpp -o CMakeFiles/wasm_cpp.dir/src/roslibjs.cpp.o' failed (returned 1)

Full log here

If you have any advice for how to get it running I'd appappreciate it

@jeff-hykin jeff-hykin changed the title Fix mamba / yaml_cpp_vendor A Fix for Mamba / yaml_cpp_vendor May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants