Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Autoware source build error with -lpthread #443

Closed
jmarrr opened this issue Dec 3, 2018 · 5 comments
Closed

Autoware source build error with -lpthread #443

jmarrr opened this issue Dec 3, 2018 · 5 comments

Comments

@jmarrr
Copy link

jmarrr commented Dec 3, 2018

Running ./catkin_make_release generates this error when I build autoware from source.

-- looking for PCL_APPS
-- Could NOT find PCL_APPS (missing: PCL_APPS_LIBRARY) 
-- looking for PCL_MODELER
-- looking for PCL_IN_HAND_SCANNER
-- looking for PCL_POINT_CLOUD_EDITOR
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) 
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Error at /home/overlapjho/Autoware/ros/devel/share/ndt_cpu/cmake/ndt_cpuConfig.cmake:148 (message):
  Project 'lidar_localizer' tried to find library '-lpthread'.  The library
  is neither a target nor built/installed properly.  Did you compile project
  'ndt_cpu'? Did you find_package() it before the subdirectory containing its
  code is included?
Call Stack (most recent call first):
  /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
  computing/perception/localization/packages/lidar_localizer/CMakeLists.txt:36 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/overlapjho/Autoware/ros/build/CMakeFiles/CMakeOutput.log".
See also "/home/overlapjho/Autoware/ros/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

Specifications

  • Ubuntu version: 16.04
  • ROS version: Kinetic
  • Autoware branch: Main Branch
@chenz16
Copy link

chenz16 commented Jan 5, 2019

The same issue here. I was having some other problems and then i updated my cmake to 3.13 , updated gcc to 6.5 and dowgraded Cuda from 10 to 8; then this issue is shown.

@pangsu0613
Copy link

hello @overlapjho, I have the same problem, have you fix it ?

@pangsu0613
Copy link

Problem solved, I googled "library -lpthread", there is no library named this, it should be libpthread. I think it is a typo made by cmake. I downgraded my cmake from 3.13 back to 3.5, it compiled successfully.

@gstorer
Copy link

gstorer commented Feb 20, 2019

I fixed the problem by applying this patch to catkin. There was a change in a recent version of cmake that causes this issue. It will persist until there is a new release of catkin that includes the patch.
ros/catkin#975

@amc-nu
Copy link
Member

amc-nu commented May 31, 2019

Thanks for using Autoware and for your question. However the issue tracker is for posting confirmed bugs and feature requests.

We ask that you please ask questions at the ROS Answers website following our support guidelines: https://github.com/autowarefoundation/autoware/wiki/Support-guidelines#ros-answers. Please pay particular attention to the information we ask you to provide.

@amc-nu amc-nu closed this as completed May 31, 2019
@mitsudome-r mitsudome-r transferred this issue from autowarefoundation/autoware Mar 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants