My question is still. Do you mean qt or qtcreator? Thats a huge difference. In qtcreator (the ide) there is somewhere at the project tab the possibilty to set a custom build / run environment.
Doing a systemcall for sourcing doesn't make any sense. But running a qt application together with ros2 without sourcing before is also possible.
The script doesn't do anything else than setting some environment variables.
You could set the variables by hand using:
https://stackoverflow.com/questions/899517/set-local-environment-variables-in-c
Edit: See
https://stackoverflow.com/questions/11272720/how-to-run-source-command-in-c why running source via a systemcall doesnt work and also doesn't make sense.
---
[Visit Topic](
https://discourse.ros.org/t/ros2-running-command-inside-qt/2673/5) or reply to this email to respond.
If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
ros-users@lists.ros.org
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <
http://lists.ros.org/mailman//options/ros-users>