getting stuck on compile ROS

All discussions related to the Loco Positioning system
Post Reply
Newk
Member
Posts: 30
Joined: Sun Oct 23, 2016 1:53 pm
Location: Rotterdam
Contact:

getting stuck on compile ROS

Post by Newk »

Honoured to try out new LPS!
But at step nr.5 here i get:

Code: Select all

newk@A7U:~/catkin_ws/src$ catkin_make
Base path: /home/newk/catkin_ws/src
The specified source space "/home/newk/catkin_ws/src/src" does not exist
newk@A7U:~/catkin_ws/src$ cd ..
newk@A7U:~/catkin_ws$ catkin_make
Base path: /home/newk/catkin_ws
Source space: /home/newk/catkin_ws/src
Build space: /home/newk/catkin_ws/build
Devel space: /home/newk/catkin_ws/devel
Install space: /home/newk/catkin_ws/install
####
#### Running command: "cmake /home/newk/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/newk/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/newk/catkin_ws/install -G Unix Makefiles" in "/home/newk/catkin_ws/build"
####
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.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/newk/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: 
-- Found PythonInterp: /usr/bin/python (found version "2.7.12") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/newk/catkin_ws/build/test_results
-- 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  
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.16
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 8 packages in topological order:
-- ~~  - bitcraze_lps_estimator
-- ~~  - crazyflie (metapackage)
-- ~~  - crazyflie_controller
-- ~~  - crazyflie_cpp
-- ~~  - crazyflie_demo
-- ~~  - crazyflie_description
-- ~~  - crazyflie_driver
-- ~~  - crazyflie_tools
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'bitcraze_lps_estimator'
-- ==> add_subdirectory(lps-ros)
CMake Error at /usr/share/catkin/cmake/catkinConfig.cmake:75 (find_package):
  Could not find a package configuration file provided by "rospy" with any of
  the following names:

    rospyConfig.cmake
    rospy-config.cmake

  Add the installation prefix of "rospy" to CMAKE_PREFIX_PATH or set
  "rospy_DIR" to a directory containing one of the above files.  If "rospy"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  lps-ros/CMakeLists.txt:7 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/newk/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/newk/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
did i forget something?

maybe because last step in making the ROS workspace was giving me:

Code: Select all

newk@A7U:~/catkin_ws$ /home/newk/catkin_ws/src:/opt/ros/kinetic/share:/opt/ros/kinetic/stacks
bash: /home/newk/catkin_ws/src:/opt/ros/kinetic/share:/opt/ros/kinetic/stacks: No such file or directory
edit: CMakeError.log says:

Code: Select all

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/newk/catkin_ws/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_a58eb/fast"
/usr/bin/make -f CMakeFiles/cmTC_a58eb.dir/build.make CMakeFiles/cmTC_a58eb.dir/build
make[1]: Entering directory '/home/newk/catkin_ws/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a58eb.dir/CheckSymbolExists.c.o
/usr/bin/cc     -o CMakeFiles/cmTC_a58eb.dir/CheckSymbolExists.c.o   -c /home/newk/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_a58eb
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a58eb.dir/link.txt --verbose=1
/usr/bin/cc       CMakeFiles/cmTC_a58eb.dir/CheckSymbolExists.c.o  -o cmTC_a58eb -rdynamic 
CMakeFiles/cmTC_a58eb.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0xa): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_a58eb.dir/build.make:97: recipe for target 'cmTC_a58eb' failed
make[1]: *** [cmTC_a58eb] Error 1
make[1]: Leaving directory '/home/newk/catkin_ws/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_a58eb/fast' failed
make: *** [cmTC_a58eb/fast] Error 2

File /home/newk/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/newk/catkin_ws/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_768c6/fast"
/usr/bin/make -f CMakeFiles/cmTC_768c6.dir/build.make CMakeFiles/cmTC_768c6.dir/build
make[1]: Entering directory '/home/newk/catkin_ws/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_768c6.dir/CheckFunctionExists.c.o
/usr/bin/cc    -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_768c6.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_768c6
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_768c6.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTC_768c6.dir/CheckFunctionExists.c.o  -o cmTC_768c6 -rdynamic -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_768c6.dir/build.make:97: recipe for target 'cmTC_768c6' failed
make[1]: *** [cmTC_768c6] Error 1
make[1]: Leaving directory '/home/newk/catkin_ws/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_768c6/fast' failed
make: *** [cmTC_768c6/fast] Error 2
Newk
Member
Posts: 30
Joined: Sun Oct 23, 2016 1:53 pm
Location: Rotterdam
Contact:

Re: getting stuck on compile ROS

Post by Newk »

i went through some steps here:
https://github.com/Izwor/ROS-workshop/w ... -on-Ubuntu
that where missing in the other one

now it compiled without errors it seems
Post Reply