Qt Creator 2.8.1 ROS and Catkin problems
I am using Ubuntu 12.04LTS 64-bit, Hydro, Qt 5.1.1, and Qt Creator 2.8.1.
I have been working on some wet ROS packages using Qt Creator without a hitch when using Qt Creator 2.4.1 and Qt 4.8 from Ubuntu's software center. However, I want to take advantage of some of the nice new openGL helper functions in Qt 5.1 so I installed it alongside 4.8. I also installed the latest version of Qt Creator (2.8.1) as recommended by that community.
Qt Creator 2.8.1 is working great for non-ROS projects using a .pro file. But when I try to open ROS package from a CMakeLists.txt I get a few weird problems that I'm not sure how to fix. I'll walk you through what happens.
I open my catkin workspace using CMakeLists.txt: $ /opt/qtcreator-2.8.1/bin/qtcreator sandbox/src/CMakeLists.txt
With Qt Creator 2.4.1, the build directory auto-populates with something like /sandbox/qt-build and I would simply change it to /sandbox/build. However, with 2.8.1 the auto-populated build directory is "/opt/ros/hydro/share/catkin/cmake-build". So I switch it to "/sandbox/build".
Then I press next and Run CMake. CMake executes with no errors, just as I would expect it to.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pwn/sandbox/build
I Click finish, and get the following error:
"Cannot create file /opt/ros/hydro/share/catkin/cmake/toplevel.cmake.user: Permission denied"
After click finish, the project is populated with a bunch of catkin nonsense, but none of my actual ROS packages.
I then get two popup windows with the following error:
"Cannot create file /opt/ros/hydro/share/catkin/cmake/toplevel.cmake.user: Permission denied"
Has anyone else run into any of these sorts of issues with the newer version of Qt Creator? Have you found any solutions?
For now I am just using Qt Creator 2.4.1 and it continues to work well, but I would love to have only one version on my computer that works for ROS and other projects.