Win10+WSL: catkin_make: Syntax error: "(" unexpected

asked 2019-12-24 01:03:37 -0600

falken gravatar image

updated 2019-12-24 03:47:07 -0600

gvdhoorn gravatar image

I have a Window 10 laptop and i am using Ubuntu 18.04 LTS on it through the Windows Subsystem for Linux. I have installed the melodic desktop full. after installing everything i followed the tutorialhttps://wiki.ros.org/ROS/Tuto...

I completed everything successfully uptil catkin_make command in the create a ros workspace subsection. It showed an error. I tried to solve it by different methods like in this link:https://robotics.stackexchange.c... however i got the same error.

Finally i uninstalled everything and tried to reinstall it. I have looked a lot for different types of files while deleting but its possible that some files might have been left over that could affect the problem. If you think this is the problem tell me the file and ill copy paste it here.

Anyhow I reinstalled it and followed the tutorial right from the beginning of ROS installation. and again at the catkin_make step i got the same identical error here:

:~$ printenv | grep ROS
ROS_ETC_DIR=/opt/ros/melodic/etc/ros
ROS_ROOT=/opt/ros/melodic/share/ros
ROS_MASTER_URI=http://localhost:11311
ROS_VERSION=1
ROS_PYTHON_VERSION=2
ROS_PACKAGE_PATH=/opt/ros/melodic/share
ROSLISP_PACKAGE_DIRECTORIES=
ROS_DISTRO=melodic
:~$ mkdir -p ~/catkin_ws/src
:~$ cd ~/catkin_ws/
:~/catkin_ws$ catkin_make
Base path: /home/falken/catkin_ws
Source space: /home/falken/catkin_ws/src
Build space: /home/falken/catkin_ws/build
Devel space: /home/falken/catkin_ws/devel
Install space: /home/falken/catkin_ws/install
Creating symlink "/home/falken/catkin_ws/src/CMakeLists.txt" pointing to "/opt/ros/melodic/share/catkin/cmake/toplevel.cmake"
####
#### Running command: "cmake /home/falken/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/falken/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/falken/catkin_ws/install -G Unix Makefiles" in "/home/falken/catkin_ws/build"
####
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/falken/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/melodic
-- This workspace overlays: /opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2")
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/falken/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.17")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE ...
(more)
edit retag flag offensive close merge delete