Problem with netbeans building ROS package
I am using Ubuntu 10.10 Maverick, install ros electric. I wish to use IDE to develop ros package, so I decided to use netbeans IDE. I have follow the http://www.ros.org/wiki/IDEs to configure the netbeans, but I fail to build and clean the project. The following is the output from the debug window of the Netbeans.
"/usr/bin/make" -f nbproject/Makefile-Default.mk QMAKE= SUBPROJECTS= .clean-conf
make[1]: Entering directory /home/jun/NetBeansProjects/microstrain_3dmgx2_imu_1'
cd /opt/ros/electric/stacks/imu_drivers/microstrain_3dmgx2_imu && /usr/bin/make -f Makefile clean
cd: 1: can't cd to build
make[2]: [clean] Error 2 (ignored)
make[2]: Entering directory
/opt/ros/electric/stacks/imu_drivers/microstrain_3dmgx2_imu'
cd build && make clean
rm -rf build
make[2]: Leaving directory /opt/ros/electric/stacks/imu_drivers/microstrain_3dmgx2_imu'
make[1]: Leaving directory
/home/jun/NetBeansProjects/microstrain_3dmgx2_imu_1'
CLEAN SUCCESSFUL (total time: 240ms)
"/usr/bin/make" -f nbproject/Makefile-Default.mk QMAKE= SUBPROJECTS= .build-conf
mkdir: cannot create directory build': Permission denied
make[2]: *** [all] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
make[1]: Entering directory
/home/jun/NetBeansProjects/microstrain_3dmgx2_imu_1'
cd /opt/ros/electric/stacks/imu_drivers/microstrain_3dmgx2_imu && /usr/bin/make -f Makefile
make[2]: Entering directory /opt/ros/electric/stacks/imu_drivers/microstrain_3dmgx2_imu'
make[2]: Leaving directory
/opt/ros/electric/stacks/imu_drivers/microstrain_3dmgx2_imu'
make[1]: Leaving directory `/home/jun/NetBeansProjects/microstrain_3dmgx2_imu_1'
BUILD FAILED (exit value 2, total time: 86ms)